3

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?

trincot
  • 317,000
  • 35
  • 244
  • 286
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244
  • It doesn't, in my experience, it shows a sawtooth shape. – user207421 Jun 27 '13 at 10:33
  • 1
    Mmm, indeed, it increases to the maximum level and then Garbage collector executes. But why does it keep increasing while nothing is being done? – Lieven Cardoen Jun 27 '13 at 13:20
  • Well if you connected through JMX then there is work being done; to send stats over. And usually many apps have background threads to check on things, eg. refresh DB connection etc... Ideally you are master of your own app, so you should know what does it do in background. Thread view can give you some hints too. – Hitobat Dec 09 '21 at 17:07

0 Answers0