interpreting jstack output

天涯浪子 提交于 2019-12-06 01:06:51

It looks like your process is almost out of memory:

eden space 7045440K, 100% used
object space 31457280K, 99% used

In this case GC may run continiosly, trying to free some memory, consuming alomist all CPU. So application logic thread is under heavy starvation. You may either add more memory via -Xmx JVM option or profile the application. Profiling via JVisualVM, Jprofiler or other tool will give you important runtime data:

  • Memory allocaton dynamics. If memory consumption is increasing all the time you're likely to have a memory leak
  • Heap contents to find out what occupies the momory
  • GC statistics

Based on this data you'll certanly be able to resolve the issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!