Yourkit keeps OOME from happening

Questions about YourKit Java Profiler
Post Reply
aravet
Posts: 2
Joined: Fri Mar 11, 2005 11:02 pm

Yourkit keeps OOME from happening

Post by aravet »

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
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

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: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

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?
aravet
Posts: 2
Joined: Fri Mar 11, 2005 11:02 pm

Post by aravet »

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
Post Reply