Java native memory usage

前端 未结 6 1769
有刺的猬
有刺的猬 2020-12-09 20:59

Is there any tool to know how many native memory has been used from my java application ? I\'ve experienced outofmemory from my application : Current setting is : -Xmx900m

6条回答
  •  不知归路
    2020-12-09 21:47

    For those that come after, VMMap will give you your answer. It will show native memory allocations. In my experience, the -Xss is ignored at minimum amount of 124K I believe within the OS allocation chunks. The OS allocations come in ever doubling chunks until it gets to 1GB(and then you're done.) If you can't reduce your threads, then try reducing your max heap and max permgen settings or try the /3GB switch.

提交回复
热议问题