Re: Tomcat and -server option
My observations have been similar as well. We discussed this on the Java Apple list as well and it seems that different vendors implement this differently. On Nov 15, 2004, at 5:59 AM, Ronald Klop wrote: java.library.path=/usr/local/j2sdk1.4.2_05/jre/lib/i386/client:... ^^ java.vm.name=Java HotSpot(TM) Client VM ^^ Ronald. On Wed Nov 10 19:28:39 CET 2004 Mufaddal Khumri <[EMAIL PROTECTED]> wrote: Hi, I have specified the -server option in my catalina.sh using JAVA_OPTS. JAVA_OPTS="-server -Djava.awt.headless=true -Xms1g -Xmx1g -Dfile.encoding=ISO-8859-1" When I log into the manager app in tomcat I can see that its taking the correct memory settings , but I could not find a way to verify that it is taking the -server flag into consideration. Is there a way to make sure that my JVM is taking the -server flag into consideration? Additional info: Tomcat Version: Apache Tomcat/5.0.27 JVM Version: 1.4.2_05-141.3 JVM Vendor: "Apple Computer, Inc." OS Name: Mac OS X OS Version: 10.3.5 OS Architecture: ppc Thanks. Mufaddal Khumri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and -server option
java.library.path=/usr/local/j2sdk1.4.2_05/jre/lib/i386/client:... ^^ java.vm.name=Java HotSpot(TM) Client VM ^^ Ronald. On Wed Nov 10 19:28:39 CET 2004 Mufaddal Khumri <[EMAIL PROTECTED]> wrote: Hi, I have specified the -server option in my catalina.sh using JAVA_OPTS. JAVA_OPTS="-server -Djava.awt.headless=true -Xms1g -Xmx1g -Dfile.encoding=ISO-8859-1" When I log into the manager app in tomcat I can see that its taking the correct memory settings , but I could not find a way to verify that it is taking the -server flag into consideration. Is there a way to make sure that my JVM is taking the -server flag into consideration? Additional info: Tomcat Version: Apache Tomcat/5.0.27 JVM Version: 1.4.2_05-141.3 JVM Vendor: "Apple Computer, Inc." OS Name: Mac OS X OS Version: 10.3.5 OS Architecture: ppc Thanks.
Re: Tomcat and -server option
You are running Mac OS X. Does Apple support the Server Hotspot version? Maybe it falls back to client by default. Ronald. On Fri Nov 12 22:08:42 CET 2004 Mufaddal Khumri <[EMAIL PROTECTED]> wrote: Hi, I have: JAVA_OPTS="-server -Djava.awt.headless=true -Xms1g -Xmx1g -Dfile.encoding=ISO-8859-1" in catalina.sh I just tried: logger.info("java.vm.name: " + System.getProperty("java.vm.name")); and i get: INFO - java.vm.name: Java HotSpot(TM) Client VM Why is the -server option not taking effect? Does java.vm.name display the mode the JVM is executing in or its name of the JVM installed on my machine? (because if its just the name of the JVM installed on my machine the -server option must be taking effect) Thanks. On Nov 12, 2004, at 1:53 PM, Shapira, Yoav wrote: > >Hi, >Cool, good tip. > >Yoav Shapira http://www.yoavshapira.com > > >>-Original Message- >>From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] >>Sent: Friday, November 12, 2004 3:14 PM >>To: Tomcat Users List >>Subject: RE: Tomcat and -server option >> >>>From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >>>Subject: RE: Tomcat and -server option >>> >>>>Is there a way to make sure that my JVM is taking >>>>the -server flag into consideration? >>> >>>I'm not aware of a programmatic way to verify this. >> >>The Java property java.vm.name (use System.getProperty("java.vm.name") >to >>retrieve it) contains either "Java HotSpot(TM) Server VM" or "Java >>HotSpot(TM) Client VM" when using Sun JVMs. Other vendors will, of >course, >>set this property differently. >> >>- Chuck >> >> >>THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE >PROPRIETARY >>MATERIAL and is thus for use only by the intended recipient. If you >>received this in error, please contact the sender and delete the >>e-mail >and >>its attachments from all computers. >> >>- >>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] > > Mufaddal Khumri Software Developer Waves In Motion Phone: 602 956 7080 x 26 Email: [EMAIL PROTECTED]
Re: Tomcat and -server option
System.getProperty(...); java.vm.name=Java HotSpot(TM) Client VM (I'm not running with -server option...) Ronald. On Wed Nov 10 19:28:39 CET 2004 Mufaddal Khumri <[EMAIL PROTECTED]> wrote: Hi, I have specified the -server option in my catalina.sh using JAVA_OPTS. JAVA_OPTS="-server -Djava.awt.headless=true -Xms1g -Xmx1g -Dfile.encoding=ISO-8859-1" When I log into the manager app in tomcat I can see that its taking the correct memory settings , but I could not find a way to verify that it is taking the -server flag into consideration. Is there a way to make sure that my JVM is taking the -server flag into consideration? Additional info: Tomcat Version: Apache Tomcat/5.0.27 JVM Version: 1.4.2_05-141.3 JVM Vendor: "Apple Computer, Inc." OS Name: Mac OS X OS Version: 10.3.5 OS Architecture: ppc Thanks.
RE: Tomcat and -server option
On *NIX, you should be able to firstly check to see if your environment variables are being picked up when you start up tomcat with ps eg $ ps -ef , or ps -auxww might show something like tcuser 23134 1 0 Nov 04 ?0:44 /usr/java/bin/java -server -verbose:gc -Xms768m -Xmx768m and take it from there KC. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Saturday, 13 November 2004 11:46 AM To: 'Tomcat Users List' Subject: RE: Tomcat and -server option You might need a space here, depending on what else is being constructed and sent to the command line: JAVA_OPTS="-server ---^ might need: JAVA_OPTS=" -server > -Original Message- > From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] > Sent: Friday, November 12, 2004 3:09 PM > To: Tomcat Users List > Subject: Re: Tomcat and -server option > > > Hi, > > I have: JAVA_OPTS="-server -Djava.awt.headless=true -Xms1g -Xmx1g > -Dfile.encoding=ISO-8859-1" in catalina.sh > > I just tried: > logger.info("java.vm.name: " + > System.getProperty("java.vm.name")); > and i get: > INFO - java.vm.name: Java HotSpot(TM) Client VM > > Why is the -server option not taking effect? > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au www.tradingpost.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 8653 5000] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and -server option
You might need a space here, depending on what else is being constructed and sent to the command line: JAVA_OPTS="-server ---^ might need: JAVA_OPTS=" -server > -Original Message- > From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] > Sent: Friday, November 12, 2004 3:09 PM > To: Tomcat Users List > Subject: Re: Tomcat and -server option > > > Hi, > > I have: JAVA_OPTS="-server -Djava.awt.headless=true -Xms1g -Xmx1g > -Dfile.encoding=ISO-8859-1" in catalina.sh > > I just tried: > logger.info("java.vm.name: " + > System.getProperty("java.vm.name")); > and i get: > INFO - java.vm.name: Java HotSpot(TM) Client VM > > Why is the -server option not taking effect? > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and -server option
> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat and -server option > > Does java.vm.name display the mode the JVM is executing in or > its name of the JVM installed on my machine? It's the mode you're executing in. I don't have a UNIX/Linux system handy, but on a Windows machine, the client and server JVMs are packaged as separate DLLs. The launcher chooses which one to use based on a registry setting, if not overridden on the command line. (I presume something similar happens with UNIX.) The DLLs are stored in separate directories under /bin. The value stored in java.vm.name is hard-coded at compilation time of the JVM for each of the DLLs, so if it says client, that's what you've got. > Why is the -server option not taking effect? A very good question. Check that you actually have both client and server directories under your jre/bin directory (not jdk/bin - check the jre inside the jdk). The 1.4.2 JRE for Windows does not include a server mode, whereas the JDK does, as does the 1.5 JDK. Don't know about the UNIX flavors, or the 1.5 JRE. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and -server option
Hi, I have: JAVA_OPTS="-server -Djava.awt.headless=true -Xms1g -Xmx1g -Dfile.encoding=ISO-8859-1" in catalina.sh I just tried: logger.info("java.vm.name: " + System.getProperty("java.vm.name")); and i get: INFO - java.vm.name: Java HotSpot(TM) Client VM Why is the -server option not taking effect? Does java.vm.name display the mode the JVM is executing in or its name of the JVM installed on my machine? (because if its just the name of the JVM installed on my machine the -server option must be taking effect) Thanks. On Nov 12, 2004, at 1:53 PM, Shapira, Yoav wrote: Hi, Cool, good tip. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, November 12, 2004 3:14 PM To: Tomcat Users List Subject: RE: Tomcat and -server option From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat and -server option Is there a way to make sure that my JVM is taking the -server flag into consideration? I'm not aware of a programmatic way to verify this. The Java property java.vm.name (use System.getProperty("java.vm.name") to retrieve it) contains either "Java HotSpot(TM) Server VM" or "Java HotSpot(TM) Client VM" when using Sun JVMs. Other vendors will, of course, set this property differently. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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] Mufaddal Khumri Software Developer Waves In Motion Phone: 602 956 7080 x 26 Email: [EMAIL PROTECTED]
RE: Tomcat and -server option
Hi, Cool, good tip. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] >Sent: Friday, November 12, 2004 3:14 PM >To: Tomcat Users List >Subject: RE: Tomcat and -server option > >> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >> Subject: RE: Tomcat and -server option >> >> > Is there a way to make sure that my JVM is taking >> > the -server flag into consideration? >> >> I'm not aware of a programmatic way to verify this. > >The Java property java.vm.name (use System.getProperty("java.vm.name") to >retrieve it) contains either "Java HotSpot(TM) Server VM" or "Java >HotSpot(TM) Client VM" when using Sun JVMs. Other vendors will, of course, >set this property differently. > > - Chuck > > >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >MATERIAL and is thus for use only by the intended recipient. If you >received this in error, please contact the sender and delete the e-mail and >its attachments from all computers. > >- >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: Tomcat and -server option
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat and -server option > > > Is there a way to make sure that my JVM is taking > > the -server flag into consideration? > > I'm not aware of a programmatic way to verify this. The Java property java.vm.name (use System.getProperty("java.vm.name") to retrieve it) contains either "Java HotSpot(TM) Server VM" or "Java HotSpot(TM) Client VM" when using Sun JVMs. Other vendors will, of course, set this property differently. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and -server option
Hi, >JAVA_OPTS="-server -Djava.awt.headless=true -Xms1g -Xmx1g >-Dfile.encoding=ISO-8859-1" Wow, min 1G heap. Interesting use-case there. >When I log into the manager app in tomcat I can see that its taking the >correct memory settings , but I could not find a way to verify that it >is taking the -server flag into consideration. Is there a way to make >sure that my JVM is taking the -server flag into consideration? I'm not aware of a programmatic way to verify this. If the JVM starts, it means all your options were valid, but knowing if they're effective or not is a different matter. Good question you asked, I hope someone has a better answer than me ;) 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]
Tomcat and -server option
Hi, I have specified the -server option in my catalina.sh using JAVA_OPTS. JAVA_OPTS="-server -Djava.awt.headless=true -Xms1g -Xmx1g -Dfile.encoding=ISO-8859-1" When I log into the manager app in tomcat I can see that its taking the correct memory settings , but I could not find a way to verify that it is taking the -server flag into consideration. Is there a way to make sure that my JVM is taking the -server flag into consideration? Additional info: Tomcat Version: Apache Tomcat/5.0.27 JVM Version: 1.4.2_05-141.3 JVM Vendor: "Apple Computer, Inc." OS Name: Mac OS X OS Version: 10.3.5 OS Architecture: ppc Thanks.