1758610 Members
2437 Online
108873 Solutions
New Discussion юеВ

jave core under /

 
joe_91
Super Advisor

jave core under /

Team:

We had a core from java and it falls under /. Is there a way i can make the core to occupy some other filesystem other than /? I mean create an empty core file and link to some dir etc..Any Ideas?

Thanks

Joe.
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: jave core under /

Hi Joe,

# ln -s /file_system/core core

# ls -s /dev/null core

Regards,
Robert-Jan
A. Clay Stephenson
Acclaimed Contributor

Re: jave core under /

The core file contains valueable debugging data so it's not a good idea not to produce the file. It is bad that it is doing it in /. The answer is to start the process under a different directory; hopefully the java process itself does not do a chdir() to /. Core files are always sent to a process's current working directory.
If it ain't broke, I can fix that.
joe_91
Super Advisor

Re: jave core under /

Clay:

Actually i think i did not put the question properly. Ofcourse we need to debug the core file so we need it. Only thing was i did not want it to be under /.

Thanks

Joe.
lawrenzo
Trusted Contributor

Re: jave core under /

do you know what application or job is outputting the core file and where is it run from?

What I have found is that if a script or application fails, the core file is created in the directory where the script is run.

Not sure if this is the case here.

HTH
hello