I’m running tomcat6, and I’m unclear if I need to set java_opts or CATALINA_OPTS?
Also, in catalina.sh there is allot of references to CATALINA_OPTS, so I’m not sure either where I should be modifying the heap size?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can set JAVA_OPTS or CATALINA_OPTS at the top of the catalina.sh file. All the places a new value is set they ensure that it is appending to the existing values.
I prefer setting it in startup.sh instead of catalina.sh. Setting it in catalina.sh would apply to the process started by shutdown command as well.