Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Yourkit keeps OOME from happening

Moderators: Vladimir Kondratyev, Anton Katilin

Yourkit keeps OOME from happening

Postby aravet » Fri Mar 11, 2005 11:05 pm

Hi,


In a little project, 2 little tests that use Lucene normally produce an OutOfMemory error in about 90 seconds. (with IDEA JUnit runner). To track the problem, I installed Yourkit.

problem: when run with Yourkit, the tests run fine !!
Any clue?


Alain
aravet
 
Posts: 2
Joined: Fri Mar 11, 2005 11:02 pm

Postby Anton Katilin » Mon Mar 14, 2005 1:58 pm

Hello Alain

What Java version do you use? If 5.0, do you use JVMTI?

Do you turn on allocation recording or start CPU profiling?

Actually, if no such modes are on, YourKit Java Profiler agent should not affect execution of profiled application. The only thing profiler agent adds is a thread waiting on socket for upcoming commands, but the thread simply sleeps most of the time.

Could you please try running not from IDEA? Maybe this makes any difference.

Best regards,
Anton
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am

Postby Anton Katilin » Mon Mar 14, 2005 2:04 pm

P.S.: Maybe -Xmx for some reason is different running with and without profiler? The profiler plugin does not change this in any way, but probably there are issues in internal processing of command line when launched from IDEA with and without profiling.

What IDEA version do you use? 4.5 release or EAP?
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am

Postby aravet » Mon Mar 14, 2005 3:10 pm

Anton,
Anton Katilin wrote:What IDEA version do you use? 4.5 release or EAP?


I'm using EAP - Irida -, on MacOS X, with the default VM options.
There was a loop in the code, that would make it fill the memory with new objects.
(Sorry, I wiped out the troublesome code)

Alain
aravet
 
Posts: 2
Joined: Fri Mar 11, 2005 11:02 pm


Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.