我目前正在對Maven Tomcat7插件上的內存設置進行一些測試。我的線程堆棧大小設置爲128K以下各項:線程堆棧大小不匹配本機內存跟蹤線程堆棧大小
set MAVEN_OPTS=-XX:NativeMemoryTracking=summary -Xss128k
在那之後,我跟本機內存跟蹤選項我得到以下輸出運行jcmd。
C:\Users\gdrocell>jcmd 8672 VM.native_memory summary
8672:
Native Memory Tracking:
Total: reserved=9995213KB, committed=1283517KB
- Java Heap (reserved=8282112KB, committed=868864KB)
(mmap: reserved=8282112KB, committed=868864KB)
- Class (reserved=1103777KB, committed=59857KB)
(classes #9079)
(malloc=10145KB #11226)
(mmap: reserved=1093632KB, committed=49712KB)
- Thread (reserved=15844KB, committed=15844KB)
(thread #25)
(stack: reserved=15616KB, committed=15616KB)
(malloc=72KB #132)
(arena=156KB #48)
- Code (reserved=253665KB, committed=23761KB)
(malloc=4065KB #6562)
(mmap: reserved=249600KB, committed=19696KB)
- GC (reserved=313042KB, committed=288418KB)
(malloc=10386KB #203)
(mmap: reserved=302656KB, committed=278032KB)
- Compiler (reserved=152KB, committed=152KB)
(malloc=21KB #204)
(arena=131KB #3)
- Internal (reserved=10653KB, committed=10653KB)
(malloc=10589KB #10938)
(mmap: reserved=64KB, committed=64KB)
- Symbol (reserved=13705KB, committed=13705KB)
(malloc=10756KB #102196)
(arena=2949KB #1)
- Native Memory Tracking (reserved=2065KB, committed=2065KB)
(malloc=7KB #85)
(tracking overhead=2058KB)
- Arena Chunk (reserved=197KB, committed=197KB)
(malloc=197KB)
正如你所看到的,線程堆棧大小似乎是15.25mb。有人知道爲什麼嗎?
請用適當的語言/框架標籤標記您的問題。現有的tas不是特別有用。 –
添加標籤..... –