I got tomcat running with the following environment variables (system vars):
CATALINA_OPTS = -Xmx512M -server -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Xnoagent -Djava.compiler=NONE
CATALINA_HOME = C:\app\Jakarta-Tomcat_4.1.29
TOMCAT_HOME = C:\app\Jakarta-Tomcat_4.1.29
This does set my memory correct. (it has been a while sinds I set these though)
Kind Regards, Jan
Schultz, Gary - COMM wrote:
I was unable to get CATALINA_OPTS to set the memory allocation for Tomcat. I will continue to try to see if I can get it to work. I'm not running any other Java apps outside of Tomcat, so this isn't as much of a concern.
Gary
-----Original Message----- From: Robin Wyles [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 1:22 PM To: [EMAIL PROTECTED] Subject: Re: Finally figured out the memory settings for Windows server
AFAIK JAVA_OPTS affects the JVM as a whole... I think you can use CATALINA_OPTS to specifically set the memory allocation to Tomcat.
Robin
On 2 Nov 2004, at 11:20, Derek Hohls wrote:
Robin
OK, the "hidden agenda" here is that I actually need to increase the memory for the JVM for non-Tomcat related apps as well (e.g. XReporter, which runs under Phoenix).
Does JAVA_OPTS affect that as well?
Thanks Derek
[EMAIL PROTECTED] 2004/11/02 10:17:45 AM >>>
Derek,
On 2 Nov 2004, at 07:42, Derek Hohls wrote:
Being the eternal optimist, I would like to ask if
anyone know how to do this for Tomcat 4.x.... there
is no "Configure Tomcat" on the Windows menu?
It's a while since I ran Tomcat under Windows, but I believe you can set the JAVA_OPTS environment variable by editing the tomcat_home/bin/catalina.bat e.g:
set JAVA_OPTS=-Xms128m -Xmx512m
Robin
to
[EMAIL PROTECTED] 2004/11/01 05:03:08 PM >>>
Thanks to all who provided assistance.
I figured it out for Windows server. Go to Start->Programs->Apache Tomcat 5.0->Configure Tomcat. This will open up a dialog box to change settings. Click the middle tab, Java VM. There is a text area to add Java Options. After the last entry, -Xrs, add -Xms<value> -Xmx<value>, where these are the minimum size and maximum size of memory usage for the Java virtual machine (JVM). Click Apply or OK, and restart the Tomcat service.
One of the reasons I didn't think of this originally is that Apache
Tomcat
5.0 was missing from Start-Programs on my development server. I like
testI
in development before testing in production. Once I figured this out
reinstalled Tomcat on my development server, which placed ApacheTomcat
the5.0 in Start->Programs. From there I was able to set and test the memory settings for the JVM in development, and eventually place these into production. The XSP that hits the Oracle database now flies. I can gather a 10947 record, 9.5 megabyte data stream quickly. It's an entirely new web site. It really performs well. I can't believe the improvement in performance I received with the new memory settings.
The increased performance isn't only with Cocoon. Performance of our ArcIMS applications has increased considerably.
Once again, thanks to all who provided assistance.
Gary T. Schultz Web Technical Administrator / GIS Coordinator Wisconsin Department of Commerce 6th Floor P.O. Box 7970 Madison, WI 1-608-266-1283
-----Original Message----- From: Schultz, Gary - COMM [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 12:51 AM To: '[EMAIL PROTECTED]' Subject: Desperately seeking assistance and/or information on memory setti ngs
I'm desperately seeking a real working solution to memory management
in
Java-Tomcat-Cocoon in Windows. I continue to run into low memory
errors. I
researched the Cocoon wiki, Java web sites and Tomcat web sites, but
none of
the solutions appears to work. I can't get Cocoon to use more than
default 64 MB of memory allotted by the JVM. I had initially gottenI
Cocoon
to free up 50% of the available memory, so I had 64 Meg in use, with
around
30 Meg free. This initially help me with an XSP issue, but now when
checkworks.
Cocoon status I see that memory is getting low again, sometimes the
status
page will show just over 1 meg of free memory. My XSP no longer
IOur configuration:
2.4 GHz Xeon Processor Compaq server 2.5 Gigabytes RAM Windows 2000 (5.00.2195 Service Pack 4) J2SDK 1.4.2_03 Apache 2.0.49 Tomcat 5.0.18 Cocoon 2.1.5.1
I trying to sell Cocoon as a tool to help with a project at work. If
can'tCocoon
get consistent results with the XSP, management will not go with
andmy
will turn to another solution. This will be a major set back for
greater use
of Cocoon in our agency. I'm also trying to sell other agencies in
Wisconsin
on the benefits of Cocoon, but this recent set back will only make
wayefforts more difficult.
Any assistance I can get is greatly appreciated. I would like to see
Cocoon
used for tasks other than a simple web publishing system. But the
---------------------------------------------------------------------it looks right now, that will be a hard sell in my agency and to other State of Wisconsin government agencies.
Gary T. Schultz Web Technical Administrator / GIS Coordinator Wisconsin Department of Commerce 6th Floor P.O. Box 7970 Madison, WI 1-608-266-1283
---------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
