Skip to main content
Question

Heap Memory In Apache Tomcat


Forum|alt.badge.img+1

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

Forum|alt.badge.img+9
  • Valued Contributor
  • 94 replies
  • July 12, 2016

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.


Forum|alt.badge.img+13
  • Valued Contributor
  • 478 replies
  • July 12, 2016

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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings