disableoomedumper option doesn't work

Questions about YourKit Java Profiler
Post Reply
dgalimov
Posts: 3
Joined: Fri Apr 18, 2014 3:10 pm

disableoomedumper option doesn't work

Post by dgalimov »

Hello,

I'm using YourKit profiler which is bundled with Intelliji IDEA.
However, I cannot disable dumping heap on OutOfMemory errors.

Could you please help?

http://youtrack.jetbrains.com/issue/IDEA-124089 - link to corresponding IDEA bug.

The following vm options are used to run IDEA

-Xms128m
-Xmx2548m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=96m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+UseCodeCacheFlushing
-XX:+UseConcMarkSweepGC
-XX:+UseCompressedOops
-XX:SoftRefLRUPolicyMSPerMB=50
-agentlib:yjpagent64=disablej2ee,disablealloc,disabletracing,onlylocal,builtinprobes=none,disableoomedumper,disableexceptiontelemetry,sessionname=IntelliJIdea13
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: disableoomedumper option doesn't work

Post by Anton Katilin »

Hello,

The "disableoomedumper" option is to disable on-out-of-memory dumps created by JVM, which are in HPROF format:
http://www.yourkit.com/docs/java/help/out_of_memory.jsp

As you wrote,
I've removed this option, but it didn't help. -XX:+HeapDumpOnOutOfMemoryError is a JDK option, but files are created by YourKit profile, as it can be seen in header or the dump file:

YourKit Java Profiler snapshot, http://www.yourkit.com
Created by YourKit Java Profiler 12.0.
Yes, this means the file is in the profiler's format, and was NOT captured by the JVM's dumper. Furthermore, it has .snapshot extension, while the JVM's dumper creates .HPROF files.

We're downloading your snapshot now. We'll try to see what was the reason of the capture.

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

Re: disableoomedumper option doesn't work

Post by Anton Katilin »

P.S.

Also, JetBrains bundle an old, unsupported agent version. They should use the current release v2013 instead.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: disableoomedumper option doesn't work

Post by Anton Katilin »

We've found the following class among loaded:
edu.umd.cs.findbugs.log.YourKitController

We are not familiar with it, it seems a 3rd party tool to automate profiling with YourKit. Looks like a wrapper for the profiler API.

Google gives this link:
http://findbugs.sourceforge.net/api/ind ... oller.html

..showing that the class has method captureMemorySnapshot() which you should blame.

We don't know who uses that class, JetBrains or one of your plugins.

I hope this hint is enough to let you and/or JetBrains locate the problem.
dgalimov
Posts: 3
Joined: Fri Apr 18, 2014 3:10 pm

Re: disableoomedumper option doesn't work

Post by dgalimov »

Thank you,

I'll try to contact FindBugs plugin and check if they have an option to disable memory dumps...
dgalimov
Posts: 3
Joined: Fri Apr 18, 2014 3:10 pm

Re: disableoomedumper option doesn't work

Post by dgalimov »

Created defect in FindBug tracker https://sourceforge.net/p/findbugs/bugs/1268/
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: disableoomedumper option doesn't work

Post by Anton Katilin »

Thanks!
Post Reply