File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 232

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: 232
Resolved: net.sf is the library to blame.
I agree. Here's the link:
subject: jvisualvm + dynamic proxy/reflection
It's not a secret anymore!