Gero
Gero

Reputation: 1841

Avoid jvm crash logs

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!

Upvotes: 3

Views: 1941

Answers (1)

skaffman
skaffman

Reputation: 403591

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

Upvotes: 3

Related Questions