Java binary, can't redirect stderr on VM crash

Patrick Wright pdoubleya at gmail.com
Thu Nov 27 22:21:15 UTC 2008


Hi Chris

> With Sun's JDK 6 and OpenJDK you should be able to redirect the vm output to
> a log file with the following options.
>  -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput
> -XX:LogFile=/tmp/hotspot.log

hotspot.log was created, but did not include the library crash, which
still went to the console.


Thanks, though! Had never tried those flags before.
Patrick



More information about the discuss mailing list