Heap Memory In Apache Tomcat

ramis
New Contributor

Hi Every One,

I am Configuring Apache tomcat Server for the first time and I am Wondering how much memory should I assigned for Initial heap and Maximum heap.

I Googled and found that initial heap size should be 1/64 of physical memory and maximum heap size should be 1/4 of the physical memory.

will it be problem if I assign 1G for initial and 1G for max heap ?

Thank you.

2 REPLIES 2

Matt_Ellis
Contributor II

Im guessing its dependent on the system your running but my Win2k13 R2 VM system has 8gb of ram I have allocated 2048MB for it and it seems to run great.

JPDyson
Valued Contributor

Assuming this server is hosting the web app and the database, I'd stick with the max of 2048MB with a min of 256MB. If you were only running Tomcat (separate DB server), I'd push that up as high as 4096MB.