• Post Reply Bookmark Topic Watch Topic
  • New Topic

Directing HOTSPOT log files  RSS feed

 
RB White
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For audit purposes we need to make the directory housing the .jar file we invoke readonly. In the pass we have had hs_err_pid.log files generated in this directory, so we would like to direct these to another directory. I'm sure there must be a switch to do this but I can't find it; can anyone help?

The run line we currently use is along the lines of:

d:\jbuilderx\jdk1.4\bin\java.exe -jar d:\EzerMQWinsBridge\EzerMQWins.jar

TIA.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

I don't think there's any switch to redirect those; they are only generated when the JVM coredumps, and they're generated in the current working directory. If you can start your program so that the current working directory is a writeable one where you want the logs to go, then that would be one way.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!