My java app keeps crashing the jvm every time its closed.
I think the crashes are caused by a third party dll im using, so i cant fix them.
The problem is that a hs_err _pid.log log file is created on every crash, filling the CWD.
Can be jvm crash logging disabled? Is there a way to do that from inside the running java app?
Thanks!
-
Sorry, the VM version is 14.0-b16Gero– Gero2009-06-21 22:34:12 +00:00Commented Jun 21, 2009 at 22:34
-
Sorry, I phrased that poorly, that's the VM build version. Which java version is it?skaffman– skaffman2009-06-21 22:43:26 +00:00Commented Jun 21, 2009 at 22:43
-
Looks like that java6, so my answer below should be useful.skaffman– skaffman2009-06-21 22:46:03 +00:00Commented Jun 21, 2009 at 22:46
-
Effectively its java6, your Answer is correct.Gero– Gero2009-06-21 22:51:18 +00:00Commented Jun 21, 2009 at 22:51
Add a comment
|
1 Answer
In java 6, you can use the -XX:ErrorFile option to control where the file goes. I'm not sure if you can turn it off, but you probably direct it to /dev/null
http://java.sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/felog.html
1 Comment
Gero
Thanks a lot! That solves partially my problem, i will redirect log files to temp folder in windows xD