Más contenido relacionado
La actualidad más candente (20)
Similar a Troubleshooting Native Memory Leaks in Java Applications (20)
Más de Poonam Bajaj Parhar (6)
Troubleshooting Native Memory Leaks in Java Applications
- 11. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
bash-3.2$ ps v 27890
PID STAT TIME SL RE PAGEIN VSZ RSS LIM TSIZ %CPU %MEM COMMAND
27890 S+ 0:01.68 0 0 0 10068904 63652 - 0 3.4 0.4 java -Djava.library.pat
27890 S+ 0:02.09 0 0 0 10076072 64604 - 0 3.6 0.4 java -Djava.library.pat
27890 S+ 0:02.57 0 0 0 10084268 65996 - 0 4.6 0.4 java -Djava.library.pat
27890 S+ 0:03.29 0 0 0 10099628 71592 - 0 3.6 0.4 java -Djava.library.pat
27890 S+ 0:03.60 0 0 0 10104748 72100 - 0 3.6 0.4 java -Djava.library.pat
27890 S+ 0:03.96 0 0 0 10111916 72644 - 0 3.5 0.4 java -Djava.library.pat
27890 S+ 0:04.37 0 0 0 10121136 73328 - 0 3.4 0.4 java -Djava.library.pat
27890 S+ 0:04.93 0 0 0 10129928 83688 - 0 3.1 0.5 java -Djava.library.pat
27890 S+ 0:05.44 0 0 0 10137060 84004 - 0 3.6 0.5 java -Djava.library.pat
27890 S+ 0:05.59 0 0 0 10139108 84272 - 0 3.2 0.5 java -Djava.library.pat
...
- 15. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
# A fatal error has been detected by the Java
Runtime Environment:
#
# java.lang.OutOfMemoryError : unable to
create new native Thread
# A fatal error has been detected by the Java
Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 32756
bytes for ChunkPool::allocate. Out of swap
space?
#
# Internal Error (allocation.cpp:166),
pid=2290, tid=27 # Error: ChunkPool::allocate
15
Native OutOfMemoryError
- 30. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 30
• bash-3.2$ jcmd 39057 VM.native_memory summary.diff
• 39057:
• Native Memory Tracking:
• Total: reserved=5761678KB +52943KB, committed=472350KB +104143KB
• - Java Heap (reserved=4194304KB, committed=163328KB +7680KB)
• (mmap: reserved=4194304KB, committed=163328KB +7680KB)
•
• - Class (reserved=1118333KB +47579KB, committed=117949KB +89963KB)
• (classes #68532 +58527)
• (malloc=8317KB +2523KB #5461 +3371)
• (mmap: reserved=1110016KB +45056KB, committed=109632KB +87440KB)
•
• - Thread (reserved=21594KB -2057KB, committed=21594KB -2057KB)
• (thread #22 -2)
• (stack: reserved=21504KB -2048KB, committed=21504KB -2048KB)
• (malloc=65KB -6KB #111 -10)
• (arena=25KB -2 #42 -4)
•
• - Code (reserved=250400KB +244KB, committed=5612KB +1348KB)
• (malloc=800KB +244KB #1498 +234)
• (mmap: reserved=249600KB, committed=4812KB +1104KB)
•
• - GC (reserved=159039KB +18KB, committed=145859KB +50KB)
• (malloc=5795KB +18KB #856 +590)
• (mmap: reserved=153244KB, committed=140064KB +32KB)
•
• - Compiler (reserved=153KB, committed=153KB)
• (malloc=22KB #72 -2)
• (arena=131KB #3)
•
• - Internal (reserved=13537KB +6949KB, committed=13537KB +6949KB)
• (malloc=13505KB +6949KB #70630 +59119)
• (mmap: reserved=32KB, committed=32KB)
•
• - Symbol (reserved=2715KB +9KB, committed=2715KB +9KB)
• (malloc=1461KB +9KB #702 +29)
• (arena=1255KB #1)
•
• - Native Memory Tracking (reserved=1416KB +1031KB, committed=1416KB +1031KB)
• (malloc=140KB +34KB #2197 +518)
• (tracking overhead=1275KB +997KB)
•
• - Arena Chunk (reserved=186KB -832KB, committed=186KB -832KB)
• (malloc=186KB -832KB)