You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "daad@libero.it" <da...@libero.it> on 2007/04/30 10:27:59 UTC
-XX:+HeapDumpOnOutOfMemoryError
I specified that parameter in JAVA_OPTS variable, but after the first "java.lang.OutOfMemoryError: Java heap space" error, no dump file was created. Where should that file be created by default? any clue?
Thanks
------------------------------------------------------
Leggi GRATIS le tue mail con il telefonino i-modeĀ di Wind
http://i-mode.wind.it/
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: -XX:+HeapDumpOnOutOfMemoryError
Posted by Rainer Jung <ra...@kippdata.de>.
In the working directory of the process. Of course you need enough free
disk space.
There is also
-XX:HeapDumpPath=DIRECTORY_OR_FILE
(Caution: I don't know, if all JVM versions that implement
-XX:+HeapDumpOnOutOfMemoryError, implement this one too).
You should check in the process table (if it's a unix like system) if
your switches are picked up appropriately.
Also you can check their function by wrinting a simple java app, that
has an unterminated loop allocating objects and setting the heap size to
a small value, which should prodice an OurOfmemoryError and a heap dump.
Regards,
Rainer
daad@libero.it schrieb:
> I specified that parameter in JAVA_OPTS variable, but after the first "java.lang.OutOfMemoryError: Java heap space" error, no dump file was created. Where should that file be created by default? any clue?
> Thanks
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org