Howdy, -server is set like all other java runtime options, same place as -Xms and -Xmx. It must come before any other option though.
I would caution one to not blindly set -server. Try it and see what you get. For a couple of our apps, we got better performance (both throughput and garbage collection) without the -server switch, and these are apps for which -server makes sense on paper. (Above is for the 1.3.1 Sun JVM on Solaris 2.8). Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Jack Li [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, June 25, 2002 8:01 AM >To: 'Tomcat Users List' >Subject: RE: -Xmx/-Xms Parameters, Where do they go??? > >How and where to set "-server"? > >Thanks, >Jack Li > >-----Original Message----- >From: David Kavanagh [mailto:[EMAIL PROTECTED]] >Sent: Monday, June 24, 2002 5:18 PM >To: Tomcat Users List >Subject: Re: -Xmx/-Xms Parameters, Where do they go??? > > >I've added a line in my tomcat.sh that sets the TOMCAT_OPTS variable. >You should really set "-server" since I've seen noticeable improvements >over the "-client" option (which is the default). "-server" must be the >first option. Then, use -Xms and -Xmx to increase your memory >allocation. If you are using 1.3.x, you should look at -XX:NewSize and >-XX:MaxNewSize for much larger mx/ms values. You can find more >information about these at http://java.sun.com/docs/hotspot/index.html > >David > >bob McLaughlin wrote: > >>The tomcat users guide states, that to improve performance, more memory >can >>be allocated to tomcat in: >> >>Modify your JVM memory configuration. Normally the JVM allocates an >initial >>size for the Java heap and that's it, if you need more then this amount of >>memory you will not get it. >>Nevertheless, in loaded sites, giving more memory to the JVM improves >>Tomcat's performance. You should use command line parameters such >>as -Xms/-Xmx/-ms/-mx to set the minimum/maximum size of the Java heap (and >>check to see if the performance was improved). >> >>QUESTION: Where does this command go? I assume the tomcat.sh or the >>startup.sh, but in which part of which one? Anyone doing this? >> >>Bob >> >> >>-- >>To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >>For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> >> > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > >-- >To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>