wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
It is sorta covered in the JavaRanch Style Guide.
subject: jvisualvm + dynamic proxy/reflection