On 06/02/12 23:10, Robert Buckley wrote:
> I am a bit confused with how and where to set JAVA_OPTS in tomcat6 on linux.
> There are soooo many different setting that I have found, and even many 
> variations of where to set this variable so I thought I would bring this 
> question for the 1000th time into the forum.
> 1. Does JAVA_OPTS get set in "/etc/default/tomcat6" or in 
> "/etc/init.d/tomcat6" or both??

/etc/default/tomcat6

Note that there are many Linux distributions. The existence of this file 
suggests that you are using Debian or a derivative. /etc/default/tomcat6 
is the canonical place to set tomcat6 JVM options under Debian (for 
example, Debian 6 squeeze).

Do not modify /etc/init.d/tomcat or you changes may be lost when the 
package is updated.

> 2. In  the start up script "/etc/init.d/tomcat6"...the JAVA_OPTS seems to be 
> inside an if statement...so I don´t know if it gets read or not.

The script will Do The Right Thing. Leave it alone.

> 3. The first file in "/etc/default/tomcat6" is an extra file so I don´t know 
> if this gets read either!

I do not understand what the "extra file" is. /etc/default/tomcat6 is a 
file.

> 4. How can I check what JAVA_OPTS are really being used?

ps auxwwwww | grep catalina

> 5. what options are necessary?

You will likely need to increase -Xmx and perhaps increase the perm gen 
if you have many servlets. Selection of options is very much dependent 
on usage patterns, resource constraints, and the level of service you 
wish to provide. Use tomcat monitoring tools.

Kind regards,

-- 
Ben Caradoc-Davies <[email protected]>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to