LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-02-2013, 08:43 AM   #1
Orangutanklaus
Member
 
Registered: May 2006
Posts: 91

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


Hi

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/setenv.sh

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

Thanks
OK
 
Old 05-03-2013, 06:01 PM   #2
gdizzle
Member
 
Registered: Jul 2012
Posts: 234

Rep: Reputation: Disabled
Look in:

Code:
/etc/init.d/tomcat6
For this line:

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

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/setenv.sh 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).

Regards
OK
 
  


Reply


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 08:49 PM
How do I delete KDE options without deleting Dolphin's options? Mr. Alex Linux - Software 1 10-27-2011 07:06 AM
[SOLVED] modifying stream id of ip options Error options (unknown 136) MegaMindd Programming 0 06-07-2011 10:17 AM
default kernel options whysyn Slackware 1 06-17-2003 12:27 AM
default user options? hux Linux - Security 2 12-18-2002 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:56 PM.

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