From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:[EMAIL PROTECTED]
I really apologize if this has been answered previously but I
cannot find any definative documentation on the JAVA_OPTS
option. I would like to bring myself up to date on what
might be accomplished using this setting.
Using
Using JAVA_OPTS, you can pass any options *directly to the Java virtual
machine* on which you are running Tomcat. Some of these options are
standard, others are VM-specific. If you want to know the details,
check the documentation for your particular JVM - if it can be passed an
option, you
Scott, the JAVA_OPTS parameter are used to pass different startup
configuration options to the Java Virtual Machine. Most commonly it's
probably used to speficify the RAM used by the VM and to fine tune your
GC (Garbage Collection) settings. There are both standard and
non-standard options.
Give few more details, so that I can try your test case.
Thank you,
Edmon
Shakeel Ahmad wrote:
Hi,
JAVA_OPTS used to work in older Tomcat versions but the JVM Heap settings
are not picked by Tomcat 5.5 from JAVA_OPTS.
Please guide if anyone knows.
Thanks in advance.
Best Regards,
S H A K E E L
Technologies. www.globalnorthstar.com
EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.
-Original Message-
From: Edmon Begoli [mailto:[EMAIL PROTECTED]
Sent: 16 February, 2005 9:54 PM
To: Tomcat Users List
Subject: Re
http://localhost:port/manager/status
joon yoo wrote:
On a Win2000 SP4 server running tomcat 5.0.24 with 1GB of RAM
JAVA_OPTS was set to -Xmx768m -Xms768m -server
as an environment variable in Windows, (not set in a batch file to
start tomcat).
How can it be confirmed that the new JVM settings is
In the batch file, echo %JAVA_OPTS%
-Original Message-
From: joon yoo [mailto:[EMAIL PROTECTED]
Sent: January 4, 2005 4:19 PM
To: tomcat-user@jakarta.apache.org
Subject: JAVA_OPTS and Xmx Xms
On a Win2000 SP4 server running tomcat 5.0.24 with 1GB of RAM
JAVA_OPTS was set to -Xmx768m
Sorry I mispoke when I said it's not started in a batch file. What I
meant was that tomcat is running as a service that comes in the tomcat
installer app.
Joon
On Tue, 4 Jan 2005 16:36:59 -0500, Phillip Qin
[EMAIL PROTECTED] wrote:
In the batch file, echo %JAVA_OPTS%
-Original
Are you running Tomcat as a Windows Service?
On Tue, 2005-01-04 at 16:36, joon yoo wrote:
it looks like it's still stuck on the 64MB default value:
JVM
Free memory: 4.58 MB Total memory: 14.01 MB Max memory: 63.56 MB
`set` shows the system env. variables as:
Yes
On Tue, 04 Jan 2005 16:40:33 -0500, Ben Souther [EMAIL PROTECTED] wrote:
Are you running Tomcat as a Windows Service?
\
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You can stick this code in somewhere:
Runtime r = Runtime.getRuntime();
System.out.println(Free Memory: + r.freeMemory());
System.out.println(Total Memory: + r.totalMemory());
If your settings are taking effect you will see the
From: Wick, Daniel [mailto:[EMAIL PROTECTED]
When I set JAVA_OPTS=-Xmx 512m, in the
bin/setenv.sh on UNIX,
does this max out 512m for each context, or does it set it
for everthing that runs under tomcat?
It sets it for the Java virtual machine. Since all three contexts run in
one virtual
They are all sharing one JVM and it's resources. Java knows nothing of
tomcat or contexts.
[EMAIL PROTECTED] 11/19/04 8:59 AM
Hi!
I have 3 virtual hosts in tomcat, each with it's own java app/context
(total
of 3 apps). When I set JAVA_OPTS=-Xmx 512m, in the bin/setenv.sh on
UNIX,
does this max
I guess I could have deduced that from seeing only 1 java process...but I'm
happy to have the validation of the group! Many thanks!
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 10:35 AM
To: [EMAIL PROTECTED]
Subject: Re
Hi,
It's for everything under the Tomcat instance, since one Tomcat instance
is one JVM, no matter how many Hosts or webapps you have on it.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Wick, Daniel [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 11:00 AM
Hi,
First one is I was looking at -server cached and tested that out and got
nothing, tomcat didnt start a process.
You probably mistyped the JAVA_OPTS setting.
Next is -Xms128 -Xmx384 gives me an error of Error occurred during
initialization of VM Too small initial heap
Tomcat wont start
Specify -Xms128M and -Xmx384M ... the M stands for megabytes.
On Nov 15, 2004, at 10:22 AM, Steven Lister wrote:
First time caller, long time listener. :)
Have a couple of questions about JAVA_OPT settings in catalina.sh.
First one is I was looking at -server cached and tested that out and
got
?
- Original Message -
From: Shapira, Yoav
To: Tomcat Users List
Subject: RE: JAVA_OPTS
Date: Mon, 15 Nov 2004 12:23:36 -0500
Hi,
First one is I was looking at -server cached and tested that out and got
nothing, tomcat didnt start a process.
You probably mistyped
'
Does anyone know -server cached if that is mispelled or wrong tense?
- Original Message -
From: Shapira, Yoav
To: Tomcat Users List
Subject: RE: JAVA_OPTS
Date: Mon, 15 Nov 2004 12:23:36 -0500
Hi,
First one is I was looking at -server cached and tested that out and
got
nothing, tomcat didnt
Linux RH9 and RHE3, using Sun 1.4.2
From: Mufaddal Khumri [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: JAVA_OPTS
Date: Mon, 15 Nov 2004 11:11:37 -0700
I do not know what VM you are using. If you are using Windows and have
-Xmx384m -Djava.awt.headless=true'
- Original Message -
From: Mufaddal Khumri
To: Tomcat Users List
Subject: Re: JAVA_OPTS
Date: Mon, 15 Nov 2004 11:11:37 -0700
I do not know what VM you are using. If you are using Windows and have
tomcat as a service on there you will have
Mufaddal Khumri wrote:
As far as what the -server option will do for you , that depends on your
VM vendor.
The Sun JRE distributions typically don't include a server VM, so
-server will give an error. You'll have to download the JDK, and run
the JRE that is embedded within it
, 2004 12:36 PM
To: [EMAIL PROTECTED]
Subject: Re: JAVA_OPTS
Mufaddal Khumri wrote:
As far as what the -server option will do for you , that
depends on your
VM vendor.
The Sun JRE distributions typically don't include a server VM, so
-server will give an error. You'll have
From: Wick, Daniel [mailto:[EMAIL PROTECTED]
I understand why you would set a max amount of memory that
Java will use
(-Xmx 512m), but why do you set a minimum (-Xms128m)? Doesn't
it just use what it needs until it hits the max?
So that you don't have it starting up small and then
Hi,
I understand why you would set a max amount of memory that Java will
use
(-Xmx 512m), but why do you set a minimum (-Xms128m)? Doesn't it just
use
what it needs until it hits the max?
People set the minimum so that it's allocated on startup. That's faster
than allocating each block size on
If you'd prefer to use the tomcat service here's a page to assist in setup
of Xms, Xmx :
http://www.pauaware.co.nz/tomcatntservice.htm
-Original Message-
From: Steven Lister [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 November 2004 6:22 a.m.
To: Tomcat Users List
Subject: JAVA_OPTS
There must be an error message somewhere. Either in catalina.out or on the console.
Put a pause in at the end of catalina.bat so it stays on screen when you try to start
tomcat.
-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]
Sent: 26 August 2004 11:17
To: [EMAIL
the
leading and trailing spaces in the command to avoid potential problems
when
it gets expanded.
Oh well.
Thanks again,
Chris
-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 11:22 AM
To: Tomcat Users List
Subject: RE: JAVA_OPTS in catalina.bat
It works fine on my XP machine and in 2K, what version of windows are you running?
-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]
Sent: 26 August 2004 11:46
To: Tomcat Users List
Subject: RE: JAVA_OPTS in catalina.bat (Tomcat 5.0.27)
Thanks Matt,
I've since found
: JAVA_OPTS in catalina.bat (Tomcat 5.0.27)
It works fine on my XP machine and in 2K, what version of
windows are you running?
-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED]
Sent: 26 August 2004 11:46
To: Tomcat Users List
Subject: RE: JAVA_OPTS in catalina.bat
Howdy,
Yeah, what's going on is limited familiarity with unix syntax. Use
single or double quotes of your JAVA_OPTS (or any other environment
variable) includes spaces, e.g. JAVA_OPTS='-Da=b -Dc=d'.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Vijay Kandy
Hello All,
When I add the following line to catalina.sh:
JAVA_OPTS=-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFact
ory -Djava.naming.provider.url=jnp://localhost:1099
-Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
I get this error:
./catalina.sh:
Thank you but there was no need to pick on me.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 3:02 PM
To: Tomcat Users List
Subject: RE: JAVA_OPTS to tomcat
Howdy,
Yeah, what's going on is limited familiarity with unix syntax. Use
33 matches
Mail list logo