-XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread Rainer Jung
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

[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread [EMAIL PROTECTED]
 In the working directory of the process. Of course you need enough free
 disk space.



working directory means something like:
/TomcatServer/work/Catalina/localhost/webapp_name/ ?
because there is nothing there :( and there is enough free 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.

/usr/local/jdk/bin/java -server -Xms512m -Xmx1024m 
-XX:+HeapDumpOnOutOfMemoryError 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.endorsed.dirs=/usr/local/jakarta/jakarta-tomcat-5.5.9/common/endorsed 
-classpath 
:/usr/local/jakarta/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/usr/local/jakarta/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar
 -Dcatalina.base=/usr/local/jakarta/jakarta-tomcat-5.5.9 
-Dcatalina.home=/usr/local/jakarta/jakarta-tomcat-5.5.9 
-Djava.io.tmpdir=/usr/local/jakarta/jakarta-tomcat-5.5.9/temp 
org.apache.catalina.startup.Bootstrap start

is the process info. Any clue why it didn't get generated?


 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

 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 


--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread [EMAIL PROTECTED]
  In the working directory of the process. Of course you need enough free
  disk space.
 


 working directory means something like:
 /TomcatServer/work/Catalina/localhost/webapp_name/ ?
 because there is nothing there :( and there is enough free 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.

 /usr/local/jdk/bin/java -server -Xms512m -Xmx1024m 
 -XX:+HeapDumpOnOutOfMemoryError 
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
 -Djava.endorsed.dirs=/usr/local/jakarta/jakarta-tomcat-5.5.9/common/endorsed 
 -classpath 
 :/usr/local/jakarta/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/usr/local/jakarta/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar
  -Dcatalina.base=/usr/local/jakarta/jakarta-tomcat-5.5.9 
 -Dcatalina.home=/usr/local/jakarta/jakarta-tomcat-5.5.9 
 -Djava.io.tmpdir=/usr/local/jakarta/jakarta-tomcat-5.5.9/temp 
 org.apache.catalina.startup.Bootstrap start

 is the process info. Any clue why it didn't get generated?


With that process line, is it normal that the 
Runtime().getRuntime().totalMemory() command gives me 43425792?


  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
 
  [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 


--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread Filip Hanik - Dev Lists

working directory is the bin directory

Filip

[EMAIL PROTECTED] wrote:

In the working directory of the process. Of course you need enough free
disk space.





working directory means something like:
/TomcatServer/work/Catalina/localhost/webapp_name/ ?
because there is nothing there :( and there is enough free 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.



/usr/local/jdk/bin/java -server -Xms512m -Xmx1024m 
-XX:+HeapDumpOnOutOfMemoryError 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.endorsed.dirs=/usr/local/jakarta/jakarta-tomcat-5.5.9/common/endorsed 
-classpath 
:/usr/local/jakarta/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/usr/local/jakarta/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar
 -Dcatalina.base=/usr/local/jakarta/jakarta-tomcat-5.5.9 
-Dcatalina.home=/usr/local/jakarta/jakarta-tomcat-5.5.9 
-Djava.io.tmpdir=/usr/local/jakarta/jakarta-tomcat-5.5.9/temp 
org.apache.catalina.startup.Bootstrap start

is the process info. Any clue why it didn't get generated?

 
  

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

[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]