Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-02-2013, 07:43 AM   #1
Registered: May 2006
Posts: 93

Rep: Reputation: 15
Question Default Java Options vs. Tomcat6 Options


I'm currently running a Tomcat6 service on Debian Squeeze and spent some time to test various parameters. When I check my settings with ps -ax |grep tomcat I notice that there are always some default parameters. For example: the tomcat starts with Xmx256m (I still don't know where this value comes from) and my custom HeapSpace of 1024m which I've set as CATALINA_OPTS in bin/

This leads into 2 questions:
1. Where does the default value come from?
2. Does ist collide in any way with my custom settings?

Old 05-03-2013, 05:01 PM   #2
Registered: Jul 2012
Posts: 234

Rep: Reputation: Disabled
Look in:

For this line:

JAVA_OPTS="-Xms256m -Xmx1024m
I believe variables in here should overide any other settings, however I am not sure.
Old 05-09-2013, 09:38 AM   #3
Registered: May 2006
Posts: 93

Original Poster
Rep: Reputation: 15
Hi gdizzle,

I forgot to mention that I've already disabled these values in /etc/init.d/tomcat6. Thats why I said that I don't know where the JAVA_OPTS values come from. If I specify JAVA_OPTS in bin/ I can override the default JAVA_OPTS values. But I don't believe that I can override JAVA_OPTS with CATALINA_OPTS because these are two different variables and Tomcat is aware of them. Finally I guess each JVM starts with a build-in default Heapspace. And my conclusion to the existence of both variables is that when ever possible CATALINA_OPTS are used - otherwise JAVA_OPTS (e.g. shutdown).



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper make options and gcc options for my particular processor CyclicFlux Linux - General 1 08-17-2012 07:49 PM
How do I delete KDE options without deleting Dolphin's options? Mr. Alex Linux - Software 1 10-27-2011 06:06 AM
[SOLVED] modifying stream id of ip options Error options (unknown 136) MegaMindd Programming 0 06-07-2011 09:17 AM
default kernel options whysyn Slackware 1 06-16-2003 11:27 PM
default user options? hux Linux - Security 2 12-18-2002 10:19 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration