Per-process core dump directory
david.holmes at oracle.com
Sun Jul 28 21:56:15 PDT 2013
Moving this to the hotspot-dev list, please drop the discuss list from
further emails as it is not for discussion of specific technical issues
in the code.
On 26/07/2013 6:29 PM, Richard Fearn wrote:
> Hi all,
> Yesterday I was looking at where core dumps are saved when Java
> processes crash (on Linux).
> I know that the location of core dumps is set via the
> kernel.core_pattern kernel parameter, and can be seen in
> /proc/sys/kernel/core_pattern. This is a global setting, however, that
> applies to any process that crashes.
> Apache httpd has a CoreDumpDirectory directive  that allows the
> directory to be specified; Apache installs signal handlers  so that
> the current directory is changed before the dump is written.
> Has anything similar ever been considered for the JVM? I had a quick
> look in the bug database, but apart from lots of reports of core dumps
> happening, I couldn't see anything about changing the location where
> they are stored. Are there any existing bugs about this?
>  http://httpd.apache.org/docs/current/mod/mpm_common.html#coredumpdirectory
>  http://stackoverflow.com/a/2698415/200609
More information about the hotspot-dev