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
Yourkit keeps OOME from happening
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
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
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
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
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?
What IDEA version do you use? 4.5 release or EAP?
-
- Posts: 2
- Joined: Fri Mar 11, 2005 11:02 pm