3

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!

4
  • Sorry, the VM version is 14.0-b16 Commented Jun 21, 2009 at 22:34
  • Sorry, I phrased that poorly, that's the VM build version. Which java version is it? Commented Jun 21, 2009 at 22:43
  • Looks like that java6, so my answer below should be useful. Commented Jun 21, 2009 at 22:46
  • Effectively its java6, your Answer is correct. Commented Jun 21, 2009 at 22:51

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot! That solves partially my problem, i will redirect log files to temp folder in windows xD

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.