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]
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]
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]
Re: JAVA_OPTS and Xmx Xms
http://localhost:/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
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]
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: 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]