Why does heap space constantly increase when monitoring Tomcat with Java VisualVM?

断了今生、忘了曾经 提交于 2019-12-12 13:24:14

问题


I have a JRubyOnRails application running in Tomcat. After browsing to my application (localhost), logging in and then doing nothing, the Heap space seems to be growing continuously...

Is that normal? If I press on Perform GC, it does go down again. I'm wondering what will happen if I just leave it until it reaches the maximum of my Computer RAM?

And why is it increasing all the time while nothing happens? Is it due to the fact that I'm monitoring my application?

来源:https://stackoverflow.com/questions/17321609/why-does-heap-space-constantly-increase-when-monitoring-tomcat-with-java-visualv

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