Oracle
1Z0-133 · Question #51
One Managed Server that is part of a large domain throws java.lang.out of Memory error (OOM) occasionally. You have been monitoring this server with the jvisualVM tool but that didn't help because…
The correct answer is B. Add-xx:+HeapDumponoutofmemoryError-xx:Heapdumppath=D:\hprof-dumps. See the full explanation below for the reasoning.
Question
One Managed Server that is part of a large domain throws java.lang.out of Memory error (OOM) occasionally. You have been monitoring this server with the jvisualVM tool but that didn't help because the issue occurs in frequently and not a specific scenario. So you decided to force the server to dump the heap memory as soon as an OOM gets thrown in order to analyze the dump file later. How do you modify the Java HotSpot Startup command to enable this feature and save the dump in the directory D:\hprof-dumps?
Exhibit
Options
- AAdd-xx:+DumpHeaponoutofmemory-xx:Dumppath=D:\hprof.
- BAdd-xx:+HeapDumponoutofmemoryError-xx:Heapdumppath=D:\hprof-dumps.
- CAdd-xx:+DumpHeaponoutofmemoryError-xx:Heappath=D:\hprof-dump.
- DAdd-xx:+HeapdumponoutofMemory-xx:HeapDumppath=D:\hprof-dumps.
- EAdd-xx:+HeapDumponoutofMemoryError-xx:Dumppath=D\hprof-dumps.
- FAdd-xx:+HeapDumponoutofMemoryExecepttion-xx:HeapDumppath=D:\hprof-dumps.
How the community answered
(39 responses)- A5% (2)
- B85% (33)
- C8% (3)
- F3% (1)
Community Discussion
No community discussion yet for this question.
