tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <>
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:

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



To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message