Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 7 heap config vs hardware

 
John Beaulaurier
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

Is there a ratio or some formula for a initial heap configuration agaist the CPU / memory the JVM is going to run on?

Thanks
-John
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, John!

I haven't checked recently, but last time I looked, Tomcat ran using default JVM memory settings. Which for the Sun JVM was 128MB. I recommend starting with 256MB in most cases, though.

The standard memory management rules are sufficient except for PermGen space, which may need to be overridden if you are working with ORM-based apps such as Hibernate.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic