Win a copy of Functional Reactive Programming this week in the Other Languages 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
Posts: 18303
56
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic