java, setting -XX:HeapDumpPath directory to user.home

manhtuan04

New Member
I'm trying to control where where my heap dumps go on out of memory exceptions using -XX:HeapDumpPathMy java process doesn't have permission to write to the current working directory, so I'm trying to specify the user.home directory. I can't know the absolute name in advance, so I'm trying to do it using variable like user.homeI tried -XX:HeapDumpPath=${user.home}/mydump.hprof, but that doesn't workIs it possible to do this?Thanks
 
Back
Top