开发者

How to know if you have memory size problems or if that's just the JVM growing empty?

开发者 https://www.devze.com 2023-03-02 16:55 出处:网络
The question is the following : I noticed on my server that the memory is 100% ful开发者_如何学Gol.

The question is the following :

I noticed on my server that the memory is 100% ful开发者_如何学Gol.

Now does that mean that :

  • my tomcat needs to much memory, and that I should either optimize my code or add some memory to my server
  • the JVM has grown in anticipation of its content growth

The basic question is : should I be worried ?


run jvisualvm, connect it to your application VM, perform a manual GC and see if there is any memory left?


..should I be worried ?

Start worrying when the app. gets OutOfMemoryErrors.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号