Re: How to monitor performance of tomcat
To: 'Randhir Singh' Subject: RE: How to monitor performance of tomcat -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Monday, April 28, 2014 5:47 AM To: Jeffrey Janner; Tomcat Users List Subject: RE: How to monitor performance of tomcat Thanks for your valuable inputs. I am a bit of a novice to this. When this problem happens, it is quite a loss of face in front of the users who are widely spread geographically. I checked the catalina.out logs on the 2 days that the problem happened on 23rd 25th April, the findings are as below: 23rd April '14: The catalina.out log showed the message like, -- - -- - - Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket://hostname of our machine:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out -- - -- - - 3 times among other exceptions in a span of around 2 minutes. 25th April '14: The errors captured in the logs were like, -- - -- - - java.lang.OutOfMemoryError: GC overhead limit exceeded This error specifically means that the JVM is basically spending all of its time doing garbage collection and not really getting any significant amount of memory back for its efforts. The end user experiences this usually as a hung system. It might eventually come back or it might end up with a different, more severe, OOM error. There are lots of various causes for this: too small memory allocation; too much load; an activity generating a lot of objects, most of which persist for a long time; memory leaks; or a combination of the above. How to address it? a) Profile what parts of the app are being used with this occurs and have the dev team look at what could be causing the problem. There might be a better way to perform the action requested. b) Increase the available memory (double it or more). This is only a band-aid and you may still have the problem, but less often. Have the dev team look for memory leaks. c) Anyone else with ideas? Jeff -- - -- - - 4 times among other exceptions in a span of around 2 minutes. Requesting a reply on this. Regards __ Confidentiality Notice: This Transmission (including any attachments) may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this transmission in error, please immediately reply to the sender or telephone (512) 343-9100 and delete this transmission from your system. -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email !
Re: How to monitor performance of tomcat
Randhir Singh wrote: Hi, I increased the Heap PermGen memory as per trail mail but the performance seemed to deteriorate. On the day I increased the memory in the morning, the system hung 3 times in the day whereas the maximum times it has got hang before is 2 times in a day. I changed the memory settings for Heap PermGen back to before when it hung again the next day, I reverted to the old memory values. The catalina.out showed the entries like below when I monitored it twice after the system hung with the new memory values: [ 22-May-2014 03:15:40 ] [ TRACE ] [http-30080-56] [ CHECK SESSION ] : Inside doInit Method May 22, 2014 3:16:14 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1351 SEVERE: org.zkoss.zk.ui.UiException: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket:// bssossapp01.snl.com:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket:// bssossapp01.snl.com:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) I would be eager to respond in case of any clarification. Requesting a reply to resolve this as the attempt to resolve this by increasing Heap PermGen memory has failed. I have worked on this issue a lot and have been trying to interact with the experts on the forum. Regards Hi. I am jumping in here in the middle, and have not followed the previous correspondence. (Which is hard anyway, considering that you keep on top-posting). (And I do not know Jboss at all, so maybe I am misinterpreting all of this). But if I go by what you are mentioning above - and despite the apparent subject - it looks to me as follows : - the application (not part of any Tomcat code per se) is trying to connect to, and read from, some (for Tomcat) external server - and that external service is not responding, within the timeout set for this connection (300,000 ms = 5 minutes) - thus you see the above exceptions happening So it is a bit hard from there, to figure out what the Tomcat Heap and Permgen sizes (or Tomcat performance for that matter) have to do with this. Intuitively, I would tend to think that if you give more memory to Tomcat to play with, then maybe it tries to handle more simultaneous requests that cause more of these external connections to be opened, all of them ultimately failing because the external server does not respond. Should you not look at what causes the external server to be slow to respond, first of all ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randir, On 5/21/14, 8:32 AM, Randhir Singh wrote: There is a correction as JAVA_OPTS variable is defined in catalina.sh under $CATALINA_HOME/bin and we use $CATALINA_HOME/bin/startup.sh to start tomcat. $CATALINA_HOME/bin/startup.sh has the code like below , startup.sh calls catalina.out. Do not modify either of these files. Instead, set anything you need in setenv.sh (which you may have to create because it does not exist by default). Also, you probably want to use CATALINA_OPTS and not JAVA_OPTS. Read the documentation at the top of catalina.sh to understand why. - -chris -- PRGDIR=`dirname $PRG` EXECUTABLE=catalina.sh # Check that target executable exists if $os400; then # -x will Only work on the os400 if the files are: # 1. owned by the user # 2. owned by the PRIMARY group of the user # this will not work if the user belongs in secondary groups eval else if [ ! -x $PRGDIR/$EXECUTABLE ]; then echo Cannot find $PRGDIR/$EXECUTABLE echo The file is absent or does not have execute permission echo This file is needed to run this program exit 1 fi fi -- I had changed catalina.sh in our development environment like a week back and want to implement it in the production environment but I got this doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have already taken downtime for production tomorrow but I got this doubt whether changing the JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 to JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 in catalina.sh would have the affect of increasing the heap Permgen memory in Tomcat. I hope my query is clear as am quite anxious as I have a downtime scheduled tomorrow. Requesting a reply on priority. On Mon, May 5, 2014 at 3:37 PM, Randhir Singh randhir.si...@sterlite.comwrote: Thanks Chris for your answer. I researched a lot and want to try out an option for OOME: The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as: JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I checked for free space on the VM instance with Red Hat Linux as the OS on which the Tomcat is hosted with a total memory of 19 GB, I found that there is around 8 GB of free space in the server. I am planning to increase the memory allocation for Heap size and PermGen size to almost double as below: JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I hope, this should avoid the hang-up issues where Tomcat does not seem to respond. I plan to implement this in the UAT environment at first and see how it goes. There is another thing I wanted to try. We have RHEL 5.8 Beta (Tikanga) version and lot of updates from Red Hat are pending which can update the version to RHEL 5.10 (Tikanga). Would this patching help as lot of updates are pending? Regards -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, April 28, 2014 6:46 PM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat Randir, On 4/28/14, 6:46 AM, Randhir Singh wrote: Thanks for your valuable inputs. I am a bit of a novice to this. When this problem happens, it is quite a loss of face in front of the users who are widely spread geographically. I checked the catalina.out logs on the 2 days that the problem happened on 23rd 25th April, the findings are as below: 23rd April '14: The catalina.out log showed the message like, -- - -- --- Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket://hostname of our machine:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out -- - -- --- 3 times among other exceptions in a span of around 2 minutes. 25th April '14: The errors captured in the logs were like, -- - -- --- java.lang.OutOfMemoryError: GC overhead
Re: How to monitor performance of tomcat
Hi, There is a correction as JAVA_OPTS variable is defined in catalina.sh under $CATALINA_HOME/bin and we use $CATALINA_HOME/bin/startup.sh to start tomcat. $CATALINA_HOME/bin/startup.sh has the code like below , -- PRGDIR=`dirname $PRG` EXECUTABLE=catalina.sh # Check that target executable exists if $os400; then # -x will Only work on the os400 if the files are: # 1. owned by the user # 2. owned by the PRIMARY group of the user # this will not work if the user belongs in secondary groups eval else if [ ! -x $PRGDIR/$EXECUTABLE ]; then echo Cannot find $PRGDIR/$EXECUTABLE echo The file is absent or does not have execute permission echo This file is needed to run this program exit 1 fi fi -- I had changed catalina.sh in our development environment like a week back and want to implement it in the production environment but I got this doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have already taken downtime for production tomorrow but I got this doubt whether changing the JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 to JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 in catalina.sh would have the affect of increasing the heap Permgen memory in Tomcat. I hope my query is clear as am quite anxious as I have a downtime scheduled tomorrow. Requesting a reply on priority. randhir.si...@sterlite.com wrote: Thanks a lot for your detailed reply. The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as: JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I checked for free space on the VM instance with Red Hat Linux as the OS on which the Tomcat is hosted with a total memory of 19 GB, I found that there is around 8 GB of free space in the server. As per your inputs, I am planning to increase the memory allocation for Heap size and PermGen size to almost double as below: JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I hope, this should avoid the hang-up issues where Tomcat does not seem to respond. I plan to implement this in the UAT environment at first and see how it goes. Regards -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Monday, April 28, 2014 7:39 PM To: 'Randhir Singh' Subject: RE: How to monitor performance of tomcat -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Monday, April 28, 2014 5:47 AM To: Jeffrey Janner; Tomcat Users List Subject: RE: How to monitor performance of tomcat Thanks for your valuable inputs. I am a bit of a novice to this. When this problem happens, it is quite a loss of face in front of the users who are widely spread geographically. I checked the catalina.out logs on the 2 days that the problem happened on 23rd 25th April, the findings are as below: 23rd April '14: The catalina.out log showed the message like, -- - -- - - Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket://hostname of our machine:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out -- - -- - - 3 times among other exceptions in a span of around 2 minutes. 25th April '14: The errors captured in the logs were like, -- - -- - - java.lang.OutOfMemoryError: GC overhead limit exceeded This error specifically means that the JVM is basically spending all of its time doing garbage collection and not really getting any significant amount of memory back for its efforts. The end user experiences this usually as a hung system. It might eventually come back or it might end up with a different, more severe, OOM error. There are lots of various causes for this: too small memory allocation; too much load; an activity generating a lot of objects, most of which persist for a long time; memory leaks; or a combination of the above. How
Re: How to monitor performance of tomcat
Hi, There is a correction as JAVA_OPTS variable is defined in catalina.sh under $CATALINA_HOME/bin and we use $CATALINA_HOME/bin/startup.sh to start tomcat. $CATALINA_HOME/bin/startup.sh has the code like below , -- PRGDIR=`dirname $PRG` EXECUTABLE=catalina.sh # Check that target executable exists if $os400; then # -x will Only work on the os400 if the files are: # 1. owned by the user # 2. owned by the PRIMARY group of the user # this will not work if the user belongs in secondary groups eval else if [ ! -x $PRGDIR/$EXECUTABLE ]; then echo Cannot find $PRGDIR/$EXECUTABLE echo The file is absent or does not have execute permission echo This file is needed to run this program exit 1 fi fi -- I had changed catalina.sh in our development environment like a week back and want to implement it in the production environment but I got this doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have already taken downtime for production tomorrow but I got this doubt whether changing the JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 to JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 in catalina.sh would have the affect of increasing the heap Permgen memory in Tomcat. I hope my query is clear as am quite anxious as I have a downtime scheduled tomorrow. Requesting a reply on priority. On Mon, May 5, 2014 at 3:37 PM, Randhir Singh randhir.si...@sterlite.comwrote: Thanks Chris for your answer. I researched a lot and want to try out an option for OOME: The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as: JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I checked for free space on the VM instance with Red Hat Linux as the OS on which the Tomcat is hosted with a total memory of 19 GB, I found that there is around 8 GB of free space in the server. I am planning to increase the memory allocation for Heap size and PermGen size to almost double as below: JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I hope, this should avoid the hang-up issues where Tomcat does not seem to respond. I plan to implement this in the UAT environment at first and see how it goes. There is another thing I wanted to try. We have RHEL 5.8 Beta (Tikanga) version and lot of updates from Red Hat are pending which can update the version to RHEL 5.10 (Tikanga). Would this patching help as lot of updates are pending? Regards -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, April 28, 2014 6:46 PM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randir, On 4/28/14, 6:46 AM, Randhir Singh wrote: Thanks for your valuable inputs. I am a bit of a novice to this. When this problem happens, it is quite a loss of face in front of the users who are widely spread geographically. I checked the catalina.out logs on the 2 days that the problem happened on 23rd 25th April, the findings are as below: 23rd April '14: The catalina.out log showed the message like, -- -- --- Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket://hostname of our machine:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out -- -- --- 3 times among other exceptions in a span of around 2 minutes. 25th April '14: The errors captured in the logs were like, -- -- --- java.lang.OutOfMemoryError: GC overhead limit exceeded -- -- --- 4 times among other exceptions in a span of around 2 minutes. Requesting a reply on this. It sounds like you have all kinds of problems: 1. Bad performance under unspecified conditions 2. Application hang
Re: How to monitor performance of tomcat
Randhir, On 21.5.2014 14:31, Randhir Singh wrote: I had changed catalina.sh in our development environment like a week back and want to implement it in the production environment but I got this doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have already taken downtime for production tomorrow but I got this doubt whether changing the 1. Don't post the same message twice. It makes volunteers on the list waste their time. 2. Don't top post. Bottom posting is the standard on this list. 3. Don't request/ People are volunteering here. 4. In default Tomcat instalation, catalina.sh is called from startup.sh. 5. Regardless of do you call startup.sh or catalina.sh, environment variables have the same meaning: JAVA_OPTS is used on Tomcat startup and Tomcat shutdown, while CATALINA_OPTS is only used on Tomcat startup. If you place -Xms2048m in JAVA_OPTS it will reserve 2 GB on Tomcat startup, and another 2 GB when you invoke Tomcat shutdown. That is waste of memory. Use CATALINA_OPTS instead. 6. It is not recommended to modify startup.sh or catalina.sh ever. All environment variables should be set in the file bin/setenv.sh. 7. (5.) and (6.) were already pointed out by Chris. Please read answers on the list carefully to show that you respect resources volunteers are allocating for you for free. 8. You may invoke ps -fHA | grep Bootstrap after you start Tomcat, to see if your CATALINA_OPTS reached JVM call. -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
Thanks Ognjen for your reply. My reply was intended to 2 different people hence it repeated but anyway I would try to take care on this. So now it is clear from your answer that catalina.sh is called from startup.sh in a default installation. Regards On Thu, May 22, 2014 at 3:59 AM, Ognjen Blagojevic ognjen.d.blagoje...@gmail.com wrote: Randhir, On 21.5.2014 14:31, Randhir Singh wrote: I had changed catalina.sh in our development environment like a week back and want to implement it in the production environment but I got this doubt. I feel catalina.sh is invoked by startup.sh but am not sure. I have already taken downtime for production tomorrow but I got this doubt whether changing the 1. Don't post the same message twice. It makes volunteers on the list waste their time. 2. Don't top post. Bottom posting is the standard on this list. 3. Don't request/ People are volunteering here. 4. In default Tomcat instalation, catalina.sh is called from startup.sh. 5. Regardless of do you call startup.sh or catalina.sh, environment variables have the same meaning: JAVA_OPTS is used on Tomcat startup and Tomcat shutdown, while CATALINA_OPTS is only used on Tomcat startup. If you place -Xms2048m in JAVA_OPTS it will reserve 2 GB on Tomcat startup, and another 2 GB when you invoke Tomcat shutdown. That is waste of memory. Use CATALINA_OPTS instead. 6. It is not recommended to modify startup.sh or catalina.sh ever. All environment variables should be set in the file bin/setenv.sh. 7. (5.) and (6.) were already pointed out by Chris. Please read answers on the list carefully to show that you respect resources volunteers are allocating for you for free. 8. You may invoke ps -fHA | grep Bootstrap after you start Tomcat, to see if your CATALINA_OPTS reached JVM call. -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email !
Re: How to monitor performance of tomcat
Hi, I had another point to add in this other than the reply sent by me in the earlier mail is that if the JVM crashes as pointed out by you, would a JVM process get started when Tomcat is started. Also, how to check if 2 processes are sharing a common JVM. The 2 processes referred to with the context of our environment would be JBoss Tomcat. I hope my query is clear. Requesting a reply. On Mon, Apr 28, 2014 at 4:16 PM, Randhir Singh randhir.si...@sterlite.comwrote: Thanks for your valuable inputs. I am a bit of a novice to this. When this problem happens, it is quite a loss of face in front of the users who are widely spread geographically. I checked the catalina.out logs on the 2 days that the problem happened on 23rd 25th April, the findings are as below: 23rd April '14: The catalina.out log showed the message like, --- Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket://hostname of our machine:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out --- 3 times among other exceptions in a span of around 2 minutes. 25th April '14: The errors captured in the logs were like, --- java.lang.OutOfMemoryError: GC overhead limit exceeded --- 4 times among other exceptions in a span of around 2 minutes. Requesting a reply on this. Regards -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Monday, April 21, 2014 7:26 PM To: 'Tomcat Users List' Subject: RE: How to monitor performance of tomcat -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Monday, April 21, 2014 5:17 AM To: Tomcat Users List Subject: RE: How to monitor performance of tomcat Hi, I wanted input from the experts on my query below that the port 8891 does not respond when the command, jconsole 10.101.17.79:8891 is issued when the application hangs and stops responding. Requesting inputs so that the root cause analysis of this issue can be found out. Regards Randhir - Your actual first request in this thread was apparently a request for opinions on monitoring tools. This problem of actual hangs wasn't brought up until a week later. Here is what I've usually found when Tomcat stops responding and even the monitoring port is unreachable via jconsole and other tools: Your JVM has crashed for some reason. At this point, you need to refer to the Tomcat logs, your application logs, etc. in order to find the root cause. If the JVM is still running, try taking a couple of thread dumps and review them to find your root cause. Jeff -- T ususcib, -mil uer-ususcib@tmct.paheor oraditonl omans,e-ai: ses-el@tmct.paheor -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email !
Re: How to monitor performance of tomcat
Randhir Singh wrote: Hi, I had another point to add in this other than the reply sent by me in the earlier mail is that if the JVM crashes as pointed out by you, would a JVM process get started when Tomcat is started. Also, how to check if 2 processes are sharing a common JVM. The 2 processes referred to with the context of our environment would be JBoss Tomcat. I hope my query is clear. Your question may be relatively clear, but maybe your premises are not clear. From the system/OS perspective, the process which is running is the JVM (or multiple JVM processes; look for java on the first part of the command-line). Then, this JVM may be running several (java bytecode) java applications. But these are not processes from the OS perspective. They are just things that the JVM is doing. So, when you start Tomcat, you are not really starting a Tomcat process. What you are starting is a JVM process, and you tell it (by its arguments), to start reading some compiled classes and executing their code. What everyone has been trying to get out of you, so far without success, is how many java processes you are really starting, and what you are telling each of them to run in terms of java applications. And (I am not an expert, so I am not commenting on that part), what most people here seem to be saying is that Jboss uses some embedded Tomcat code as its servlet engine, so it should all run within the same JVM (and thus the same process), and thus they do not really understand what you seem to be talking about. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to monitor performance of tomcat
Thanks Chris for your answer. There is around 8 GB of free memory and not disk. Hope, the change in the Xms, Xmx XX:MaxPermSize helps. Any further inputs would be appreciated. Thanks -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, May 05, 2014 9:33 PM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randir, On 5/5/14, 6:07 AM, Randhir Singh wrote: Thanks Chris for your answer. I researched a lot and want to try out an option for OOME: The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as: You should use CATALINA_OPTS. Read the comments at the top of bin/catalina.sh to see what the difference is. Also, you should set these environment variables in bin/setenv.sh (which you may have to create) instead of modifying startup.sh directly. It will make upgrades much easier. JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I checked for free space on the VM instance with Red Hat Linux as the OS on which the Tomcat is hosted with a total memory of 19 GB, I found that there is around 8 GB of free space in the server. 8GiB free memory or disk? I am planning to increase the memory allocation for Heap size and PermGen size to almost double as below: JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I hope, this should avoid the hang-up issues where Tomcat does not seem to respond. I plan to implement this in the UAT environment at first and see how it goes. If the problem is GC-related, then the only conditions under which things will improve by increasing memory are if you were running right under the heap ceiling you had imposed upon yourself and GC had to run a lot in order to keep up. Remember that GC-time is related to the number of useful references in the heap, so if you have a large heap with lots of long-lived objects, GC will work harder (to a point, with generational GC). There is another thing I wanted to try. We have RHEL 5.8 Beta (Tikanga) version and lot of updates from Red Hat are pending which can update the version to RHEL 5.10 (Tikanga). Would this patching help as lot of updates are pending? I have no idea. I know virtually nothing about RHEL and what changes will be coming. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTZ7YXAAoJEBzwKT+lPKRY0lEP/RZXARhKvU5dBelQYELwWHGh TJnDgBIJTK/M7+OhheMqN14M+EXK0aodPNhC1aCTtotdey+2V1WcQoqitcMDjOKj dyVE5jvwkoEFgWJ32MjpHflFufup4IzEpx+Q/sXLCqnBXwVdSSAOJiPTfdU9iO9c i4W6i8twQXvbDn1GKNBDTwfKAZGAVakVV7JeH2ollQkUvyBkdEkKHmZKWmiFdNxK rvZSe3mdHsmOmsenMzzlcAZh4JD9QKX/0TQPzpP8sKoxfpCS0rcQSoYvBWY2rYul gwiYm2PlCRLw+wpPdSA13CAQLRio51LQA1VTVMhzOtGOUKWIvJEba94lEZ1IWIsL zn1yn8CTN7czY7CoL0N/lsJBCg9Jnrut4W0e9Z8vhY1lz0pexGmwv58pdnAT69NC 5A45wOY5VxJVGfNRNbMh2sbdi0MloF6EsbdZipwMpyfBCf3ulL2c1Am/PmnoxSQn lTnEeoiuJcaOJjBFU/KVl2I77Hn1/QuJEflCDm9fm85CMbIWHHJCmbR9yVdS/yPi O6jjEaVGNPNI5pwtoEiNT+78G0UDyDIfbFjIuGS2Gz3cNH2WW6tiYw+Ivy5aciAg iIpdxVFcdL6ZoXr6eJEkvfyUwv85z9DonK3SkoRtNVVKPXNHQNLlpl6WHfCcHd/1 Dc3HguzxCOYu2+2jsuZg =tcDx -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to monitor performance of tomcat
Thanks Chris for your answer. I researched a lot and want to try out an option for OOME: The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as: JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I checked for free space on the VM instance with Red Hat Linux as the OS on which the Tomcat is hosted with a total memory of 19 GB, I found that there is around 8 GB of free space in the server. I am planning to increase the memory allocation for Heap size and PermGen size to almost double as below: JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I hope, this should avoid the hang-up issues where Tomcat does not seem to respond. I plan to implement this in the UAT environment at first and see how it goes. There is another thing I wanted to try. We have RHEL 5.8 Beta (Tikanga) version and lot of updates from Red Hat are pending which can update the version to RHEL 5.10 (Tikanga). Would this patching help as lot of updates are pending? Regards -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, April 28, 2014 6:46 PM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randir, On 4/28/14, 6:46 AM, Randhir Singh wrote: Thanks for your valuable inputs. I am a bit of a novice to this. When this problem happens, it is quite a loss of face in front of the users who are widely spread geographically. I checked the catalina.out logs on the 2 days that the problem happened on 23rd 25th April, the findings are as below: 23rd April '14: The catalina.out log showed the message like, -- -- --- Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket://hostname of our machine:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out -- -- --- 3 times among other exceptions in a span of around 2 minutes. 25th April '14: The errors captured in the logs were like, -- -- --- java.lang.OutOfMemoryError: GC overhead limit exceeded -- -- --- 4 times among other exceptions in a span of around 2 minutes. Requesting a reply on this. It sounds like you have all kinds of problems: 1. Bad performance under unspecified conditions 2. Application hang under unspecified conditions 3. catalina.out file grows quickly, may fill filesystem 4. Long timeouts on the server-side during some unspecified operation (I don't know what an InvokerLocator is) 5. OOME It seems to me that you should focus on one of these problems (probably the OOME) and get that fixed, first. You may find it is the root of all other problems. This community can only help you so much with so little information. You may have to hire someone to help you through this process. - -chris -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Monday, April 21, 2014 7:26 PM To: 'Tomcat Users List' Subject: RE: How to monitor performance of tomcat -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Monday, April 21, 2014 5:17 AM To: Tomcat Users List Subject: RE: How to monitor performance of tomcat Hi, I wanted input from the experts on my query below that the port 8891 does not respond when the command, jconsole 10.101.17.79:8891 is issued when the application hangs and stops responding. Requesting inputs so that the root cause analysis of this issue can be found out. Regards Randhir - Your actual first request in this thread was apparently a request for opinions on monitoring tools. This problem of actual hangs wasn't brought up until a week later. Here is what I've usually found when Tomcat stops responding and even the monitoring port is unreachable via jconsole and other tools: Your JVM has crashed for some reason. At this point, you need to refer to the Tomcat logs, your application logs, etc. in order to find the root cause. If the JVM is still running, try taking a couple of thread dumps and review them to find your root cause. Jeff -- T ususcib, -mil uer-ususcib@tmct.paheor oraditonl omans,e-ai
Re: How to monitor performance of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randir, On 5/5/14, 6:07 AM, Randhir Singh wrote: Thanks Chris for your answer. I researched a lot and want to try out an option for OOME: The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as: You should use CATALINA_OPTS. Read the comments at the top of bin/catalina.sh to see what the difference is. Also, you should set these environment variables in bin/setenv.sh (which you may have to create) instead of modifying startup.sh directly. It will make upgrades much easier. JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I checked for free space on the VM instance with Red Hat Linux as the OS on which the Tomcat is hosted with a total memory of 19 GB, I found that there is around 8 GB of free space in the server. 8GiB free memory or disk? I am planning to increase the memory allocation for Heap size and PermGen size to almost double as below: JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I hope, this should avoid the hang-up issues where Tomcat does not seem to respond. I plan to implement this in the UAT environment at first and see how it goes. If the problem is GC-related, then the only conditions under which things will improve by increasing memory are if you were running right under the heap ceiling you had imposed upon yourself and GC had to run a lot in order to keep up. Remember that GC-time is related to the number of useful references in the heap, so if you have a large heap with lots of long-lived objects, GC will work harder (to a point, with generational GC). There is another thing I wanted to try. We have RHEL 5.8 Beta (Tikanga) version and lot of updates from Red Hat are pending which can update the version to RHEL 5.10 (Tikanga). Would this patching help as lot of updates are pending? I have no idea. I know virtually nothing about RHEL and what changes will be coming. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTZ7YXAAoJEBzwKT+lPKRY0lEP/RZXARhKvU5dBelQYELwWHGh TJnDgBIJTK/M7+OhheMqN14M+EXK0aodPNhC1aCTtotdey+2V1WcQoqitcMDjOKj dyVE5jvwkoEFgWJ32MjpHflFufup4IzEpx+Q/sXLCqnBXwVdSSAOJiPTfdU9iO9c i4W6i8twQXvbDn1GKNBDTwfKAZGAVakVV7JeH2ollQkUvyBkdEkKHmZKWmiFdNxK rvZSe3mdHsmOmsenMzzlcAZh4JD9QKX/0TQPzpP8sKoxfpCS0rcQSoYvBWY2rYul gwiYm2PlCRLw+wpPdSA13CAQLRio51LQA1VTVMhzOtGOUKWIvJEba94lEZ1IWIsL zn1yn8CTN7czY7CoL0N/lsJBCg9Jnrut4W0e9Z8vhY1lz0pexGmwv58pdnAT69NC 5A45wOY5VxJVGfNRNbMh2sbdi0MloF6EsbdZipwMpyfBCf3ulL2c1Am/PmnoxSQn lTnEeoiuJcaOJjBFU/KVl2I77Hn1/QuJEflCDm9fm85CMbIWHHJCmbR9yVdS/yPi O6jjEaVGNPNI5pwtoEiNT+78G0UDyDIfbFjIuGS2Gz3cNH2WW6tiYw+Ivy5aciAg iIpdxVFcdL6ZoXr6eJEkvfyUwv85z9DonK3SkoRtNVVKPXNHQNLlpl6WHfCcHd/1 Dc3HguzxCOYu2+2jsuZg =tcDx -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to monitor performance of tomcat
Thanks a lot for your detailed reply. The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the value as: JAVA_OPTS=$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I checked for free space on the VM instance with Red Hat Linux as the OS on which the Tomcat is hosted with a total memory of 19 GB, I found that there is around 8 GB of free space in the server. As per your inputs, I am planning to increase the memory allocation for Heap size and PermGen size to almost double as below: JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399 I hope, this should avoid the hang-up issues where Tomcat does not seem to respond. I plan to implement this in the UAT environment at first and see how it goes. Regards -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Monday, April 28, 2014 7:39 PM To: 'Randhir Singh' Subject: RE: How to monitor performance of tomcat -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Monday, April 28, 2014 5:47 AM To: Jeffrey Janner; Tomcat Users List Subject: RE: How to monitor performance of tomcat Thanks for your valuable inputs. I am a bit of a novice to this. When this problem happens, it is quite a loss of face in front of the users who are widely spread geographically. I checked the catalina.out logs on the 2 days that the problem happened on 23rd 25th April, the findings are as below: 23rd April '14: The catalina.out log showed the message like, -- - -- - - Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket://hostname of our machine:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out -- - -- - - 3 times among other exceptions in a span of around 2 minutes. 25th April '14: The errors captured in the logs were like, -- - -- - - java.lang.OutOfMemoryError: GC overhead limit exceeded This error specifically means that the JVM is basically spending all of its time doing garbage collection and not really getting any significant amount of memory back for its efforts. The end user experiences this usually as a hung system. It might eventually come back or it might end up with a different, more severe, OOM error. There are lots of various causes for this: too small memory allocation; too much load; an activity generating a lot of objects, most of which persist for a long time; memory leaks; or a combination of the above. How to address it? a) Profile what parts of the app are being used with this occurs and have the dev team look at what could be causing the problem. There might be a better way to perform the action requested. b) Increase the available memory (double it or more). This is only a band-aid and you may still have the problem, but less often. Have the dev team look for memory leaks. c) Anyone else with ideas? Jeff -- - -- - - 4 times among other exceptions in a span of around 2 minutes. Requesting a reply on this. Regards __ Confidentiality Notice: This Transmission (including any attachments) may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this transmission in error, please immediately reply to the sender or telephone (512) 343-9100 and delete this transmission from your system. -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email
RE: How to monitor performance of tomcat
Thanks for your valuable inputs. I am a bit of a novice to this. When this problem happens, it is quite a loss of face in front of the users who are widely spread geographically. I checked the catalina.out logs on the 2 days that the problem happened on 23rd 25th April, the findings are as below: 23rd April '14: The catalina.out log showed the message like, --- Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket://hostname of our machine:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out --- 3 times among other exceptions in a span of around 2 minutes. 25th April '14: The errors captured in the logs were like, --- java.lang.OutOfMemoryError: GC overhead limit exceeded --- 4 times among other exceptions in a span of around 2 minutes. Requesting a reply on this. Regards -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Monday, April 21, 2014 7:26 PM To: 'Tomcat Users List' Subject: RE: How to monitor performance of tomcat -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Monday, April 21, 2014 5:17 AM To: Tomcat Users List Subject: RE: How to monitor performance of tomcat Hi, I wanted input from the experts on my query below that the port 8891 does not respond when the command, jconsole 10.101.17.79:8891 is issued when the application hangs and stops responding. Requesting inputs so that the root cause analysis of this issue can be found out. Regards Randhir - Your actual first request in this thread was apparently a request for opinions on monitoring tools. This problem of actual hangs wasn't brought up until a week later. Here is what I've usually found when Tomcat stops responding and even the monitoring port is unreachable via jconsole and other tools: Your JVM has crashed for some reason. At this point, you need to refer to the Tomcat logs, your application logs, etc. in order to find the root cause. If the JVM is still running, try taking a couple of thread dumps and review them to find your root cause. Jeff -- T ususcib, -mil uer-ususcib@tmct.paheor oraditonl omans,e-ai: ses-el@tmct.paheor -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randir, On 4/28/14, 6:46 AM, Randhir Singh wrote: Thanks for your valuable inputs. I am a bit of a novice to this. When this problem happens, it is quite a loss of face in front of the users who are widely spread geographically. I checked the catalina.out logs on the 2 days that the problem happened on 23rd 25th April, the findings are as below: 23rd April '14: The catalina.out log showed the message like, --- Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 30 milliseconds for response while calling on InvokerLocator [socket://hostname of our machine:4173/?invokerDestructionDelay=5000timeout=30]; nested exception is: java.net.SocketTimeoutException: Read timed out --- 3 times among other exceptions in a span of around 2 minutes. 25th April '14: The errors captured in the logs were like, --- java.lang.OutOfMemoryError: GC overhead limit exceeded --- 4 times among other exceptions in a span of around 2 minutes. Requesting a reply on this. It sounds like you have all kinds of problems: 1. Bad performance under unspecified conditions 2. Application hang under unspecified conditions 3. catalina.out file grows quickly, may fill filesystem 4. Long timeouts on the server-side during some unspecified operation (I don't know what an InvokerLocator is) 5. OOME It seems to me that you should focus on one of these problems (probably the OOME) and get that fixed, first. You may find it is the root of all other problems. This community can only help you so much with so little information. You may have to hire someone to help you through this process. - -chris -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Monday, April 21, 2014 7:26 PM To: 'Tomcat Users List' Subject: RE: How to monitor performance of tomcat -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Monday, April 21, 2014 5:17 AM To: Tomcat Users List Subject: RE: How to monitor performance of tomcat Hi, I wanted input from the experts on my query below that the port 8891 does not respond when the command, jconsole 10.101.17.79:8891 is issued when the application hangs and stops responding. Requesting inputs so that the root cause analysis of this issue can be found out. Regards Randhir - Your actual first request in this thread was apparently a request for opinions on monitoring tools. This problem of actual hangs wasn't brought up until a week later. Here is what I've usually found when Tomcat stops responding and even the monitoring port is unreachable via jconsole and other tools: Your JVM has crashed for some reason. At this point, you need to refer to the Tomcat logs, your application logs, etc. in order to find the root cause. If the JVM is still running, try taking a couple of thread dumps and review them to find your root cause. Jeff -- T ususcib, -mil uer-ususcib@tmct.paheor oraditonl omans,e-ai: ses-el@tmct.paheor -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTXlSFAAoJEBzwKT+lPKRYk9oQAMVDfgM7PhvjhnfnIoYLna8l ksJ7NjGrACwGjyDBU/RJe9Vk/8FjvVEhX3D5pEfm+LyOEvNxeB7uJNhmRT0gQKjV U0OcFQyuyjL6RrYP7yK5hmzzqTBM8gNpHzqehDt+0ZmPC8gDOSlARSLvjk7POur2 gghqrGT0xxx+vPtQMNvL3KENDd/Fv964UpoK3nTtwdLHwJLaVmQd9lUUaY/3SmzH tKlnE2CEXAdHVjtD5nV4MC4W+SkcCyNlBZTxO4xNrW11nWIahhwZLqnallfwVXYN 2tFhkpTHesy5KkTMDXG+R5uCywWSW/ioRd75qFLbMdRChBIDV8pN5DAhvDaB4Azp UYgLr1XkT0PSD7PQd8xl6INrg7/Y+Urtn0CFYUlbpToHJQiNtkwxzpRtG/ciF7Mh RTsiVtYrky8M+UMloHs6M/oNeO3i02AlmPjzoSxaURfOriQvzCLvndp013IqALo4 Nhc9ycZ8gGBMOBPXTDstqY8jahBI0wAmJjI39G2l/ySKHN5xSCdpRCrI93YLUWYU lKJBYp5iCkue926vHJT5hthgTdBJg90jVO2glgZp3qNsnEnqlabe46XUaN+wTq5s 2vhKhX800poZ0zRgPlz/TyDGmkzN7JLuz+0Lpig4tD/5hQfXxTt7nmfKP1dEgTZs J5sPHZzmedctIwZNpXB/ =Lgqk -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
Hi, I have come across a point which could be a reason, the catalina.out file has become 13G which came to notice when we were analysing space crunch on the mount point in which tomcat is located. Further to this, there is some log rotation which is happening. But, what should be the steps to check or to introduce log rotation otherwise. Request you to please revert as it is urgent. I would be waiting for a revert. Regards On Mon, Apr 21, 2014 at 3:47 PM, Randhir Singh randhir.si...@sterlite.comwrote: Hi, I wanted input from the experts on my query below that the port 8891 does not respond when the command, jconsole 10.101.17.79:8891 is issued when the application hangs and stops responding. Requesting inputs so that the root cause analysis of this issue can be found out. Regards -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Tuesday, April 15, 2014 4:20 PM To: 'Tomcat Users List' Subject: RE: How to monitor performance of tomcat There is 1 finding. We normally monitor the tomcat port using jconsole as- jconsole 10.101.17.79:8891 As per my initial query, our application hangs and we need to restart JBoss Tomcat. I have observed that during this time the port 8891 does not respond as the command, jconsole 10.101.17.79:8891 does not give any console for monitoring. Requesting an update so that the root cause analysis of this issue can be found out. Regards -Original Message- From: Shanti Suresh [mailto:sha...@umich.edu] Sent: Saturday, April 12, 2014 1:12 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat On Fri, Apr 11, 2014 at 3:04 PM, André Warnier a...@ice-sa.com wrote: Shanti Suresh wrote: Hi Chris, On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/11/14, 9:01 AM, Shanti Suresh wrote: Thank you! Great presentation and most wonderful notes! One question - on slide #48, where the notes say, You can see here that the current usage is about 100MiB, less than the 115MiB threshold we set, where is the 100MB or thereabouts shown? Is it the committed value? I don't follow that statement. The statement refers to the used value. - -chris Thank you! I got it. The used value says used 114510568. I was looking for a value closer to 100MiB. 114510568 (~ 109 MB) - 104857600(100 MB) === 9652968 (~ 9 MB) How much closer were you looking for ? Well, I don't know, maybe 1 or 2 MiB over? The threshold is 115 MiB, so if the notes had said the current usage is less than the 115MiB threshold we set, I might not have had any doubt. So in the slide, you were making a point of the current usage being less than the threshold, basically, if I am not mistaken. Thanks, -Shanti Thanks, -Shanti -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email !
Re: How to monitor performance of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randhir, On 4/22/14, 10:03 AM, Randhir Singh wrote: I have come across a point which could be a reason, the catalina.out file has become 13G which came to notice when we were analysing space crunch on the mount point in which tomcat is located. Does low-disk-space cause performance problems for you? Further to this, there is some log rotation which is happening. But, what should be the steps to check or to introduce log rotation otherwise. Tomcat will rotate logs as directed. You will need to tell us about your logging if you want help with this. Request you to please revert as it is urgent. I would be waiting for a revert. Revert what? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTVn6UAAoJEBzwKT+lPKRYFFoP/0BVzRhfpAf1gUyhKqq5jvIk yp7n4a01EW+rUx9fIIKIIbe25Zwgz/WEpmDoNFWJX4/QdzadK8T37K1aipxu/ogT kFQrlI20sV57ZX6t1aA/9upNgoyRCZe4NmABZczTY1I5fbxLzSH48h6oX74Nq3FZ /PIqpzwPtRoZFy2iFb8v5t1KAf61sNwWowhjEa74yTRLWwAzQLC7rvsfzZpjdh12 qiL+MM2pVxwrjOS65TDVrRvjxCdV23RmSiHjXL6uT+JCDYO843sQsyBe/L9Cv+SH 89iYJwlDfBTnWBzqOLFmSaEwES0WXGVzBunoHJQkQGo64p7zqQZdy1s0I7E+3maq Edafs50rA/2P+IZVidKq830royrFmvYDef0GPHQCkK4SJDF8MbFEN0irBnAUoilH mrI9h6t3HFOVcR2cgNdnIeWADDLktAe+3c3XmLLUk1CQ79hBK+M1iG+cRRhIv2Q3 dxpm+nzTELlQapuZ8JfnY6Uod64G3NwHaxWf/iQrCINtcclH0xhm8ve+Bx8A1fW6 mhHYnycEaD5BKfrYrgFR6ZWyo4lQYaya4aZKBCt3EKsOzDpiOgUWCgxMZmbjtXUF Chmej6H3hhBRKEOKySs6ot6B3HVvBqdc1aAb1aUq025Pv+0ybJ7q2pdAL2U20pcA PSafYNhPnC3NlfjvDFNF =ixaA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to monitor performance of tomcat
Thanks for your answer. The disk space is an issue as it is 99% right now. The mountpoint /opt is 40G and catalina.out is occupying 13G. We have log rotated files being made like catalina.2014-04-16.log, host-manager.2014-04-14.log, localhost.2014-04-14.log. I can reply to you immediately if you could specify what details you need about the logging configuration, the text from the files you require. Regards -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, April 22, 2014 8:07 PM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randhir, On 4/22/14, 10:03 AM, Randhir Singh wrote: I have come across a point which could be a reason, the catalina.out file has become 13G which came to notice when we were analysing space crunch on the mount point in which tomcat is located. Does low-disk-space cause performance problems for you? Further to this, there is some log rotation which is happening. But, what should be the steps to check or to introduce log rotation otherwise. Tomcat will rotate logs as directed. You will need to tell us about your logging if you want help with this. Request you to please revert as it is urgent. I would be waiting for a revert. Revert what? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTVn6UAAoJEBzwKT+lPKRYFFoP/0BVzRhfpAf1gUyhKqq5jvIk yp7n4a01EW+rUx9fIIKIIbe25Zwgz/WEpmDoNFWJX4/QdzadK8T37K1aipxu/ogT kFQrlI20sV57ZX6t1aA/9upNgoyRCZe4NmABZczTY1I5fbxLzSH48h6oX74Nq3FZ /PIqpzwPtRoZFy2iFb8v5t1KAf61sNwWowhjEa74yTRLWwAzQLC7rvsfzZpjdh12 qiL+MM2pVxwrjOS65TDVrRvjxCdV23RmSiHjXL6uT+JCDYO843sQsyBe/L9Cv+SH 89iYJwlDfBTnWBzqOLFmSaEwES0WXGVzBunoHJQkQGo64p7zqQZdy1s0I7E+3maq Edafs50rA/2P+IZVidKq830royrFmvYDef0GPHQCkK4SJDF8MbFEN0irBnAUoilH mrI9h6t3HFOVcR2cgNdnIeWADDLktAe+3c3XmLLUk1CQ79hBK+M1iG+cRRhIv2Q3 dxpm+nzTELlQapuZ8JfnY6Uod64G3NwHaxWf/iQrCINtcclH0xhm8ve+Bx8A1fW6 mhHYnycEaD5BKfrYrgFR6ZWyo4lQYaya4aZKBCt3EKsOzDpiOgUWCgxMZmbjtXUF Chmej6H3hhBRKEOKySs6ot6B3HVvBqdc1aAb1aUq025Pv+0ybJ7q2pdAL2U20pcA PSafYNhPnC3NlfjvDFNF =ixaA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to monitor performance of tomcat
Hi, I wanted input from the experts on my query below that the port 8891 does not respond when the command, jconsole 10.101.17.79:8891 is issued when the application hangs and stops responding. Requesting inputs so that the root cause analysis of this issue can be found out. Regards -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Tuesday, April 15, 2014 4:20 PM To: 'Tomcat Users List' Subject: RE: How to monitor performance of tomcat There is 1 finding. We normally monitor the tomcat port using jconsole as- jconsole 10.101.17.79:8891 As per my initial query, our application hangs and we need to restart JBoss Tomcat. I have observed that during this time the port 8891 does not respond as the command, jconsole 10.101.17.79:8891 does not give any console for monitoring. Requesting an update so that the root cause analysis of this issue can be found out. Regards -Original Message- From: Shanti Suresh [mailto:sha...@umich.edu] Sent: Saturday, April 12, 2014 1:12 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat On Fri, Apr 11, 2014 at 3:04 PM, André Warnier a...@ice-sa.com wrote: Shanti Suresh wrote: Hi Chris, On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/11/14, 9:01 AM, Shanti Suresh wrote: Thank you! Great presentation and most wonderful notes! One question - on slide #48, where the notes say, You can see here that the current usage is about 100MiB, less than the 115MiB threshold we set, where is the 100MB or thereabouts shown? Is it the committed value? I don't follow that statement. The statement refers to the used value. - -chris Thank you! I got it. The used value says used 114510568. I was looking for a value closer to 100MiB. 114510568 (~ 109 MB) - 104857600(100 MB) === 9652968 (~ 9 MB) How much closer were you looking for ? Well, I don't know, maybe 1 or 2 MiB over? The threshold is 115 MiB, so if the notes had said the current usage is less than the 115MiB threshold we set, I might not have had any doubt. So in the slide, you were making a point of the current usage being less than the threshold, basically, if I am not mistaken. Thanks, -Shanti Thanks, -Shanti -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to monitor performance of tomcat
-Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Monday, April 21, 2014 5:17 AM To: Tomcat Users List Subject: RE: How to monitor performance of tomcat Hi, I wanted input from the experts on my query below that the port 8891 does not respond when the command, jconsole 10.101.17.79:8891 is issued when the application hangs and stops responding. Requesting inputs so that the root cause analysis of this issue can be found out. Regards Randhir - Your actual first request in this thread was apparently a request for opinions on monitoring tools. This problem of actual hangs wasn't brought up until a week later. Here is what I've usually found when Tomcat stops responding and even the monitoring port is unreachable via jconsole and other tools: Your JVM has crashed for some reason. At this point, you need to refer to the Tomcat logs, your application logs, etc. in order to find the root cause. If the JVM is still running, try taking a couple of thread dumps and review them to find your root cause. Jeff
RE: How to monitor performance of tomcat
There is 1 finding. We normally monitor the tomcat port using jconsole as- jconsole 10.101.17.79:8891 As per my initial query, our application hangs and we need to restart JBoss Tomcat. I have observed that during this time the port 8891 does not respond as the command, jconsole 10.101.17.79:8891 does not give any console for monitoring. Requesting an update so that the root cause analysis of this issue can be found out. Regards -Original Message- From: Shanti Suresh [mailto:sha...@umich.edu] Sent: Saturday, April 12, 2014 1:12 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat On Fri, Apr 11, 2014 at 3:04 PM, André Warnier a...@ice-sa.com wrote: Shanti Suresh wrote: Hi Chris, On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/11/14, 9:01 AM, Shanti Suresh wrote: Thank you! Great presentation and most wonderful notes! One question - on slide #48, where the notes say, You can see here that the current usage is about 100MiB, less than the 115MiB threshold we set, where is the 100MB or thereabouts shown? Is it the committed value? I don't follow that statement. The statement refers to the used value. - -chris Thank you! I got it. The used value says used 114510568. I was looking for a value closer to 100MiB. 114510568 (~ 109 MB) - 104857600(100 MB) === 9652968 (~ 9 MB) How much closer were you looking for ? Well, I don't know, maybe 1 or 2 MiB over? The threshold is 115 MiB, so if the notes had said the current usage is less than the 115MiB threshold we set, I might not have had any doubt. So in the slide, you were making a point of the current usage being less than the threshold, basically, if I am not mistaken. Thanks, -Shanti Thanks, -Shanti -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
Hi Randhir, Have you considered taking a thread dump of the JVM processes, I forget? http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F If you take multiple thread dumps, say, 6, a minute apart, then you may open these up in a thread dump analyzer such as TDA or Samurai and see what threads are deadlocked, or how they are progressing etc. Then restart Tomcats to fix problem. Then analyze the thread dumps post-restart. I find thread and heap dumps useful in addition to monitoring metrics. Thanks, -Shanti On Tue, Apr 15, 2014 at 6:49 AM, Randhir Singh randhir.si...@sterlite.comwrote: There is 1 finding. We normally monitor the tomcat port using jconsole as- jconsole 10.101.17.79:8891 As per my initial query, our application hangs and we need to restart JBoss Tomcat. I have observed that during this time the port 8891 does not respond as the command, jconsole 10.101.17.79:8891 does not give any console for monitoring. Requesting an update so that the root cause analysis of this issue can be found out. Regards -Original Message- From: Shanti Suresh [mailto:sha...@umich.edu] Sent: Saturday, April 12, 2014 1:12 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat On Fri, Apr 11, 2014 at 3:04 PM, André Warnier a...@ice-sa.com wrote: Shanti Suresh wrote: Hi Chris, On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/11/14, 9:01 AM, Shanti Suresh wrote: Thank you! Great presentation and most wonderful notes! One question - on slide #48, where the notes say, You can see here that the current usage is about 100MiB, less than the 115MiB threshold we set, where is the 100MB or thereabouts shown? Is it the committed value? I don't follow that statement. The statement refers to the used value. - -chris Thank you! I got it. The used value says used 114510568. I was looking for a value closer to 100MiB. 114510568 (~ 109 MB) - 104857600(100 MB) === 9652968 (~ 9 MB) How much closer were you looking for ? Well, I don't know, maybe 1 or 2 MiB over? The threshold is 115 MiB, so if the notes had said the current usage is less than the 115MiB threshold we set, I might not have had any doubt. So in the slide, you were making a point of the current usage being less than the threshold, basically, if I am not mistaken. Thanks, -Shanti Thanks, -Shanti -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
2014-04-15 14:49 GMT+04:00 Randhir Singh randhir.si...@sterlite.com: There is 1 finding. We normally monitor the tomcat port using jconsole as- jconsole 10.101.17.79:8891 As per my initial query, our application hangs and we need to restart JBoss Tomcat. I have observed that during this time the port 8891 does not respond as the command, jconsole 10.101.17.79:8891 does not give any console for monitoring. Requesting an update so that the root cause analysis of this issue can be found out. An often cause for such behaviour is an out-of-memory condition. If you encountered OutOfMemoryError: PermGen error, then JVM will not be able to load any new classes, with obvious fatal consequences. Did you monitor the PermGen memory pool size, or just memory as a whole? If an OOME causes a thread death, it is usually not logged to logging frameworks, but a message in written to System.err (by ThreadGroup,uncaughtException(..)). 2014-04-15 17:40 GMT+04:00 Shanti Suresh sha...@umich.edu: Have you considered taking a thread dump of the JVM processes, I forget? +1 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to monitor performance of tomcat
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, April 11, 2014 12:54 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat All, On 4/8/14, 5:24 PM, Christopher Schultz wrote: Randir, On 4/8/14, 5:05 AM, Randhir Singh wrote: We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. You should really never have to invoke the gc yourself. It gc isn't working properly by itself, you have a big problem. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. Javamelody is just fine. What makes you think it's not recommended? 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. I suspect there's no chance you are in Denver for ApacheCon right now, are you? I'm giving a presentation on it tomorrow. I'll post the slides later in the afternoon MDT. http://people.apache.org/~schultz/ApacheCon%20NA%202014/Monitoring%20Ap ache%20Tomcat%20with%20JMX.odp There's a PDF version with borked slide-notes in that directory if you can't read ODP. Chris - The PDF file is not world readable. Jeff
Re: How to monitor performance of tomcat
Jeffrey Janner wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, April 11, 2014 12:54 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat All, On 4/8/14, 5:24 PM, Christopher Schultz wrote: Randir, On 4/8/14, 5:05 AM, Randhir Singh wrote: We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. You should really never have to invoke the gc yourself. It gc isn't working properly by itself, you have a big problem. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. Javamelody is just fine. What makes you think it's not recommended? 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. I suspect there's no chance you are in Denver for ApacheCon right now, are you? I'm giving a presentation on it tomorrow. I'll post the slides later in the afternoon MDT. http://people.apache.org/~schultz/ApacheCon%20NA%202014/Monitoring%20Ap ache%20Tomcat%20with%20JMX.odp There's a PDF version with borked slide-notes in that directory if you can't read ODP. Chris - The PDF file is not world readable. It gets worse : it's not even a PDF. ;-) Coffee, Jeffrey. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to monitor performance of tomcat
-Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Friday, April 11, 2014 9:27 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat Jeffrey Janner wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, April 11, 2014 12:54 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat All, On 4/8/14, 5:24 PM, Christopher Schultz wrote: Randir, On 4/8/14, 5:05 AM, Randhir Singh wrote: We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. You should really never have to invoke the gc yourself. It gc isn't working properly by itself, you have a big problem. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. Javamelody is just fine. What makes you think it's not recommended? 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. I suspect there's no chance you are in Denver for ApacheCon right now, are you? I'm giving a presentation on it tomorrow. I'll post the slides later in the afternoon MDT. http://people.apache.org/~schultz/ApacheCon%20NA%202014/Monitoring%20 Ap ache%20Tomcat%20with%20JMX.odp There's a PDF version with borked slide-notes in that directory if you can't read ODP. Chris - The PDF file is not world readable. It gets worse : it's not even a PDF. ;-) Coffee, Jeffrey. André - Perhaps you should get another cup. Make it expresso. Chris clearly states that there is *additionally* a PDF version, and that is the one that generates a permissions error. The ODP version downloads just fine, though PowerPoint complains about errors, it seems OK (I still perusing). I was trying to download the PDF version to use as a reference source for some of my less-technical staff. Jeff
Re: How to monitor performance of tomcat
Jeffrey Janner wrote: -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Friday, April 11, 2014 9:27 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat Jeffrey Janner wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, April 11, 2014 12:54 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat All, On 4/8/14, 5:24 PM, Christopher Schultz wrote: Randir, On 4/8/14, 5:05 AM, Randhir Singh wrote: We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. You should really never have to invoke the gc yourself. It gc isn't working properly by itself, you have a big problem. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. Javamelody is just fine. What makes you think it's not recommended? 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. I suspect there's no chance you are in Denver for ApacheCon right now, are you? I'm giving a presentation on it tomorrow. I'll post the slides later in the afternoon MDT. http://people.apache.org/~schultz/ApacheCon%20NA%202014/Monitoring%20 Ap ache%20Tomcat%20with%20JMX.odp There's a PDF version with borked slide-notes in that directory if you can't read ODP. Chris - The PDF file is not world readable. It gets worse : it's not even a PDF. ;-) Coffee, Jeffrey. André - Perhaps you should get another cup. Make it expresso. Chris clearly states that there is *additionally* a PDF version, and that is the one that generates a permissions error. The ODP version downloads just fine, though PowerPoint complains about errors, it seems OK (I still perusing). I was trying to download the PDF version to use as a reference source for some of my less-technical staff. Jeff Jeff. I apologise. I got a cup of (strong) coffee, and a Twix to go with it. I have an excuse though : for me, it is Friday afternoon, just 15 minutes before 5 PM, at the end of a long week. My attention was divided, between the Tomcat list and the clock on the wall. As an amend : Q: why do clocks never get stolen from government offices ? A: because there is always someone watching them - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
Hi Chris, On Fri, Apr 11, 2014 at 10:48 AM, André Warnier a...@ice-sa.com wrote: On 4/8/14, 5:24 PM, Christopher Schultz wrote: http://people.apache.org/~schultz/ApacheCon%20NA%202014/Monitoringhttp://people.apache.org/~schultz/ApacheCon%20NA%202014/Monitoring%20 %20Apache%20Tomcat%20with%20JMX.odphttp://people.apache.org/%7Eschultz/ApacheCon%20NA%202014/Monitoring%20Apache%20Tomcat%20with%20JMX.odp There's a PDF version with borked slide-notes in that directory if you can't read ODP. Q: why do clocks never get stolen from government offices ? A: because there is always someone watching them Thank you! Great presentation and most wonderful notes! One question - on slide #48, where the notes say, You can see here that the current usage is about 100MiB, less than the 115MiB threshold we set, where is the 100MB or thereabouts shown? Is it the committed value? I don't follow that statement. Thanks again, -Shanti
Re: How to monitor performance of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 4/11/14, 8:20 AM, Jeffrey Janner wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, April 11, 2014 12:54 AM To: Tomcat Users List Subject: Re: How to monitor performance of tomcat All, On 4/8/14, 5:24 PM, Christopher Schultz wrote: Randir, On 4/8/14, 5:05 AM, Randhir Singh wrote: We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. You should really never have to invoke the gc yourself. It gc isn't working properly by itself, you have a big problem. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. Javamelody is just fine. What makes you think it's not recommended? 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. I suspect there's no chance you are in Denver for ApacheCon right now, are you? I'm giving a presentation on it tomorrow. I'll post the slides later in the afternoon MDT. http://people.apache.org/~schultz/ApacheCon%20NA%202014/Monitoring%20Ap ache%20Tomcat%20with%20JMX.odp There's a PDF version with borked slide-notes in that directory if you can't read ODP. Chris - The PDF file is not world readable. D'oh. How did that happen? Fixed. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTSBSmAAoJEBzwKT+lPKRY7P4QAMvuO19O5EhR3P40pZYQvNvr Zhs0EGzH9p71KtC0REQVm2uC4+dD5LWF9fJChmDdRVjMEuzFekj+znIVy7kduTL8 AcIBRkctGIH969f/5GoKL/DzrcdQ6ISexcuwF3iDwY3PV8oSwYJ0ggnvr7/m4wJj 5wQaZaj10jpaokIpiuNaCxJhciJEocSxJWsbRZPxp1KCL6tKbXFrVhtRFL5L8+ts /S97sciEzxvjCBOMU40MNKSe5gWmM7oCmBiUBmuzoyQyLdblS5BVBQ+xuNkHV2gA fYjYUGoCY9aiquK4ofvrtN/R2DL3stpxDwPDp+YktevdAIFrbLB+oNwGsesiyltB rKlQYh5OcVNHwyMMb37qUE4qUVe09IvZqm4rguFi09RCGwsmbiUL+yuf4EEAwsuI gFuUz9Csk7lX4T7K+juQH0SLYRDip7Py0CywXVVhTlQ7P71t6q2pRrchiQFGPYV4 kov2jYvRAMonTZrNUwJZknSqs1SDut6FM3SQcAH+TZAREVB+DGWFE3jtaawsWLmq GDJ/LXCJ8onEiMxs7yD0uGKoWAJzlGJoZ55dLzO76khE1itbhc/KTfvuPGWqEW0I CtlONP2zTg/SYwyu5c8cXYefJ8DKWjU6JfmsDyyfHqO57i2J2yaLJ7DeBhikrWgP 03BMvm+RqhEUCHVMgrxv =5aJB -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/11/14, 9:01 AM, Shanti Suresh wrote: Thank you! Great presentation and most wonderful notes! One question - on slide #48, where the notes say, You can see here that the current usage is about 100MiB, less than the 115MiB threshold we set, where is the 100MB or thereabouts shown? Is it the committed value? I don't follow that statement. The statement refers to the used value. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTSBWGAAoJEBzwKT+lPKRYkc0P/15RW2CSFliGv97Jsm0psJLr R/aGqLAOjf6P7dhLp0jNftaMACkk63rfL0jMlxaimiLmoj1amYHkNOeT+Ep4S0OT 0nqcUmqBaQ72qQE5Ow7lCI+U2Hz9klRQpUZXzy377KTQrp6z/P09k1t43qqpryBb fINlK+3bc5ZmKNLic9gNC+QfXvTBELT43a6A0dtW14us9MNbd8LWUXnJ6h3tuYtu llui55xmxt+FRxr60d8I4BeBQs43+AHqUDvRa1GB/MGDjttNJBlSSObFU9DWlwY1 Bpx5Nt0QV/wYn5ppWZOI9iW/7ZVXyDHtZRhZfmCmmiVkHwfHN57NuoQXje7X7/5m rtNZYesi42HLjUnbSbtN0pigzNWPe8dE12+7YMtMiXuagAkAnQlTYPCKTxcxuthh Wsd70UI8boPygz73S66OAXNbjizX5hXRESIh1+BlJ2v+xGan1mV+ubq+4iJAwOPc Z83RLiWhDeQ+2MS1DpJSRQf3xijuGnfji/Re5qpLP4BIp/ibLHmwXgCgeT+j/oBb NTlFsvIMwiNQpqUdIIuYtGxsF8yhvd+Wp8dw87IdMKYS2srb4WaHeBBIlATu3hgI DvccUy0cLB7//5BT5QobM81SLdOcDNE81hNduQlH0HnAukPdN+gEP2ICu5ABrJve 3SsX8fAXASZTweO8rrws =0GPY -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
Hi Chris, On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/11/14, 9:01 AM, Shanti Suresh wrote: Thank you! Great presentation and most wonderful notes! One question - on slide #48, where the notes say, You can see here that the current usage is about 100MiB, less than the 115MiB threshold we set, where is the 100MB or thereabouts shown? Is it the committed value? I don't follow that statement. The statement refers to the used value. - -chris Thank you! I got it. The used value says used 114510568. I was looking for a value closer to 100MiB. So in the slide, you were making a point of the current usage being less than the threshold, basically, if I am not mistaken. Thanks, -Shanti
Re: How to monitor performance of tomcat
Shanti Suresh wrote: Hi Chris, On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/11/14, 9:01 AM, Shanti Suresh wrote: Thank you! Great presentation and most wonderful notes! One question - on slide #48, where the notes say, You can see here that the current usage is about 100MiB, less than the 115MiB threshold we set, where is the 100MB or thereabouts shown? Is it the committed value? I don't follow that statement. The statement refers to the used value. - -chris Thank you! I got it. The used value says used 114510568. I was looking for a value closer to 100MiB. 114510568 (~ 109 MB) - 104857600(100 MB) === 9652968 (~ 9 MB) How much closer were you looking for ? So in the slide, you were making a point of the current usage being less than the threshold, basically, if I am not mistaken. Thanks, -Shanti - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
On Fri, Apr 11, 2014 at 3:04 PM, André Warnier a...@ice-sa.com wrote: Shanti Suresh wrote: Hi Chris, On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/11/14, 9:01 AM, Shanti Suresh wrote: Thank you! Great presentation and most wonderful notes! One question - on slide #48, where the notes say, You can see here that the current usage is about 100MiB, less than the 115MiB threshold we set, where is the 100MB or thereabouts shown? Is it the committed value? I don't follow that statement. The statement refers to the used value. - -chris Thank you! I got it. The used value says used 114510568. I was looking for a value closer to 100MiB. 114510568 (~ 109 MB) - 104857600(100 MB) === 9652968 (~ 9 MB) How much closer were you looking for ? Well, I don't know, maybe 1 or 2 MiB over? The threshold is 115 MiB, so if the notes had said the current usage is less than the 115MiB threshold we set, I might not have had any doubt. So in the slide, you were making a point of the current usage being less than the threshold, basically, if I am not mistaken. Thanks, -Shanti Thanks, -Shanti
Re: How to monitor performance of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, On 4/8/14, 5:24 PM, Christopher Schultz wrote: Randir, On 4/8/14, 5:05 AM, Randhir Singh wrote: We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. You should really never have to invoke the gc yourself. It gc isn't working properly by itself, you have a big problem. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. Javamelody is just fine. What makes you think it's not recommended? 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. I suspect there's no chance you are in Denver for ApacheCon right now, are you? I'm giving a presentation on it tomorrow. I'll post the slides later in the afternoon MDT. http://people.apache.org/~schultz/ApacheCon%20NA%202014/Monitoring%20Apache%20Tomcat%20with%20JMX.odp There's a PDF version with borked slide-notes in that directory if you can't read ODP. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTR4NaAAoJEBzwKT+lPKRY24sP/1Ij7ECLYe+EqRiOb92EWjHg u1ZP718/HhhffBOeAqnz8G3i9aahG84cJTyUDUdAMnuTIR2r+ERpAgCpzY+18Xuf az1fnzMc7ko77gjqR3cIT7QklVAsDiiqYrvN28GhPLaEY4Lpsod+x04f9euVGA1O uf9MJxP+7z62/xdzI/fjfx5sK+k8I+2cfHPtOh67qSAa9QpSfRsP3M2GhbV9YK9Q +ssn7+3bsTDsemsr7osWP5Rbm7dZfXo/lV8qhCWhxvU+LKEmvN2HAjTBd0decHRI 9eV7MDE9VaozCuLIiOqwaC8KXQQyQARszKC16lP1Nbb5JaiQADz2pYANVhieS2cz VfhehXOq4jVPnMIo83RxIg+YwkQYHoU6KQoHEzPRIE5Mp1f9QtBfYAJ0AoKW6d90 D02H3Djp2To1x9nzDBU0bS1j0es+IvskVzTKPp1dndRZXKBVfpodqFIkuEKMNHRT ipG6s52APovZXBnXIXL7Ojwvm6vJ4EvbqEWKx13c+iEO7g9n1CDC/xVX0sU2TFcD 5DZHOwJdvpKXKyGXxygE5GRF5HpzBmuY308asBWk71WYAk6eHYeEP25q5y8YUXck Sb1omBGCB52YjDYgGKzTCBn3YfpsKfZHSWQfnQTCCfJC/oqkk54a7+k6hbkHc439 AHkRBrmf4Y25a93aihoS =y/w8 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How to monitor performance of tomcat
We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. Regards -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email !
Re: How to monitor performance of tomcat
2014-04-08 15:05 GMT+04:00 Randhir Singh randhir.si...@sterlite.com: We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. Have you tried 1) FAQ 2) archives of this mailing list? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to monitor performance of tomcat
-Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Tuesday, April 08, 2014 6:05 AM To: users@tomcat.apache.org Subject: How to monitor performance of tomcat We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. Jconsole and JVisualVm are quite useful tools for basic monitoring, if you understand how to use them and their limitations. Why did you get the impression that JavaMelody is not recommended? It does offer an awful lot of monitoring/debugging information, but you need to careful in setting it up. Under Tomcat 7, it will autodeploy with no security by default and expose a lot of potentially confidential information to whomever connects using the well-known context for it (which can't be changed). If you want to use it, I suggest limiting it to your development environment only, or reading up on how to secure it as best as possible. Jeff - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
Hi. We use JavaMelody for moment performance checks on test box and Zabbix monitoring system to have whole history. Zabbix can use JMX connection to Tomcat instance and have set of included teamplates, for example - number of threads, current memory usage, gzip usage and so on. Main virtue of Zabbix ++ JMX is that it store all data in database + can draw graphs. 2014-04-08 18:00 GMT+03:00 Jeffrey Janner jeffrey.jan...@polydyne.com: -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Tuesday, April 08, 2014 6:05 AM To: users@tomcat.apache.org Subject: How to monitor performance of tomcat We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. Jconsole and JVisualVm are quite useful tools for basic monitoring, if you understand how to use them and their limitations. Why did you get the impression that JavaMelody is not recommended? It does offer an awful lot of monitoring/debugging information, but you need to careful in setting it up. Under Tomcat 7, it will autodeploy with no security by default and expose a lot of potentially confidential information to whomever connects using the well-known context for it (which can't be changed). If you want to use it, I suggest limiting it to your development environment only, or reading up on how to secure it as best as possible. Jeff - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to monitor performance of tomcat
How about http://www.moskito.org ? It has everything you need including full control of jmx beans, memory management, threads, your beans/pojos/classes, filters, urls, what not... regards Leon On Tue, Apr 8, 2014 at 1:05 PM, Randhir Singh randhir.si...@sterlite.comwrote: We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. Regards -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email !
Re: How to monitor performance of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randir, On 4/8/14, 5:05 AM, Randhir Singh wrote: We have an application which has JBoss as the application server with Tomcat as the web server, our application has Oracle 11g as the database. I would give some further background to the issue we are facing, since the last 1 1/2 months, the application slows down. Sometimes it comes back to normal, specially on week-ends. But other times we restart JBoss Tomcat to bring back the application to normal. We have been using jconsole to monitor tomcat like jconsole 10.101.17.79:8891 which monitors our tomcat for a work order system. If the memory usage does not show spike and shows constant reading, the GC button is clicked to invoke the garbage collector. You should really never have to invoke the gc yourself. It gc isn't working properly by itself, you have a big problem. I checked out on the net and got some clue as below: 1) Javamelody - It seems to be a 3rd party tool which is not recommended. Javamelody is just fine. What makes you think it's not recommended? 2) There is a command mentioned to see the admin console, http://IP:port/ but it is not displaying the required page. Please give your inputs whether jconsole should be a help in the right direction or some other way to monitor the performance of Tomcat. I suspect there's no chance you are in Denver for ApacheCon right now, are you? I'm giving a presentation on it tomorrow. I'll post the slides later in the afternoon MDT. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTRIU6AAoJEBzwKT+lPKRYs2sP/2+u7t/qlCW36i9x99cUz0oi 1bSvQ4KxDlldSOOAIi3AwjowksRhOV7jKkQCg8B7Qap8WRNlpMEOMqr2KT8Is4rc U3355dG5hMBtf/I+et+fag5VZzRaAjjm4iUQYZxeLzkEaLZspPI8S9hq8hLUsKIo Jel4wLDasJWdbeiksym017qvmWQv39BDwBoy+canzeUKTp106+RmgkUFiqZe0gI0 dHVuQK48ifdDkWL4LHZknSMojBZkjYxfUPqBf/3TmgG/jr0YGBJK6hHdpV9K+mN2 W29igs5pvIR6cZRDuIuAgIdfRxUBzXLuCmC0KLIFVVU6da7aeg8/C0oYduS3PmJh crtsXY3zLF+FdklP70uJTSBCgldfl9VimOtyXEu47hig/Mmmb/AWXz48ytY0c745 5LBSsVoxHFel1P5AFO0WeHkjsQP5yrzhhIgZ5CXCZiZ0q5971eHj9ODf5fw5Yujy DcFpeuhBj1wHCZsSKtTqyMgBLn9t26SUfK52g5Ij/PskRaeyDyxgXZGpbjd2aZVN PJOTXUdrU87QC8ipg0jlbnMOT6Magsd/YQwHYo3HzVqXns+T0sMOujcibIPC8KXY 6ALqte9xo7NxIRbjB2rg8q/B3FrEKcdeS1+cGyJJ1nlQuvehCqMUzzB9ufHGgX6t cirQD4cW1yoZ0oDj866a =19Kg -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org