tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: Thread Dumps/ Emailing Results...
Date Wed, 05 Nov 2008 04:08:52 GMT


Christopher Schultz schrieb:
>> Also, in JDK 6 and above, there's another intriguing option:
>>   -XX:OnOutOfMemoryError="<command>"
> 
> That's pretty cool. For the time being, we're on JRE 1.5, so that's not
> an option. I'll look into it as we look forward to upgrading.
> 
>> The above will run an external command to do whatever you deem
>> appropriate, such us running the thread dump script you provided.
> 
> It would be great if that command could be parameterized and, say, take
> something like the thread dump on standard input. If you know anyone at
> Sun, feel free to give them that idea ;)

You can add white space separated arguments inside the flag value behind
the command name. It looks like oyu could also list several semicolon
separated commands. Any '%p' in the value will be automatically resolved
with the pid (which is part of the default heap file dump name). What
you can't get though, is the full heap dump file name:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6457610

Although usually you should be able to figure out, how to calculate it
based on the pid.

Regards,

Rainer

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


Mime
View raw message