Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes jvisualvm + dynamic proxy/reflection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "jvisualvm + dynamic proxy/reflection" Watch "jvisualvm + dynamic proxy/reflection" New topic

jvisualvm + dynamic proxy/reflection

Jari Timonen
Ranch Hand

Joined: Jan 16, 2004
Posts: 230

I was profiling today with jvisualvm application that heavily uses lambdaj. I did not see any performance problems with it. We studied more and saw, that it is reaaaallly slooooow. (we have tens of thousands of elements in lists).

How come jvisualvm did not show me real execution times of lambdaj? After making start/stop timers to the code we saw the problem. Something to do with dynamic proxy/reflection?
Or was i just blind as a bat.

www-application: Wicket 1.4 (lot's of ajax) + LamdaJ + Guice

SCJP 5.0, SCJD URLyBird 1.3.3, OCMJEA 5 (SCEA) Factory Homes
Jari Timonen
Ranch Hand

Joined: Jan 16, 2004
Posts: 230
Resolved: net.sf is the library to blame.
I agree. Here's the link:
subject: jvisualvm + dynamic proxy/reflection
Similar Threads
Java Programming Cookbook: Dynamic proxy
Your usage of reflection
Stub vs Dynamic proxy
Java Dynamic Proxy
Dynamic Proxy... Examples?