Why does heap space constantly increase when monitoring Tomcat with Java VisualVM?
问题 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