Java: How to specify JVM argument -XX:ErrorFile and preserve automatic PID in filename -


i using jni , when there crash due errors in target application hs_err_pid*.log file generated. want change default location file stored. now, searching around understand can achieved using jvm argument -xx:errorfile.

the documentation says default parameter ./hs_err_pid<pid>.log

now, when override default, how can tell jvm still include process id in filename? have tried literally put targetdir/hs_err_pid<pid>.log command line parameter, led whole argument being ignored (and file being stored default location, i.e. working directory). if targetdir/hs_err_pid.log file stored want it, not process id appended filename.

any suggestions appreciated.

try

-xx:errorfile=targetdir/hs_err_pid_%p.log 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -