This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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: 18098
50
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