0

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?

trincot
  • 317,000
  • 35
  • 244
  • 286
kk1957
  • 8,246
  • 10
  • 41
  • 63

1 Answers1

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