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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -