Can not profile applications that uses Hibernate lazy=true

Questions about YourKit Java Profiler
Post Reply
rihards
Posts: 2
Joined: Wed Jul 13, 2005 3:06 pm

Can not profile applications that uses Hibernate lazy=true

Post by rihards »

Hi,

I am using Yourkit 5.0 with Java jdk1.5.0_05.

Application itself uses Hibernate 3.0 for persistence, which in turn uses runtime enhancement if I specify lazy="true" in class metadata and no runtime enhancement when I specify lazy="false".

I guess that problem is in fact that Yourkit uses runtime enhancment aswell to enable method invocation count tracing (one of features that is "must have" for me actualy). Because when I am runing application with agent loaded it hangs or worker thread exits at some point if I use lazy="true" and everything is ok if I use lazy="false".

Also If I am using Java 1.4 everything is ok regardless if I am setting lazy="true" or lazy="false", but then I can not use CPU profiling with method invocation counting, which is essential for me to trace application improvements or degradation as it changes...

Is there any solution for this?

Rihards
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hi,

We're investigating this issue now.

Best regards,
Anton
Post Reply