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

Reply via email to