I am trying to monitor a process (which crashed due to Out Of Memory) last time on one production machine. The process is running with -XX:OnOutOfMemoryError=jmap
option. What does it mean? Does it mean that it would produce a heap dump on OutOfMemory? or the command jmap
is incomplete and should have more to it?
Asked
Active
Viewed 2,296 times
0
1 Answers
2
-XX:OnOutOfMemoryError= string
is used to specify a command or script to execute when an OutOfMemoryError
is first thrown. Documentation is your friend.

kosa
- 65,990
- 13
- 130
- 167
-
Not very helpful documentation isn't very friendly. – Steve Powell Nov 11 '15 at 15:43
-
@StevePowell Not sure what you mean. Documentation describes what commands are available, if you are looking for how to use, then yes it isn't very friendly – kosa Nov 11 '15 at 15:57