JAVA_OPTS??
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. TIA SB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS??
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 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 can pass it in JAVA_OPTS. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS??
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 can pass it in JAVA_OPTS. - Peter Like for example if you want to run your Sun Java VM in server mode you would say (which I usually do): export JAVA_OPTS= -server Hope this helps, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS??
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. The non-standard ones are prefixed with an X and may not be supported by every java VM and can change without notice. There are also XX options that are even more specific to the system your running on and may require special access to use. Check out http://java.sun.com/docs/hotspot/VMOptions.html There is more info about them on the sun site. Regards, -Paul BATCHELOR, SCOTT (CONTRACTOR) wrote: 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. TIA SB - 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]
JAVA_OPTS , C:\Tomcat 5.5 ?
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 A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar Technologies. www.globalnorthstar.com EE(Computer Engineering), UET Lahore, Pakistan. SCJP,SCWCD SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS , C:\Tomcat 5.5 ?
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 A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar Technologies. www.globalnorthstar.com EE(Computer Engineering), UET Lahore, Pakistan. SCJP,SCWCD SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. - 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]
RE: JAVA_OPTS , C:\Tomcat 5.5 ?
Here is the detail. I was successfully running Tomcat 4.X using JAVA_OPTS=-Xmx512m -Xms512m and my web application was running with this JVM Heap settings correctly, without any OutOfMemoryError. I recently installed Tomcat 5.5 and expected the same JVM Heap settings but they never happen. Now I want to set my own values of JVM Heap in Tomcat 5.5. Or simply my question is that how we can set JVM Heap settings in Tomcat 5.5. Thanks. Best Regards, S H A K E E L A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar 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: JAVA_OPTS , C:\Tomcat 5.5 ? 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 A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar Technologies. www.globalnorthstar.com EE(Computer Engineering), UET Lahore, Pakistan. SCJP,SCWCD SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. - 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]
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 -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 configured and running correctly? Thanks, Joon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS and Xmx Xms
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 configured and running correctly? Thanks, Joon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS and Xmx Xms
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 -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 configured and running correctly? Thanks, Joon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41db086a194995855811664!
Re: JAVA_OPTS and Xmx Xms
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 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 -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 configured and running correctly? Thanks, Joon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41db086a194995855811664! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS and Xmx Xms
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: JAVA_HOME=D:\Sun\AppServer\jdk JAVA_OPTS=-Xmx768m -Xms768m -server Were quotes needed around the value for JAVA_OPTS? If configuring it as a system env. variable was incorrect then can this registry edit for tomcat4 work: http://www.pauaware.co.nz/tomcatntservice.htm Do all those values there need to be added or can the only desired values be added? Many thanks for any help, Joon On Tue, 04 Jan 2005 16:25:52 -0500, Ben Souther [EMAIL PROTECTED] wrote: Click on Server Status from the Tomcat Manger App. On Tue, 2005-01-04 at 16:19, 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 configured and running correctly? Thanks, Joon - 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]
Re: JAVA_OPTS and Xmx Xms
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]
Re: JAVA_OPTS and Xmx Xms
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 results accordingly. On Jan 4, 2005, at 2:42 PM, joon yoo wrote: 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] Mufaddal Khumri
JAVA_OPTS for multiple apps running under 1 tomcat
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 out 512m for each context, or does it set it for everthing that runs under tomcat? --Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS for multiple apps running under 1 tomcat
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 machine, it is set for everything that runs under (that instance of) Tomcat. - Peter smime.p7s Description: S/MIME cryptographic signature
Re: JAVA_OPTS for multiple apps running under 1 tomcat
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 out 512m for each context, or does it set it for everthing that runs under tomcat? --Dan - 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]
RE: JAVA_OPTS for multiple apps running under 1 tomcat
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: JAVA_OPTS for multiple apps running under 1 tomcat 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 out 512m for each context, or does it set it for everthing that runs under tomcat? --Dan - 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]
RE: JAVA_OPTS for multiple apps running under 1 tomcat
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 To: [EMAIL PROTECTED] Subject: JAVA_OPTS for multiple apps running under 1 tomcat 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 out 512m for each context, or does it set it for everthing that runs under tomcat? --Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAVA_OPTS
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 nothing, tomcat didnt start a process. Next is -Xms128 -Xmx384 gives me an error of Error occurred during initialization of VM Too small initial heap Tomcat wont start with either of these flags set in JAVA_OPTS. -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS
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 with either of these flags set in JAVA_OPTS. Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 to make it megabytes. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS
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 nothing, tomcat didnt start a process. Next is -Xms128 -Xmx384 gives me an error of Error occurred during initialization of VM Too small initial heap Tomcat wont start with either of these flags set in JAVA_OPTS. -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Mufaddal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS
Thanks for the quick reply. the sound you probably heard a couple of minutes ago was my head repeatedly hitting my desk. the Xms and Xms was a mispelling. :( export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true' 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 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 with either of these flags set in JAVA_OPTS. Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 to make it megabytes. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS
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 to specify the -server option in the registry. If you are using Mac OS X you can specify it in the JAVA_OPTS As far as what the -server option will do for you , that depends on your VM vendor. On Nov 15, 2004, at 10:35 AM, Steven Lister wrote: Thanks for the quick reply. the sound you probably heard a couple of minutes ago was my head repeatedly hitting my desk. the Xms and Xms was a mispelling. :( export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true' 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 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 with either of these flags set in JAVA_OPTS. Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 to make it megabytes. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Mufaddal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS
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 tomcat as a service on there you will have to specify the -server option in the registry. If you are using Mac OS X you can specify it in the JAVA_OPTS As far as what the -server option will do for you , that depends on your VM vendor. On Nov 15, 2004, at 10:35 AM, Steven Lister wrote: Thanks for the quick reply. the sound you probably heard a couple of minutes ago was my head repeatedly hitting my desk. the Xms and Xms was a mispelling. :( export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true' 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 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 with either of these flags set in JAVA_OPTS. Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 to make it megabytes. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Mufaddal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new MSN Search! Check it out! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS
Sun's JVM on Debian OS. One question about JAVA_OPTS is there a setting that I should have if I am serving content that is image intensive and database intensive. I understand that one app differes from another, just trying to get an idea on if I missing soemthing. JAVA_OPTS='-server -Xms128m -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 to specify the -server option in the registry. If you are using Mac OS X you can specify it in the JAVA_OPTS As far as what the -server option will do for you , that depends on your VM vendor. On Nov 15, 2004, at 10:35 AM, Steven Lister wrote: Thanks for the quick reply. the sound you probably heard a couple of minutes ago was my head repeatedly hitting my desk. the Xms and Xms was a mispelling. :( export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true' 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 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 with either of these flags set in JAVA_OPTS. Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 to make it megabytes. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Mufaddal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 to download the JDK, and run the JRE that is embedded within it (.../j2sdk1.4/jre). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS
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? --Dan -Original Message- From: Shankar Unni [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 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 to download the JDK, and run the JRE that is embedded within it (.../j2sdk1.4/jre). - 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]
RE: JAVA_OPTS
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 instantly having to grab more RAM. This way, an operating system can optimise the memory allocation, potentially improving startup speeds and (later) reducing pagefile fragmentation. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS
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 demand. However, the difference between -Xms allocation and on-demand allocation has really shrunk with JDK 1.4.2 and later, making this option fairly (but not completely) obsolete). Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS
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 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 nothing, tomcat didnt start a process. Next is -Xms128 -Xmx384 gives me an error of Error occurred during initialization of VM Too small initial heap Tomcat wont start with either of these flags set in JAVA_OPTS. -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - 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]
JAVA_OPTS in catalina.bat (Tomcat 5.0.27)
Hi, I've added set JAVA_OPTS= -Xms128m -Xmx128m to my catalina.bat file and Tomcat no longer starts. Same happens if I set JAVA_OPT as an environment variable (Windows XP). Anyone hit this? It works on my Tomcat 4.x catalina.bat file. Best regards Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS in catalina.bat (Tomcat 5.0.27)
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 PROTECTED] Subject: JAVA_OPTS in catalina.bat (Tomcat 5.0.27) Hi, I've added set JAVA_OPTS= -Xms128m -Xmx128m to my catalina.bat file and Tomcat no longer starts. Same happens if I set JAVA_OPT as an environment variable (Windows XP). Anyone hit this? It works on my Tomcat 4.x catalina.bat file. Best regards Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS in catalina.bat (Tomcat 5.0.27)
Thanks Matt, I've since found that it just didn't like the version of the command in catalina.bat (or setclasspath.bat) Fails = set JAVA_OPTS= -Xms128m -Xmx128m Succeeds = set JAVA_OPTS=-Xms128m -Xmx128m I'd seen some mailing list posting the other day that recommended putting 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 (Tomcat 5.0.27) 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 PROTECTED] Subject: JAVA_OPTS in catalina.bat (Tomcat 5.0.27) Hi, I've added set JAVA_OPTS= -Xms128m -Xmx128m to my catalina.bat file and Tomcat no longer starts. Same happens if I set JAVA_OPT as an environment variable (Windows XP). Anyone hit this? It works on my Tomcat 4.x catalina.bat file. Best regards Chris - 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]
RE: 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 (Tomcat 5.0.27) Thanks Matt, I've since found that it just didn't like the version of the command in catalina.bat (or setclasspath.bat) Fails = set JAVA_OPTS= -Xms128m -Xmx128m Succeeds = set JAVA_OPTS=-Xms128m -Xmx128m I'd seen some mailing list posting the other day that recommended putting 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 (Tomcat 5.0.27) 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 PROTECTED] Subject: JAVA_OPTS in catalina.bat (Tomcat 5.0.27) Hi, I've added set JAVA_OPTS= -Xms128m -Xmx128m to my catalina.bat file and Tomcat no longer starts. Same happens if I set JAVA_OPT as an environment variable (Windows XP). Anyone hit this? It works on my Tomcat 4.x catalina.bat file. Best regards Chris - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS in catalina.bat (Tomcat 5.0.27)
I'm on 2K in this case. I've just double checked that I'm not talking rubbish and find that having the double-quoted version, with leading an trailing spaced still blows up. However, simply removing the double-quotes works fine. I only used the quotes to ensure the spaces were there (see my previous mail) (In catalina.bat) Fails set JAVA_OPTS= -Xms128m -Xmx128m Succeedsset JAVA_OPTS= -Xms128m -Xmx128m(note trailing space still present) Best regards Chris -- Chris Ward, Horizon Asset Limited mailto:[EMAIL PROTECTED] Tel +44 (20) 7367 7028, Fax 7367 7029 -- THIS E-MAIL MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. IF YOU ARE NOT THE INTENDED RECIPIENT (OR HAVE RECEIVED THIS E-MAIL IN ERROR) PLEASE NOTIFY THE SENDER IMMEDIATELY AND DESTROY THIS E- MAIL. ANY UNAUTHORISED COPYING, DISCLOSURE OR DISTRIBUTION OF THE MATERIAL IN THIS E-MAIL IS STRICTLY FORBIDDEN. HORIZON ASSET LIMITED IS AUTHORISED AND REGULATED BY THE FINANCIAL SERVICES AUTHORITY. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 12:00 PM To: Tomcat Users List Subject: RE: 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 (Tomcat 5.0.27) Thanks Matt, I've since found that it just didn't like the version of the command in catalina.bat (or setclasspath.bat) Fails = set JAVA_OPTS= -Xms128m -Xmx128m Succeeds =set JAVA_OPTS=-Xms128m -Xmx128m I'd seen some mailing list posting the other day that recommended putting 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 (Tomcat 5.0.27) 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 PROTECTED] Subject: JAVA_OPTS in catalina.bat (Tomcat 5.0.27) Hi, I've added set JAVA_OPTS= -Xms128m -Xmx128m to my catalina.bat file and Tomcat no longer starts. Same happens if I set JAVA_OPT as an environment variable (Windows XP). Anyone hit this? It works on my Tomcat 4.x catalina.bat file. Best regards Chris - 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]
RE: Using JAVA_OPTS= -sever with jsvc on linux
With this opts in CATALINA_OPTS i get this message error: jsvc error: Invalid option -server jsvc error: Cannot parse command line arguments Mariano López -Mensaje original- De: Dale, Matt [mailto:[EMAIL PROTECTED] Enviado el: jueves, 10 de junio de 2004 11:20 Para: Tomcat Users List; [EMAIL PROTECTED] Asunto: RE: Using JAVA_OPTS= -sever with jsvc on linux It looks like you should put it in your CATALINA_OPTS so that line would become CATALINA_OPTS=-server -Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m -Original Message- From: Mariano [mailto:[EMAIL PROTECTED] Sent: 10 June 2004 10:17 To: [EMAIL PROTECTED] Subject: Using JAVA_OPTS= -sever with jsvc on linux Hi all, i like to specify JAVA_OPTS= -sever with jsvc on linux Fedora Core 1. I use J2SDK 1.4.2_04-b05 and Tomcat 5.0.25. Now i put a line into Tomcat.sh like JAVA_OPTS= -sever , but i don't know if this is correct. Tomcat.sh: JAVA_HOME=/var/j2sdk CATALINA_HOME=/var/tomcat DAEMON_HOME=/var/tomcat/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp JAVA_OPTS= -server export JAVA_OPTS CATALINA_OPTS=-Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac Thanks. Mariano López - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using JAVA_OPTS= -sever with jsvc on linux
Adding -jvm server to the command line jsvc i get this error: jsvc error: Invalid JVM name specified server ./tomcat: line 85: 31021 Violación de segmento $DAEMON_HOME/jsvc -jvm server -user $TOMCAT_USER -home $JAVA_HOM E -Dcatalina.home=$CATALINA_HOME -Djava.io.tmpdir=$TMP_DIR -outfile $CATALINA_HOME/logs/catalina.out -errfile '1 ' $CATALINA_OPTS -cp $CLASSPATH org.apache.catalina.startup.Bootstrap -Mensaje original- De: news [mailto:[EMAIL PROTECTED] nombre de Bill Barker Enviado el: viernes, 11 de junio de 2004 7:04 Para: [EMAIL PROTECTED] Asunto: Re: Using JAVA_OPTS= -sever with jsvc on linux Try adding: -jvm server to your command line. Mariano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, i like to specify JAVA_OPTS= -sever with jsvc on linux Fedora Core 1. I use J2SDK 1.4.2_04-b05 and Tomcat 5.0.25. Now i put a line into Tomcat.sh like JAVA_OPTS= -sever , but i don't know if this is correct. Tomcat.sh: JAVA_HOME=/var/j2sdk CATALINA_HOME=/var/tomcat DAEMON_HOME=/var/tomcat/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp JAVA_OPTS= -server export JAVA_OPTS CATALINA_OPTS=-Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac Thanks. Mariano López - 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]
RE: Using JAVA_OPTS= -sever with jsvc on linux
In that case I'd suggest putting the the JAVA_OPTS in the $TOMCAT_HOME/bin/catalina.sh. Add the line JAVA_OPTS=-server to somewhere near the top of the file. On Fri, 2004-06-11 at 07:28, Mariano wrote: With this opts in CATALINA_OPTS i get this message error: jsvc error: Invalid option -server jsvc error: Cannot parse command line arguments Mariano Lpez -Mensaje original- De: Dale, Matt [mailto:[EMAIL PROTECTED] Enviado el: jueves, 10 de junio de 2004 11:20 Para: Tomcat Users List; [EMAIL PROTECTED] Asunto: RE: Using JAVA_OPTS= -sever with jsvc on linux It looks like you should put it in your CATALINA_OPTS so that line would become CATALINA_OPTS=-server -Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m -Original Message- From: Mariano [mailto:[EMAIL PROTECTED] Sent: 10 June 2004 10:17 To: [EMAIL PROTECTED] Subject: Using JAVA_OPTS= -sever with jsvc on linux Hi all, i like to specify JAVA_OPTS= -sever with jsvc on linux Fedora Core 1. I use J2SDK 1.4.2_04-b05 and Tomcat 5.0.25. Now i put a line into Tomcat.sh like JAVA_OPTS= -sever , but i don't know if this is correct. Tomcat.sh: JAVA_HOME=/var/j2sdk CATALINA_HOME=/var/tomcat DAEMON_HOME=/var/tomcat/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp JAVA_OPTS= -server export JAVA_OPTS CATALINA_OPTS=-Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac Thanks. Mariano Lpez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using JAVA_OPTS= -sever with jsvc on linux
You can try using '-debug' to see what JVMs it finds. I'm guessing that you are using jsvc v1.0 with a 1.4.x JVM (which doesn't work well). You could try upgrading to the CVS HEAD version. Mariano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Adding -jvm server to the command line jsvc i get this error: jsvc error: Invalid JVM name specified server ./tomcat: line 85: 31021 Violación de segmento $DAEMON_HOME/jsvc -jvm server -user $TOMCAT_USER -home $JAVA_HOM E -Dcatalina.home=$CATALINA_HOME -Djava.io.tmpdir=$TMP_DIR -outfile $CATALINA_HOME/logs/catalina.out -errfile '1 ' $CATALINA_OPTS -cp $CLASSPATH org.apache.catalina.startup.Bootstrap -Mensaje original- De: news [mailto:[EMAIL PROTECTED] nombre de Bill Barker Enviado el: viernes, 11 de junio de 2004 7:04 Para: [EMAIL PROTECTED] Asunto: Re: Using JAVA_OPTS= -sever with jsvc on linux Try adding: -jvm server to your command line. Mariano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, i like to specify JAVA_OPTS= -sever with jsvc on linux Fedora Core 1. I use J2SDK 1.4.2_04-b05 and Tomcat 5.0.25. Now i put a line into Tomcat.sh like JAVA_OPTS= -sever , but i don't know if this is correct. Tomcat.sh: JAVA_HOME=/var/j2sdk CATALINA_HOME=/var/tomcat DAEMON_HOME=/var/tomcat/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp JAVA_OPTS= -server export JAVA_OPTS CATALINA_OPTS=-Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac Thanks. Mariano López - 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]
Using JAVA_OPTS= -sever with jsvc on linux
Hi all, i like to specify JAVA_OPTS= -sever with jsvc on linux Fedora Core 1. I use J2SDK 1.4.2_04-b05 and Tomcat 5.0.25. Now i put a line into Tomcat.sh like JAVA_OPTS= -sever , but i don't know if this is correct. Tomcat.sh: JAVA_HOME=/var/j2sdk CATALINA_HOME=/var/tomcat DAEMON_HOME=/var/tomcat/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp JAVA_OPTS= -server export JAVA_OPTS CATALINA_OPTS=-Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac Thanks. Mariano López
RE: Using JAVA_OPTS= -sever with jsvc on linux
It looks like you should put it in your CATALINA_OPTS so that line would become CATALINA_OPTS=-server -Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m -Original Message- From: Mariano [mailto:[EMAIL PROTECTED] Sent: 10 June 2004 10:17 To: [EMAIL PROTECTED] Subject: Using JAVA_OPTS= -sever with jsvc on linux Hi all, i like to specify JAVA_OPTS= -sever with jsvc on linux Fedora Core 1. I use J2SDK 1.4.2_04-b05 and Tomcat 5.0.25. Now i put a line into Tomcat.sh like JAVA_OPTS= -sever , but i don't know if this is correct. Tomcat.sh: JAVA_HOME=/var/j2sdk CATALINA_HOME=/var/tomcat DAEMON_HOME=/var/tomcat/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp JAVA_OPTS= -server export JAVA_OPTS CATALINA_OPTS=-Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac Thanks. Mariano López Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using JAVA_OPTS= -sever with jsvc on linux
Try adding: -jvm server to your command line. Mariano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, i like to specify JAVA_OPTS= -sever with jsvc on linux Fedora Core 1. I use J2SDK 1.4.2_04-b05 and Tomcat 5.0.25. Now i put a line into Tomcat.sh like JAVA_OPTS= -sever , but i don't know if this is correct. Tomcat.sh: JAVA_HOME=/var/j2sdk CATALINA_HOME=/var/tomcat DAEMON_HOME=/var/tomcat/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp JAVA_OPTS= -server export JAVA_OPTS CATALINA_OPTS=-Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac Thanks. Mariano López - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAVA_OPTS in catalina.sh
Hi All, Anyone encountered any error when JAVA_OPTS='-Xmx512m -XX:+AggressiveHeap' is added in catalina.sh. For Environment : Red Hat Enterprise Linux ES release 2.1(panama) Kernel version: 2.4.9-e.12 Java Version: 1.4.2_04 Client VM (build 1.4.2_04-b05, mixed mode) The following error is thrown HotSpot Virtual Machine Error, Internal Error Please report this error at http://java.sun.com/cgi-bin/bugreport.cgi Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) Error ID: 43113F32554E54494D45110E4350500308 Problematic Thread: prio=1 tid=0x08052530 nid=0x1e9a runnable Heap at VM Abort: Heap PSYoungGen total 172032K, used 134476K [0x4483, 0x5083, 0x5083) eden space 147456K, 91% used [0x4483,0x4cb83048,0x4d83) from space 24576K, 0% used [0x4f03,0x4f03,0x5083) to space 24576K, 0% used [0x4d83,0x4d83,0x4f03) PSOldGentotal 327680K, used 0K [0x5083, 0x6483, 0x6483) object space 327680K, 0% used [0x5083,0x5083,0x6483) PSPermGen total 10368K, used 10259K [0x6483, 0x6525, 0x6883) object space 10368K, 98% used [0x6483,0x65234cf8,0x6525) But for Environment : Red Hat Linux release 7.2 (Enigma) Kernel version: 2.4.9-21smp Java Version: 1.4.2 Client VM (build 1.4.2-b28, mixed mode) Its working fine. Can anyone enlighten? Thanks Warmest Regards Thomas Chua
RE: [OT] JAVA_OPTS in catalina.sh
That is not a tomcat but an jvm issue. You are confusing me. You say the problem happens in 1.4.2_04 Client VM (build 1.4.2_04-b05, mixed mode) The dump says the problem happens in java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) You say this one works. Can you please verify which one works ? - Maybe updating your kernel can help. (I'm not familiar with Red Hat, but current kernel numbers for other distros are = 2.4.20) - If the problems occurs in 1.4.2-b28 than upgrade the jvm to 1.4.2_04-b05. -Original Message- From: Thomas Chua [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 8:32 AM To: [EMAIL PROTECTED] Subject: JAVA_OPTS in catalina.sh Anyone encountered any error when JAVA_OPTS='-Xmx512m -XX:+AggressiveHeap' For Environment : Red Hat Enterprise Linux ES release 2.1(panama) Kernel version: 2.4.9-e.12 Java Version: 1.4.2_04 Client VM (build 1.4.2_04-b05, mixed mode) The following error is thrown HotSpot Virtual Machine Error, Internal Error Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) snip/ But for Environment : Red Hat Linux release 7.2 (Enigma) Kernel version: 2.4.9-21smp Java Version: 1.4.2 Client VM (build 1.4.2-b28, mixed mode) Its working fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] JAVA_OPTS in catalina.sh
Sorry, Let me rephrase. I tried with both (build 1.4.2_04-b05, mixed mode)and(1.4.2-b28 mixed mode) and under Red Hat Enterprise Linux ES release 2.1(panama) both VM crashes. Using Red Hat Linux release 7.2 (Enigma) with (1.4.2-b28 mixed mode) works fine. Cheers Thomas Chua Ralph Einfeldt [EMAIL PROTECTED] 04/14/2004 02:57 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: [OT] JAVA_OPTS in catalina.sh That is not a tomcat but an jvm issue. You are confusing me. You say the problem happens in 1.4.2_04 Client VM (build 1.4.2_04-b05, mixed mode) The dump says the problem happens in java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) You say this one works. Can you please verify which one works ? - Maybe updating your kernel can help. (I'm not familiar with Red Hat, but current kernel numbers for other distros are = 2.4.20) - If the problems occurs in 1.4.2-b28 than upgrade the jvm to 1.4.2_04-b05. -Original Message- From: Thomas Chua [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 8:32 AM To: [EMAIL PROTECTED] Subject: JAVA_OPTS in catalina.sh Anyone encountered any error when JAVA_OPTS='-Xmx512m -XX:+AggressiveHeap' For Environment : Red Hat Enterprise Linux ES release 2.1(panama) Kernel version: 2.4.9-e.12 Java Version: 1.4.2_04 Client VM (build 1.4.2_04-b05, mixed mode) The following error is thrown HotSpot Virtual Machine Error, Internal Error Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) snip/ But for Environment : Red Hat Linux release 7.2 (Enigma) Kernel version: 2.4.9-21smp Java Version: 1.4.2 Client VM (build 1.4.2-b28, mixed mode) Its working fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] JAVA_OPTS in catalina.sh
So it's most likely the kernel or an os library for Red Hat Enterprise Linux ES release 2.1 that is used by java that causes the problem. As I don't have any experience with Red Hat I can't provide any help in this environment. - Are there updates to the kernel or the core libraries ? -Original Message- From: Thomas Chua [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 9:42 AM To: Tomcat Users List Subject: RE: [OT] JAVA_OPTS in catalina.sh I tried with both (build 1.4.2_04-b05, mixed mode)and(1.4.2-b28 mixed mode) and under Red Hat Enterprise Linux ES release 2.1(panama) both VM crashes. Using Red Hat Linux release 7.2 (Enigma) with (1.4.2-b28 mixed mode) works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] JAVA_OPTS in catalina.sh
There's minor kernel difference Red Hat Linux release 7.2 kernel is 2.4.9-21smp and Enterprise linux kernel is 2.4.9-e.12 but i am not familiar with linux so i do not know whether this minor difference will cause the VM to crash. Ralph Einfeldt [EMAIL PROTECTED] 04/14/2004 05:37 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: [OT] JAVA_OPTS in catalina.sh So it's most likely the kernel or an os library for Red Hat Enterprise Linux ES release 2.1 that is used by java that causes the problem. As I don't have any experience with Red Hat I can't provide any help in this environment. - Are there updates to the kernel or the core libraries ? -Original Message- From: Thomas Chua [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 9:42 AM To: Tomcat Users List Subject: RE: [OT] JAVA_OPTS in catalina.sh I tried with both (build 1.4.2_04-b05, mixed mode)and(1.4.2-b28 mixed mode) and under Red Hat Enterprise Linux ES release 2.1(panama) both VM crashes. Using Red Hat Linux release 7.2 (Enigma) with (1.4.2-b28 mixed mode) works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JAVA_OPTS in catalina.sh
On Wed, Apr 14, 2004 at 06:46:35PM +0800, Thomas Chua wrote: : but i am not familiar with linux so i do not know whether this minor : difference : will cause the VM to crash. The RH kernels leave their .config file in /boot (I forget the exact name). Run a diff between the two files and you'll see the options for each one. That said, there could be other differences between the two machines -- libraries, physical memory problems, etc. Have you had any luck posting finding this problem in the Java forums on Sun's website? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JAVA_OPTS in catalina.sh
Thank you... will try to figure out the diff between the config and post it in Java forum :-) [EMAIL PROTECTED] 04/14/2004 08:45 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: [OT] JAVA_OPTS in catalina.sh On Wed, Apr 14, 2004 at 06:46:35PM +0800, Thomas Chua wrote: : but i am not familiar with linux so i do not know whether this minor : difference : will cause the VM to crash. The RH kernels leave their .config file in /boot (I forget the exact name). Run a diff between the two files and you'll see the options for each one. That said, there could be other differences between the two machines -- libraries, physical memory problems, etc. Have you had any luck posting finding this problem in the Java forums on Sun's website? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JAVA_OPTS in catalina.sh
Could this possibly be a time to try setting LD_ASSUME_KERNEL to 2.4? [EMAIL PROTECTED] 4/14/04 7:08:41 AM Thank you... will try to figure out the diff between the config and post it in Java forum :-) [EMAIL PROTECTED] 04/14/2004 08:45 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: [OT] JAVA_OPTS in catalina.sh On Wed, Apr 14, 2004 at 06:46:35PM +0800, Thomas Chua wrote: : but i am not familiar with linux so i do not know whether this minor : difference : will cause the VM to crash. The RH kernels leave their .config file in /boot (I forget the exact name). Run a diff between the two files and you'll see the options for each one. That said, there could be other differences between the two machines -- libraries, physical memory problems, etc. Have you had any luck posting finding this problem in the Java forums on Sun's website? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JAVA_OPTS in catalina.sh
On Wed, Apr 14, 2004 at 10:15:36AM -0600, Jeff Tulley wrote: : Could this possibly be a time to try setting LD_ASSUME_KERNEL to 2.4? perhaps -- but I thought that only affected the underlying NTPL threading functionality... Did RH backport NPTL that long ago (RH ES 2.1)? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JAVA_OPTS in catalina.sh
Hi Thomas, I don't use RH Enterprise Server, so I'm not sure if this is your problem : RH7.x does not use the NPTL (Native Posix Thread Libraries). I'm not sure if ES 2.1 does. One way to check is to set the following environment variables and check if you still get crashes : As root, execute export LD_ASSUME_KERNEL=2.2.5 Then try to do a java -version and see if it seg faults. If it does not, then you will know that: -- ES 2.1 uses the NPTL, so you'll need to set the above env var in either /etc/profile or your .bashrc file. Thomas Chua wrote: There's minor kernel difference Red Hat Linux release 7.2 kernel is 2.4.9-21smp and Enterprise linux kernel is 2.4.9-e.12 but i am not familiar with linux so i do not know whether this minor difference will cause the VM to crash. Ralph Einfeldt [EMAIL PROTECTED] 04/14/2004 05:37 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: [OT] JAVA_OPTS in catalina.sh So it's most likely the kernel or an os library for Red Hat Enterprise Linux ES release 2.1 that is used by java that causes the problem. As I don't have any experience with Red Hat I can't provide any help in this environment. - Are there updates to the kernel or the core libraries ? -Original Message- From: Thomas Chua [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 9:42 AM To: Tomcat Users List Subject: RE: [OT] JAVA_OPTS in catalina.sh I tried with both (build 1.4.2_04-b05, mixed mode)and(1.4.2-b28 mixed mode) and under Red Hat Enterprise Linux ES release 2.1(panama) both VM crashes. Using Red Hat Linux release 7.2 (Enigma) with (1.4.2-b28 mixed mode) works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- There is nothing so absurd but some philosopher has said it. -- Marcus Tullius Cicero ++ | Pascal Chong | | email: [EMAIL PROTECTED] | || | Please visit my site at : http://cymulacrum.net| | If you're using my documentation, please read the Terms and| | and Conditions at http://cymulacrum.net/terms.html | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
[EMAIL PROTECTED] ha scritto: Hi, Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am using Win 2k Pro and Tomcat 5. Thank you, Best Regards, Uma Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio -- --- Giorgio Ponza Web Developer Opla.com Ltd Tel. +39 011 7506233 Fax. +39 011 746179 http://www.opla.it --- Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon Giorgio Ponza wrote: [EMAIL PROTECTED] ha scritto: Hi, Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am using Win 2k Pro and Tomcat 5. Thank you, Best Regards, Uma Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
On Wed, 2004-04-07 at 14:43, Jon Wingfield wrote: No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. same on Windows 2000 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
Jon Wingfield ha scritto: No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon I don't think is a good approach, at least for me. An environment variable is accessible to all java programs. Modifying the script affects only tomcat. Bye Giorgio Giorgio Ponza wrote: Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Giorgio Ponza Web Developer Opla.com Ltd Tel. +39 011 7506233 Fax. +39 011 746179 http://www.opla.it --- Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to set JAVA_OPTS
Hi, Yup, same here. I don't like to rely on the environment. Yoav Shapira Millennium Research Informatics -Original Message- From: Giorgio Ponza [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 9:56 AM To: Tomcat Users List Subject: Re: Where to set JAVA_OPTS Jon Wingfield ha scritto: No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon I don't think is a good approach, at least for me. An environment variable is accessible to all java programs. Modifying the script affects only tomcat. Bye Giorgio Giorgio Ponza wrote: Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Giorgio Ponza Web Developer Opla.com Ltd Tel. +39 011 7506233 Fax. +39 011 746179 http://www.opla.it --- Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to set JAVA_OPTS
We use the setenv.sh. (tomcat 4.1xxx) for all custom environment variables as well as java options. catalina.sh references this script: # Get standard environment variables PRGDIR=`dirname $PRG` CATALINA_HOME=`cd $PRGDIR/.. ; pwd` if [ -r $CATALINA_HOME/bin/setenv.sh ]; then . $CATALINA_HOME/bin/setenv.sh fi catalina.bat has a similar reference. We create a setenv.sh in the bin directory and place ALL environment variables in it, including CATALINA_OPTS. Example contents: export CATALINA_HOME=/usr/local/tomcat # jvm command line options for tomcat export CATALINA_OPTS=-mx128m # db/2 env export PATH=$PATH:/home/db2inst1/sqllib/bin export LIBPATH=$LIBPATH:/home/db2inst1/sqllib/lib export LD_LIBRARY_PATH=/home/db2inst1/sqllib/lib david Shapira, Yoav [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] .comcc: Subject: RE: Where to set JAVA_OPTS 04/07/2004 09:57 AM Please respond to Tomcat Users List Hi, Yup, same here. I don't like to rely on the environment. Yoav Shapira Millennium Research Informatics -Original Message- From: Giorgio Ponza [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 9:56 AM To: Tomcat Users List Subject: Re: Where to set JAVA_OPTS Jon Wingfield ha scritto: No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon I don't think is a good approach, at least for me. An environment variable is accessible to all java programs. Modifying the script affects only tomcat. Bye Giorgio Giorgio Ponza wrote: Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to set JAVA_OPTS
Hi, Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am using Win 2k Pro and Tomcat 5. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set up JAVA_OPTS while running tomcat as a service
Well, Tomcat 5 has the nice GUI to do most of this (right-click the Tomcat sys-tray icon), as well as the 'service.bat' file that you can customize for your settings. There should never be a reason to edit the registry settings directly. However, for those people that don't want to heed the warning :), the settings are located at: HKLM\Software\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters. Antoni Unkovich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I'm keen to try this with tomcat 5.0.19. Please can you supply a little more detail regarding the registry settings? Thanks in advance Antoni -Original Message- From: Mandy Joss [mailto:[EMAIL PROTECTED] Sent: Saturday, 3 April 2004 9:57 a.m. To: [EMAIL PROTECTED] Subject: RE: How to set up JAVA_OPTS while running tomcat as a service Tom Reis, Thanks a lot. It worked. You were awesome. I wish I could give you some Duke dollars :) Thanks again, Mandy From: Reis, Tom [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 2 Apr 2004 15:10:31 -0600 You can set the options for services in the registry. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters set the JVM Option Count to the number of parameters you are setting (it is probably already set to 2) and then add JVM Option Number # strings for each new option. the setting for maximum heap is -Xmx###M, minimum is -Xms###M Let me know if this works. I have done it to 1 server so far and it seems to works, but I can't tell how much memory is being used. -Original Message- From: Mandy Joss [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:58 PM To: [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service But the problem is when it runs as a windows service the tomcat.exe is called directly. if I put any echo message in catalina.bat file I don't see my message anywhere. I don't think it goes into catalina.bat at all when runniing as an service. From: Paul Mansfield [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 02 Apr 2004 18:23:40 +0100 I put the settings into the catalina.sh file, e.g. # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ # - -- -- JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so On Fri, 2004-04-02 at 17:54, Mandy Joss wrote: I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Check out MSN PC Safety Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp - 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] _ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - 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]
RE: How to set up JAVA_OPTS while running tomcat as a service
Excellent! (the system tray Icon that is) Just what I was looking for. Thanks Antoni -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Sunday, 4 April 2004 9:36 a.m. To: [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Well, Tomcat 5 has the nice GUI to do most of this (right-click the Tomcat sys-tray icon), as well as the 'service.bat' file that you can customize for your settings. There should never be a reason to edit the registry settings directly. However, for those people that don't want to heed the warning :), the settings are located at: HKLM\Software\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters. Antoni Unkovich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I'm keen to try this with tomcat 5.0.19. Please can you supply a little more detail regarding the registry settings? Thanks in advance Antoni -Original Message- From: Mandy Joss [mailto:[EMAIL PROTECTED] Sent: Saturday, 3 April 2004 9:57 a.m. To: [EMAIL PROTECTED] Subject: RE: How to set up JAVA_OPTS while running tomcat as a service Tom Reis, Thanks a lot. It worked. You were awesome. I wish I could give you some Duke dollars :) Thanks again, Mandy From: Reis, Tom [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 2 Apr 2004 15:10:31 -0600 You can set the options for services in the registry. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters set the JVM Option Count to the number of parameters you are setting (it is probably already set to 2) and then add JVM Option Number # strings for each new option. the setting for maximum heap is -Xmx###M, minimum is -Xms###M Let me know if this works. I have done it to 1 server so far and it seems to works, but I can't tell how much memory is being used. -Original Message- From: Mandy Joss [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:58 PM To: [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service But the problem is when it runs as a windows service the tomcat.exe is called directly. if I put any echo message in catalina.bat file I don't see my message anywhere. I don't think it goes into catalina.bat at all when runniing as an service. From: Paul Mansfield [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 02 Apr 2004 18:23:40 +0100 I put the settings into the catalina.sh file, e.g. # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ # --- -- -- -- JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so On Fri, 2004-04-02 at 17:54, Mandy Joss wrote: I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Check out MSN PC Safety Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp - 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] _ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - 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]
How to set up JAVA_OPTS while running tomcat as a service
I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. _ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set up JAVA_OPTS while running tomcat as a service
Hi, You would need to specify this prior to starting up Tomcat. Just set your environment variables accordingly and fire up the tomcat afterwards. Thomas Mandy Joss [EMAIL PROTECTED] 04/02/2004 11:54 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject How to set up JAVA_OPTS while running tomcat as a service I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. _ MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set up JAVA_OPTS while running tomcat as a service
I have already tried this if I set up an environment variable called JAVA_OPTS as -Dmy.prop=myProp and then try to get it in my application thru System.getProperty(my.prop); Its null. So I don't think it looks at the environment variables. If I specify the same thing in the startup.bat file, I am able to get System.getProperty(my.prop); From: Thomas Tang [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 2 Apr 2004 12:03:46 -0500 Hi, You would need to specify this prior to starting up Tomcat. Just set your environment variables accordingly and fire up the tomcat afterwards. Thomas Mandy Joss [EMAIL PROTECTED] 04/02/2004 11:54 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject How to set up JAVA_OPTS while running tomcat as a service I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. _ MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Persistent heartburn? Check out Digestive Health Wellness for information and advice. http://gerd.msn.com/default.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set up JAVA_OPTS while running tomcat as a service
On Fri, 2004-04-02 at 17:54, Mandy Joss wrote: I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. I put the settings into the catalina.sh file, e.g. # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ # - JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set up JAVA_OPTS while running tomcat as a service
Put them in your catalina.bat file located in the bin directory of your tomcat installation. -Original Message- From: Mandy Joss [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 9:54 AM To: [EMAIL PROTECTED] Subject: How to set up JAVA_OPTS while running tomcat as a service I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. _ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - 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]
Re: How to set up JAVA_OPTS while running tomcat as a service
But the problem is when it runs as a windows service the tomcat.exe is called directly. if I put any echo message in catalina.bat file I don't see my message anywhere. I don't think it goes into catalina.bat at all when runniing as an service. From: Paul Mansfield [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 02 Apr 2004 18:23:40 +0100 I put the settings into the catalina.sh file, e.g. # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ # - JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so On Fri, 2004-04-02 at 17:54, Mandy Joss wrote: I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Check out MSN PC Safety Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set up JAVA_OPTS while running tomcat as a service
You can set the options for services in the registry. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters set the JVM Option Count to the number of parameters you are setting (it is probably already set to 2) and then add JVM Option Number # strings for each new option. the setting for maximum heap is -Xmx###M, minimum is -Xms###M Let me know if this works. I have done it to 1 server so far and it seems to works, but I can't tell how much memory is being used. -Original Message- From: Mandy Joss [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:58 PM To: [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service But the problem is when it runs as a windows service the tomcat.exe is called directly. if I put any echo message in catalina.bat file I don't see my message anywhere. I don't think it goes into catalina.bat at all when runniing as an service. From: Paul Mansfield [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 02 Apr 2004 18:23:40 +0100 I put the settings into the catalina.sh file, e.g. # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ # --- -- JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so On Fri, 2004-04-02 at 17:54, Mandy Joss wrote: I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Check out MSN PC Safety Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp - 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]
RE: How to set up JAVA_OPTS while running tomcat as a service
Tom Reis, Thanks a lot. It worked. You were awesome. I wish I could give you some Duke dollars :) Thanks again, Mandy From: Reis, Tom [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 2 Apr 2004 15:10:31 -0600 You can set the options for services in the registry. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters set the JVM Option Count to the number of parameters you are setting (it is probably already set to 2) and then add JVM Option Number # strings for each new option. the setting for maximum heap is -Xmx###M, minimum is -Xms###M Let me know if this works. I have done it to 1 server so far and it seems to works, but I can't tell how much memory is being used. -Original Message- From: Mandy Joss [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:58 PM To: [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service But the problem is when it runs as a windows service the tomcat.exe is called directly. if I put any echo message in catalina.bat file I don't see my message anywhere. I don't think it goes into catalina.bat at all when runniing as an service. From: Paul Mansfield [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 02 Apr 2004 18:23:40 +0100 I put the settings into the catalina.sh file, e.g. # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ # --- -- JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so On Fri, 2004-04-02 at 17:54, Mandy Joss wrote: I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Check out MSN PC Safety Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp - 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] _ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set up JAVA_OPTS while running tomcat as a service
Hi I'm keen to try this with tomcat 5.0.19. Please can you supply a little more detail regarding the registry settings? Thanks in advance Antoni -Original Message- From: Mandy Joss [mailto:[EMAIL PROTECTED] Sent: Saturday, 3 April 2004 9:57 a.m. To: [EMAIL PROTECTED] Subject: RE: How to set up JAVA_OPTS while running tomcat as a service Tom Reis, Thanks a lot. It worked. You were awesome. I wish I could give you some Duke dollars :) Thanks again, Mandy From: Reis, Tom [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 2 Apr 2004 15:10:31 -0600 You can set the options for services in the registry. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters set the JVM Option Count to the number of parameters you are setting (it is probably already set to 2) and then add JVM Option Number # strings for each new option. the setting for maximum heap is -Xmx###M, minimum is -Xms###M Let me know if this works. I have done it to 1 server so far and it seems to works, but I can't tell how much memory is being used. -Original Message- From: Mandy Joss [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:58 PM To: [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service But the problem is when it runs as a windows service the tomcat.exe is called directly. if I put any echo message in catalina.bat file I don't see my message anywhere. I don't think it goes into catalina.bat at all when runniing as an service. From: Paul Mansfield [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 02 Apr 2004 18:23:40 +0100 I put the settings into the catalina.sh file, e.g. # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ # - -- -- JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so On Fri, 2004-04-02 at 17:54, Mandy Joss wrote: I am running Tomcat 4.1.24 as service but under stress I get OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I specify JAVA_OPTS so that Tomcat running as service will look at them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Check out MSN PC Safety Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp - 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] _ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - 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]
JAVA_OPTS to tomcat
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: -Djava.naming.provider.url=jnp://localhost:1099: No such file or directory Can someone tell me whats going on here? Thanks, Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS to tomcat
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 [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 2:55 PM To: 'Tomcat Users List' Subject: JAVA_OPTS to tomcat 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: -Djava.naming.provider.url=jnp://localhost:1099: No such file or directory Can someone tell me whats going on here? Thanks, Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS to tomcat
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: -Djava.naming.provider.url=jnp://localhost:1099: No such file or directory Can someone tell me whats going on here? it seems you didn't put it into one line, and after: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS to tomcat
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 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 [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 2:55 PM To: 'Tomcat Users List' Subject: JAVA_OPTS to tomcat 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: -Djava.naming.provider.url=jnp://localhost:1099: No such file or directory Can someone tell me whats going on here? Thanks, Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
How to use JAVA_OPTS with Apache tomcat4.0.6
Dear Sir/Madam, (B (BPlease tell me how can I increase the java virtual heap size. ie., How can I (Buse java -Xms128M or java -Xmx256M with Apache tomcat4.0.6. (B (BActually, while loading the files more than 10MB using the file tag of HTML (Bi.e., (BInput type="File" name="brwFile". (B (BWe are getting an internal server error (error 500). Also, the browse (Bbutton usign the above tag is not allowing me to select more than one file.Can you (Bplease tell me how do I solve this problem. (B (BThanks and regards, (BRamachandra B.S.
Re: How to use JAVA_OPTS with Apache tomcat4.0.6
You need to read the docs a bit closer and remember that Java is case sensitive... http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html#options try using... java -Xms128m or java -Xmx256m Jake At 10:02 AM 10/27/2003 +0530, you wrote: Dear Sir/Madam, Please tell me how can I increase the java virtual heap size. ie., How can I use java -Xms128M or java -Xmx256M with Apache tomcat4.0.6. Actually, while loading the files more than 10MB using the file tag of HTML i.e., Input type=File name=brwFile. We are getting an internal server error (error 500). Also, the browse button usign the above tag is not allowing me to select more than one file.Can you please tell me how do I solve this problem. Thanks and regards, Ramachandra B.S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Windows Menu Startup and JAVA_OPTS
Folks, Tomcat 4.0.6 on Windows 2000 - we were running out of memory, so I added a -Xms256m to the JAVA_OPTS environment variable. However, it didn't seem to make any difference. Now, would I be right in saying that if Tomcat is started from the Windows desktop menu ie. Programs-Apache4.0-Start Tomcat then JAVA_OPTS is not used? The menu seems to run something like java -jar /Program Files/Apache4.0/bin/bootstrap.jar start which as far as I can see doesn't pass the JAVA_OPTS to the JVM. Cheers, Chris Chris Scudds Development Team Leader Trader Media Ltd. Willow House, Newton-Le-Willows WA12 0HE +44(0) 1925 296215 http://www.autotrader.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Windows Menu Startup and JAVA_OPTS
If the menu runs that, then it is unlikely that the environment variables are seen. The current version of Java doesn't have any non-deprecated methods for accessing OS environment variables. You could edit the .pif file used to start Tomcat and add the -Xms switch to the command. BTW, does Auto Trader use Tomcat for production? -Original Message- From: Chris Scudds [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 2:59 AM To: '[EMAIL PROTECTED]' Subject: Windows Menu Startup and JAVA_OPTS Folks, Tomcat 4.0.6 on Windows 2000 - we were running out of memory, so I added a -Xms256m to the JAVA_OPTS environment variable. However, it didn't seem to make any difference. Now, would I be right in saying that if Tomcat is started from the Windows desktop menu ie. Programs-Apache4.0-Start Tomcat then JAVA_OPTS is not used? The menu seems to run something like java -jar /Program Files/Apache4.0/bin/bootstrap.jar start which as far as I can see doesn't pass the JAVA_OPTS to the JVM. Cheers, Chris Chris Scudds Development Team Leader Trader Media Ltd. Willow House, Newton-Le-Willows WA12 0HE +44(0) 1925 296215 http://www.autotrader.co.uk - 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]
RE: USing JAVA_OPTS -Xmx
Howdy, It is so difficult to scale this. using vmstat, I can see my free memory shrinking and shrinking . It is really a case of suck and see. The free memory will keep going down until the VM feels it has to garbage-collect. You can tune this behavior using other non-standard options, for example -Xminf, -Xmaxf, -XX:NewSize, -XX:MaxNewSize, and the various GC algorithms like -Xincgc and -Xconcgc. The doco says m or M means MegaBytes So does -Xmx256m mean 256 MegaBytes ??? Yes. What do the others mean please k for KB, g for GB. But you can probably just make do with m, as that's the range for most applications. For example: -Xmx256m means the heap can grow up to 256MB. -Xmx1024m means the heap can grow up to 1024MB = 1GB. -Xmx2m means the heap can grow up to 2MB. (I wouldn't do this ;) Although an early release of J2ME had a 4MB default heap limit I think. ;)) Please keep in mind that OS-level tools, like top and vmstat, display the process space, which is more than the heap. The above numbers control just the heap. In practice, overhead like thread addressing, locks, etc, add more to the process space. So the numbers you see using vmstat could exceed the -Xmx number. How do you check that you setting took effect? Test it. Do stuff with your app that will take 200MB and make sure it works. Then do stuff with your app that will take 300MB and make sure it doesn't work, i.e. get an OutOfMemoryError. If your app can't do this, why do you need -Xmx? But believe me: -Xmx works. It's become one of the first and most important things people tune, because JVM sizes are ever-growing. Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: USing JAVA_OPTS -Xmx :-)
Shapira, Yoav wrote: Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Startup.sh problems with JAVA_OPTS = Xmx ?
Hi. I had some problems with insufficient memory and added the following line to catalina.sh (somewhere after the comment# --- execute and between 2 blocks of if-fi): JAVA_OPTS=-Xmx128m When I startup with startup.sh I get the following errors ... If I don't use JAVA_OPTS, no errors on startup, but after a short while, insufficient memory (esp. when the second and subsequent wants to use it :-( ** Starting service Default Tomcat-Apache-mod_jk Apache Tomcat/4.0.4 java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321) at java.net.ServerSocket.bind(ServerSocket.java:308) at java.net.ServerSocket.bind(ServerSocket.java:266) at java.net.ServerSocket.init(ServerSocket.java:182) at java.net.ServerSocket.init(ServerSocket.java:138) at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:118) at org.apache.ajp.tomcat4.Ajp13Connector.open(Ajp13Connector.java:797) at org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:1013) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) java.lang.NullPointerException at org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java:841) at java.lang.Thread.run(Thread.java:536) java.lang.IllegalThreadStateException at java.lang.ThreadGroup.add(ThreadGroup.java:798) at java.lang.Thread.init(Thread.java:303) at java.lang.Thread.init(Thread.java:440) at org.apache.ajp.tomcat4.Ajp13Processor.threadStart(Ajp13Processor.java:576) at org.apache.ajp.tomcat4.Ajp13Processor.start(Ajp13Processor.java:666) at org.apache.ajp.tomcat4.Ajp13Connector.newProcessor(Ajp13Connector.java:769) at org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:1025) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) ** -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Startup.sh problems with JAVA_OPTS = Xmx ?
Hi. That's because the port Tomcat is trying to open is already occupied by your previous Tomcat starting. Look at: $ netstat -na | grep port where port is the one set in server.xml to http connections. Repeat this for the SSL port (if you have set it) and for the shutdown port. You must get no output at all. Otherwise, you should try to stop your previous Tomcat first (with catalina.sh stop or perhaps with kill -9 :-P), and start it again. Best regards, Carlos Rodríguez Colino Telefonica RD Spain. [EMAIL PROTECTED] wrote: Hi. I had some problems with insufficient memory and added the following line to catalina.sh (somewhere after the comment# --- execute and between 2 blocks of if-fi): JAVA_OPTS=-Xmx128m When I startup with startup.sh I get the following errors ... If I don't use JAVA_OPTS, no errors on startup, but after a short while, insufficient memory (esp. when the second and subsequent wants to use it :-( ** Starting service Default Tomcat-Apache-mod_jk Apache Tomcat/4.0.4 java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321) at java.net.ServerSocket.bind(ServerSocket.java:308) at java.net.ServerSocket.bind(ServerSocket.java:266) at java.net.ServerSocket.init(ServerSocket.java:182) at java.net.ServerSocket.init(ServerSocket.java:138) at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:118) at org.apache.ajp.tomcat4.Ajp13Connector.open(Ajp13Connector.java:797) at org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:1013) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) java.lang.NullPointerException at org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java:841) at java.lang.Thread.run(Thread.java:536) java.lang.IllegalThreadStateException at java.lang.ThreadGroup.add(ThreadGroup.java:798) at java.lang.Thread.init(Thread.java:303) at java.lang.Thread.init(Thread.java:440) at org.apache.ajp.tomcat4.Ajp13Processor.threadStart(Ajp13Processor.java:576) at org.apache.ajp.tomcat4.Ajp13Processor.start(Ajp13Processor.java:666) at org.apache.ajp.tomcat4.Ajp13Connector.newProcessor(Ajp13Connector.java:769) at org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:1025) at org.apache.catalina.core.StandardService.start(StandardService.java:395) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) ** -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Startup.sh problems with JAVA_OPTS = Xmx ?
Hi All I got Xmx working and managed to monitor it with netstat -na BUT I am puzzled why each user has 4 or more seesions (threads) ??? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
USing JAVA_OPTS -Xmx
Hi all. I am trying to modify catalina.sh Do I need to insert -Xmx255mB into all the options e.g [code] ... elif [$1 = start] ; then ... $_RUNJAVA $JAVA_IPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ ... -Xmx256M ... ... [/code] -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: USing JAVA_OPTS -Xmx
Hi, Scary. All you have to do is add one line at the top of the file: JAVA_OPTS='-Xmx256m' Don't mess with the individual targets, like start, run, stop, etc. And be careful specifying these properties: -Xmx255mB != -Xmx256M != -Xmx256m. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:achana;saysit.com] Sent: Tuesday, November 05, 2002 11:20 PM To: [EMAIL PROTECTED] Subject: USing JAVA_OPTS -Xmx Hi all. I am trying to modify catalina.sh Do I need to insert -Xmx255mB into all the options e.g [code] ... elif [$1 = start] ; then ... $_RUNJAVA $JAVA_IPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ ... -Xmx256M ... ... [/code] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: USing JAVA_OPTS -Xmx
Hi. It is so difficult to scale this. using vmstat, I can see my free memory shrinking and shrinking . It is really a case of suck and see. The doco says m or M means MegaBytes So does -Xmx256m mean 256 MegaBytes ??? What do the others mean please Thanks :-) Shapira, Yoav wrote: Hi, Scary. All you have to do is add one line at the top of the file: JAVA_OPTS='-Xmx256m' Don't mess with the individual targets, like start, run, stop, etc. And be careful specifying these properties: -Xmx255mB != -Xmx256M != -Xmx256m. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:achana;saysit.com] Sent: Tuesday, November 05, 2002 11:20 PM To: [EMAIL PROTECTED] Subject: USing JAVA_OPTS -Xmx Hi all. I am trying to modify catalina.sh Do I need to insert -Xmx255mB into all the options e.g [code] ... elif [$1 = start] ; then ... $_RUNJAVA $JAVA_IPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ ... -Xmx256M ... ... [/code] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: USing JAVA_OPTS -Xmx
Shapira, Yoav wrote: Hi, Scary. Hi again, after the change and bouncing Tomcat with startup.sh , how do i determine whather the change has taken effect ??? TIA -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: MacOS X - Changing JAVA_OPTS for 8859_1 encoding
I think the correct syntax would be: JAVA_OPTS=-Dfile.encoding=8859_1 The quotes aren't really important, but the -D is. If that was just a typo in your message, then I'm not really sure what the problem is. But if that was actually what's in your script, it won't have the effect of setting a system property in Java unless the -D is there. (I really don't know anything about the file.encoding property in particular, or it's behavior, so I can't help you there.) On 3/17/02 4:03 AM, Steven Elliott [EMAIL PROTECTED] wrote: Sorry if this is off topic but I know there are OSX, Tomcat users here who may be able to shed some light on my problem. The problem has to do with ASCII characters 128 for locale character support such as tilde, circumflex, etc. while running Tomcat (4.0.3) on MacOS 10.1.3 w/ java version 1.3.1 I have set my JAVA_OPTS env variable to file.encoding=8859_1 but am still having problems with ResultSet values which continue to be MacRoman decoding of 8859_1 chars. I am accessing a MSSQL running on Windows 2000 via a JDirect Type 4 driver. Some of the data has Portuguese and Spanish characters and when I output a ResultSet returned by Tomcat running on the Windows machine everything looks correct. When I output the same ResultSet from Tomcat running on the Macintosh accessing the same database on the Windows machine, I get the characters MacRoman encoded whether or not I have run the startup.sh from a terminal with JAVA_OPTS=file.encoding=8859_1. Actually there is NO difference which seems to indicate that either file.properties is not the correct system env variable or I am not using JAVA_OPTS correctly? So I'm fishing for any ideas of how to fix this problem. If you have any suggestions please mail me off list as well as I am on the digest. Thanks for the help. Steven //* * VTV Learning Corporation *Los Angeles - Boston - Lisbon * (http://www.vtvLearning.com/) */ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- +---+ | Dave Makower[EMAIL PROTECTED] | | http://www.davemak.com/ | +---+ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
MacOS X - Changing JAVA_OPTS for 8859_1 encoding
Sorry if this is off topic but I know there are OSX, Tomcat users here who may be able to shed some light on my problem. The problem has to do with ASCII characters 128 for locale character support such as tilde, circumflex, etc. while running Tomcat (4.0.3) on MacOS 10.1.3 w/ java version 1.3.1 I have set my JAVA_OPTS env variable to file.encoding=8859_1 but am still having problems with ResultSet values which continue to be MacRoman decoding of 8859_1 chars. I am accessing a MSSQL running on Windows 2000 via a JDirect Type 4 driver. Some of the data has Portuguese and Spanish characters and when I output a ResultSet returned by Tomcat running on the Windows machine everything looks correct. When I output the same ResultSet from Tomcat running on the Macintosh accessing the same database on the Windows machine, I get the characters MacRoman encoded whether or not I have run the startup.sh from a terminal with JAVA_OPTS=file.encoding=8859_1. Actually there is NO difference which seems to indicate that either file.properties is not the correct system env variable or I am not using JAVA_OPTS correctly? So I'm fishing for any ideas of how to fix this problem. If you have any suggestions please mail me off list as well as I am on the digest. Thanks for the help. Steven //* * VTV Learning Corporation *Los Angeles - Boston - Lisbon * (http://www.vtvLearning.com/) */ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]