RE: How to monitor performance of tomcat

2014-04-15 Thread Randhir Singh
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

[ANN] Apache Tomcat Native 1.1.30 released

2014-04-15 Thread Mladen Turk
The Apache Tomcat team announces the immediate availability of Apache Tomcat Native 1.1.30 stable. Please refer to the change log for the list of changes: http://tomcat.apache.org/native-doc/miscellaneous/changelog.html Downloads: http://tomcat.apache.org/download-native.cgi The Apache Tomcat

[ANN] Apache Tomcat Connectors 1.2.40 released

2014-04-15 Thread Mladen Turk
The Apache Tomcat Project is proud to announce the release of version 1.2.40 of Apache Tomcat Connectors. This version fixes few bugs found in previous releases. Full details of these changes and new features, are available in the Apache Tomcat Connectors changelog:

RE: AW: AW: tomcat-connectors-1.2.39-windows-x86_64-iis does not work

2014-04-15 Thread Alten, Jessica-Aileen
Hi all, the new tomcat-connectors-1.2.40-windows-x86_64-iis works with the localhost setting in workers.properties! Great! Many thanks to the developers! :-) Regards, Jessica smime.p7s Description: S/MIME cryptographic signature

Re: How to monitor performance of tomcat

2014-04-15 Thread Shanti Suresh
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

Re: AW: AW: tomcat-connectors-1.2.39-windows-x86_64-iis does not work

2014-04-15 Thread Mladen Turk
On 04/15/2014 02:58 PM, Alten, Jessica-Aileen wrote: Hi all, the new tomcat-connectors-1.2.40-windows-x86_64-iis works with the localhost setting in workers.properties! Great! Many thanks to the developers! :-) You're welcome. Thanks for filing the bug and confirming the fix. It was that

Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Shanti Suresh
Greetings, Chris' presentation on monitoring Tomcat is really nice work. I found that quite useful. Taking it one step further, could I request some recommendations on how we might profile Java code running inside Tomcat? Often, I am stuck with finding out why an application is slow. It could

Re: How to monitor performance of tomcat

2014-04-15 Thread Konstantin Kolinko
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

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/15/14, 10:51 AM, Shanti Suresh wrote: Taking it one step further, could I request some recommendations on how we might profile Java code running inside Tomcat? Often, I am stuck with finding out why an application is slow. It

Tomcat logging with Log4j

2014-04-15 Thread Scott Bailey
Hi all, We need to add log rotation and log size management to tomcat 7. Tried converting to Log4j steps from tomcat website (http://tomcat.apache.org/tomcat-7.0-doc/logging.html) but did not work, was able to get it to work from

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ian, On 4/15/14, 2:52 PM, Ian Long wrote: I need some help from all the tomcat experts out there! I am using tomcat behind apache httpd using mod_jk (1.2.39). About 50-100 times per day (out of many requests), I’m getting an internal server

Re: Tomcat logging with Log4j

2014-04-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Scott, On 4/15/14, 2:50 PM, Scott Bailey wrote: We need to add log rotation and log size management to tomcat 7. Tried converting to Log4j steps from tomcat website (http://tomcat.apache.org/tomcat-7.0-doc/logging.html) but did not work, was

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
Thanks for the reply. It looks to me like tomcat just gave up partway through generating the request, I’m trying to figure out why.   There are no exceptions in either my application logs or the tomcat log itself, which is frustrating. Thanks, I’ll look into the executor. Apache matches what

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Leon Rosenberg
On Tue, Apr 15, 2014 at 4:51 PM, Shanti Suresh sha...@umich.edu wrote: Greetings, Hello Shanti, Chris' presentation on monitoring Tomcat is really nice work. I found that quite useful. Taking it one step further, could I request some recommendations on how we might profile Java code

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Leon Rosenberg
On Tue, Apr 15, 2014 at 7:58 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/15/14, 10:51 AM, Shanti Suresh wrote: Taking it one step further, could I request some recommendations on how we might profile Java code

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
Forgot to mention that it looks like tomcat returned around 50% of what the page should have been, before it hit the Internal Server Error. Cheers, Ian On April 15, 2014 at 3:13:08 PM, Christopher Schultz (ch...@christopherschultz.net) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Konstantin Kolinko
2014-04-15 22:52 GMT+04:00 Ian Long ian.l...@opterus.com: Hi All, I need some help from all the tomcat experts out there! I am using tomcat behind apache httpd using mod_jk (1.2.39). About 50-100 times per day (out of many requests), I’m getting an internal server error from Tomcat (error

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ian, On 4/15/14, 3:33 PM, Ian Long wrote: Thanks for the reply. It looks to me like tomcat just gave up partway through generating the request, I’m trying to figure out why. There are no exceptions in either my application logs or the

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Shanti Suresh
Hi Chris, On Tue, Apr 15, 2014 at 1:58 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 You need to use a Profiler for that. There are a number of fine Profilers available for Java. I use YourKit because they give free licenses

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, On 4/15/14, 3:45 PM, Leon Rosenberg wrote: On Tue, Apr 15, 2014 at 7:58 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/15/14, 10:51 AM, Shanti Suresh

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shanti, On 4/15/14, 3:56 PM, Shanti Suresh wrote: So here is my understanding of these metrics: So if a request for a servlet or JSP exceeds a given time interval, that would be a stall. The interval may depend upon the application. In some

RE: Tomcat logging with Log4j

2014-04-15 Thread Scott Bailey
Hello Christopher, What steps did you actually take? Steps on this site: http://mrhaki.blogspot.com/2011/02/configure-log4j-on-tomcat.html Downloaded new jars from extras for tomcat. tomcat-juli.jar and tomcat-juli-adapters.jar. Placed the tomcat-juli.jar file in our $CATALINA_BASE/bin

Tomcat @ Windows Cyrillic

2014-04-15 Thread Petr Nemecek
Hi all, I need to use cyrillic in my webapp. What I did: * Added -Dfile.encoding=utf-8 to the Java options * Added URIEncoding=UTF-8 to the connector in server.xml What I achieved: * When I send a request with cyrillic chars to the Tomcat, it's properly received. * When I send response with

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Shanti Suresh
On Tue, Apr 15, 2014 at 3:59 PM, Christopher Schultz ch...@christopherschultz.net wrote: Can you afford to wait for the request to complete (late), or do you need to know immediately when a request is taking too long? My reasoning for measuring the long-running requests at a given period

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ian, On 4/15/14, 3:33 PM, Ian Long wrote: Thanks for the reply. It looks to me like tomcat just gave up partway through generating the request, I’m trying to figure out why. There are no exceptions in either my

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
I don’t think it’s memory related - Tomcat is allocated an 8GB heap and according to New Relic it has never used more than 6.5G; there is also lots of PermGen space available. Cheers, Ian On April 15, 2014 at 4:18:11 PM, André Warnier (a...@ice-sa.com) wrote: Christopher Schultz wrote:

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
Yes, I checked both the tomcat log (I’ve configured tomcat to use log4j) as well as my application logs. Yes, 20 httpd prefork processes. I don’t think it’s memory related, I have an 8GB heap and tomcat averages 5GB usage and peeks around 6.5 before garbage collection kicks in. Cheers, Ian

Re: Tomcat @ Windows Cyrillic

2014-04-15 Thread André Warnier
Petr Nemecek wrote: Hi all, I need to use cyrillic in my webapp. What I did: * Added -Dfile.encoding=utf-8 to the Java options * Added URIEncoding=UTF-8 to the connector in server.xml What I achieved: * When I send a request with cyrillic chars to the Tomcat, it's properly received. * When I

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread André Warnier
Ian, On this list, it is kind of frowned-upon to top post. It is preferred when people answer a question, below the question. Keeps things more logical in the reading sequence, and avoids having to scroll down to guess what you are responding to. Ian Long wrote: Yes, I checked both the

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
On April 15, 2014 at 4:58:28 PM, André Warnier (a...@ice-sa.com(mailto:a...@ice-sa.com)) wrote: Ian, On this list, it is kind of frowned-upon to top post. It is preferred when people answer a question, below the question. Keeps things more logical in the reading sequence, and avoids

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread André Warnier
Ian Long wrote: On April 15, 2014 at 4:58:28 PM, André Warnier (a...@ice-sa.com(mailto:a...@ice-sa.com)) wrote: Ian, On this list, it is kind of frowned-upon to top post. It is preferred when people answer a question, below the question. Keeps things more logical in the reading sequence,

Which tcnative to replace for Heartbleed?

2014-04-15 Thread Scott Johnson
I deploy Tomcat 7 in both 64 and 32 bit environments. When I deploy/upgrade, I download Tomcat from this page: http://tomcat.apache.org/download-70.cgi, downloading both the 32-bit Windows and 64-bit Windows zip files. I would like to make sure that my Tomcat deployments are secure from the

Re: Which tcnative to replace for Heartbleed?

2014-04-15 Thread Konstantin Kolinko
2014-04-16 0:46 GMT+04:00 Scott Johnson sjohn...@dag.com: I deploy Tomcat 7 in both 64 and 32 bit environments. When I deploy/upgrade, I download Tomcat from this page: http://tomcat.apache.org/download-70.cgi, downloading both the 32-bit Windows and 64-bit Windows zip files. I would like

RE: Which tcnative to replace for Heartbleed?

2014-04-15 Thread Scott Johnson
Thanks for your reply, that clears up just about everything. I got the link directly from the Bugzilla bug where this issue was reported, by the way. Scott -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, April 15, 2014 3:03 PM To: Tomcat Users

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Tim Watts
On Tue, 2014-04-15 at 17:12 -0400, Ian Long wrote: Ian Long wrote: I have tomcat configured to log via log4j, and then there is my application log, those are the only two logs, and neither contains anything. They're empty? Are you sure the logs are writable? How much free space is

Re: Please help diagnosing a random production Tomcat 7.0.53 Internal Server Error!

2014-04-15 Thread Ian Long
  On April 15, 2014 at 6:50:05 PM, Tim Watts (t...@cliftonfarm.org(mailto:t...@cliftonfarm.org)) wrote: On Tue, 2014-04-15 at 17:12 -0400, Ian Long wrote: Ian Long wrote: I have tomcat configured to log via log4j, and then there is my application log, those are the only two logs, and

tomcat 7.0.53 error

2014-04-15 Thread Philippe Couas
Hi, I want migrate from tomcat 7.0.52 to 7.0.53. My tomcat is launched in standalone mode from command line (linux level3)Currently i have a servlet that create image to disk and only with last version i have following error messageException in thread http-bio-8080-exec-10