Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to check heap size allocated for jvm by linux

I have apache-tomcat as my web server. I want to check what heap size is allocated for jvm by linux. Also from where, I can modify it.

like image 804
Amit Avatar asked Feb 13 '12 08:02

Amit


1 Answers

A simple way on Linux is to run the following:

ps -ef |grep tomcat

Look for the starting and maximum JVM memory:

-Xms1024m -Xmx4096m

In this case it is allocating 1G on startup and the Maximum is 4G.

like image 198
Derick Avatar answered Oct 25 '22 04:10

Derick