Re: Tomcat shutdown script initiates Heap dump collection
Hi Andre I could not execute the following in my production server echo catalina.sh : JAVA_OPTS = $JAVA_OPTS /var/log/tomcat_debug_file.log Here is how I start the tomcat services /opt/app/tomcat/public1/bin/startup.sh I was checking all the file the startup.sh uses startup.sh includes catalina.sh catalina.sh includes setenv.sh and setclasspath.sh However, I dont see any JAVA_OPTS parameter defined. I believe, this is a optional parameter and it is not defined in our environment. your views ? Could you please let me know the relation between JAVA_OPTS and the heap dump collection? Thanks -- View this message in context: http://www.nabble.com/Tomcat-shutdown-script-initiates-Heap-dump-collection-tp21421003p21612325.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat shutdown script initiates Heap dump collection
Hi Chuck In catalina.sh file, I could see that JAVA_OPTS and CATALINA_OPTS are being referenced as follows.. exec $_RUNJDB $JAVA_OPTS $CATALINA_OPTS \... However, the value for JAVA_OPTS is not defined in catalina.sh As I had already mentioned, ONLY CATALINA_OPTS are defined in setenv.sh CATALINA_OPTS='-Xms512M -Xmx1536M' Where can I find the values configured for JAVA_OPTS ? Please guide. Thanks Prakash -- View this message in context: http://www.nabble.com/Tomcat-shutdown-script-initiates-Heap-dump-collection-tp21421003p21463786.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat shutdown script initiates Heap dump collection
Prakash Nathan1 wrote: Hi Chuck In catalina.sh file, I could see that JAVA_OPTS and CATALINA_OPTS are being referenced as follows.. exec $_RUNJDB $JAVA_OPTS $CATALINA_OPTS \... However, the value for JAVA_OPTS is not defined in catalina.sh As I had already mentioned, ONLY CATALINA_OPTS are defined in setenv.sh CATALINA_OPTS='-Xms512M -Xmx1536M' Where can I find the values configured for JAVA_OPTS ? The quickie answer is to add a line echo catalina.sh : JAVA_OPTS = $JAVA_OPTS /var/log/tomcat_debug_file.log to the beginning of your catalina.sh, and see what comes out. The better answer : To start Tomcat, you must use a command like /etc/init.d/tomcatxx start yes ? If so, then look first at that script, and follow the chain of scripts that itself calls. Depending on the system you are using, there may be other files that are read in during startup and which define options such as JAVA_OPTS. Under Linux e.g., look in the /etc/default dir. The thing is, there are so many different platform flavors and setups and ways to start these things, that there is no easy answer. You will have to piece the puzzle together yourself. On my Linux Debian systems, the chain is roughly as follows : /etc/init.d/tomcat5.5 does some stuff, then reads /etc/default/tomcat5.5, then does some more stuff, then calls up /usr/share/tomcat5.5/bin/startup.sh, which itself calls /usr/share/tomcat5.5/bin/catalina.sh, which itself runs /usr/share/tomcat5.5/bin/setenv.sh. And there are probably bits I'm forgetting.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat shutdown script initiates Heap dump collection
Thanks Chuck Here are the environment details Apache Tomcat/4.1.27 JVM/JDK: 1.4.2_06 Platform: OS Red Hat Enterprise Linux AS release 3 (Taroon Update 5) Where Can I get the JVM setting configured for running Tomcat? Are you refering to setenv.sh ? CATALINA_OPTS='-Xms512M -Xmx1536M Please let me know. Thanks -- View this message in context: http://www.nabble.com/Tomcat-shutdown-script-initiates-Heap-dump-collection-tp21421003p21444591.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat shutdown script initiates Heap dump collection
From: Prakash Nathan1 [mailto:mrap...@yahoo.com] Subject: RE: Tomcat shutdown script initiates Heap dump collection Where Can I get the JVM setting configured for running Tomcat? Are you refering to setenv.sh ? CATALINA_OPTS='-Xms512M -Xmx1536M That is one variable you can use; the other is JAVA_OPTS. (I hope the mix of single and double quotes above is just a typo.) Some of the 3rd-party distributions of Tomcat add their own JVM options to be helpful, and you may have run into that. If you were running with a more recent JVM, you could use JConsole to see what the command line arguments are. (I'm trying to forget everything I knew about the 1.4 JDK.) - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat shutdown script initiates Heap dump collection
Hello It is observed that when ever we initiate tomcat shutdown script, Heap Dumps are collected in catalina.out log file. 1. Is this a normal behavior ? Will it have any impacts on performance ? 2. Could you please let us know the configuration which triggers the heap dump collection ? Thanks Prakash -- View this message in context: http://www.nabble.com/Tomcat-shutdown-script-initiates-Heap-dump-collection-tp21421003p21421003.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat shutdown script initiates Heap dump collection
From: Prakash Nathan1 [mailto:mrap...@yahoo.com] Subject: Tomcat shutdown script initiates Heap dump collection Things you didn't bother to tell us: 1) Tomcat version you're using. 2) JRE/JDK version you're using. 3) Platform you're running on. Would you like us to guess? Heap Dumps are collected in catalina.out log file. 1. Is this a normal behavior ? No. Will it have any impacts on performance ? The heap dump at termination won't, but since this is going on, other more noticeable things might be configured to happen as well. 2. Could you please let us know the configuration which triggers the heap dump collection ? Nothing in Tomcat. What JVM command line parameters do you have set for running Tomcat? - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org