programming forumsJavaMobileCertificationDatabasesCachingBooksEngineeringMicro ControllersOSLanguagesParadigmsIDEsBuild ToolsFrameworksApplication ServersOpen SourceThis SiteCareersOtherPie Eliteall forums
this forum made possible by our volunteer staff, including ...
Marshals:
- Campbell Ritchie
- Ron McLeod
- Paul Clapham
- Devaka Cooray
- Liutauras Vilda
Sheriffs:
- Jeanne Boyarsky
- paul wheaton
- Henry Wong
Saloon Keepers:
- Stephan van Hulst
- Tim Holloway
- Tim Moores
- Carey Brown
- Mikalai Zaikin
Bartenders:
- Lou Hamers
- Piet Souris
- Frits Walraven
Kerry Baer
Ranch Hand
Posts: 39
posted 13 years ago Number of slices to send: Optional 'thank-you' note:
I've been digging around trying to get more information about this and haven't found a decent source yet. So I thought I would try here.
I am getting the impression that running Tomcat in Server Mode is recommended.
What are the benefits of running in Server Mode compared to Client?
How do I can I check which mode Tomcat is currently running on my servers?
Thanks
posted 13 years ago Number of slices to send: Optional 'thank-you' note:
Client and Server mode are JVM startup options. Basically, they're 2 different optimization strategies, with Client mode being geared towards fast application startup and Server mode being geared towards long-term performance.
Actually, last time I looked, I think that Tomcat was starting up by default in Client mode, which is simply the default Sun/Oracle JVM startup mode. But you should be able add an entry to bin/setenv.sh (or .bat) and override that.
The difference between the modes isn't usually going to kill you if you start under the "wrong" mode. Presumably the JVM is going to adapt as it sees how it's being used.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Kees Jan Koster
JavaMonitor Support
Posts: 251
5
posted 13 years ago Number of slices to send: Optional 'thank-you' note:
Dear Kerry and Tim,
Actually, the difference is huge. The server VM is about twice as fast as the client VM in my experience. In fact, newer JVMs are shipped without the client VM completely. You can find more about this on http://java-monitor.com/forum/showthread.php?t=552, scroll down to the executive summary if you don't want that whole reading thing.
Tomcat by default leaves the JVM to decide for itself. On machines with limited RAM and only one CPU it will default to the client VM.
Kees Jan
Java-monitor, JVM monitoring made easy <- right here on Java Ranch
- Bookmark TopicWatch Topic
- New Topic