Re: TomCat 6 performance issues

2009-12-24 Thread Elli Albek
Can you run a load test from another computer on the local network? Something like apache AB gives a histogram and you should be able to tell what percentage of your requests is the 5 seconds range. It is best to run it directly to the tomcat private IP that is used inside the local network, to mak

Re: TomCat 6 performance issues

2009-12-22 Thread anthonyvierra
Is there any other hardware/software between tomcat and the checking box? Load balancer, app firewall ? On 12/22/09, DOrlov wrote: > > > > anthonyvierra wrote: >> >> Has the issue come from a single server? Or do you have a second >> machine producing the same result? >> >> > > I have another pro

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
anthonyvierra wrote: > > Has the issue come from a single server? Or do you have a second > machine producing the same result? > > I have another production box with different code, but same TomCat configuration. And time to time I have the same issues. TomCat server side code on another bo

Re: TomCat 6 performance issues

2009-12-22 Thread anthonyvierra
Has the issue come from a single server? Or do you have a second machine producing the same result? On 12/21/09, DOrlov wrote: > > Hello. > I have TomCat server on production and have from 80 up to 400 requests per > second. > > In server.xml I have next connector description: > >

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 12:55, Rainer Jung wrote: On 22.12.2009 13:26, DOrlov wrote: Rainer Jung-3 wrote: You can add "%D" to the pattern for the omcat access log, which will output the response time in milliseconds how Tomcat determined it. Already done for most cases values are 0,1,2 ms Max valu

Re: TomCat 6 performance issues

2009-12-22 Thread Rainer Jung
On 22.12.2009 13:26, DOrlov wrote: Rainer Jung-3 wrote: You can add "%D" to the pattern for the omcat access log, which will output the response time in milliseconds how Tomcat determined it. Already done for most cases values are 0,1,2 ms Max value which I ever find in the log ~ 20 ms

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Rainer Jung-3 wrote: > > > > You can add "%D" to the pattern for the omcat access log, which will > output the response time in milliseconds how Tomcat determined it. > > Already done for most cases values are 0,1,2 ms > Max value which I ever find in the log ~ 20 ms > > -- View this m

Re: TomCat 6 performance issues

2009-12-22 Thread Rainer Jung
On 22.12.2009 13:13, DOrlov wrote: Pid Ster wrote: Looks OK. When you say the response takes 5s, how are you measuring this? Is it sustained, or is it occasional? Is the server heavily loaded at the time - and again how are you measuring that? What else could be happening? E.g. sending

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Pid Ster wrote: > > > Looks OK. > > When you say the response takes 5s, how are you measuring this? > > Is it sustained, or is it occasional? > > Is the server heavily loaded at the time - and again how are you > measuring that? > > What else could be happening? E.g. sending mail from ap

Re: TomCat 6 performance issues

2009-12-22 Thread Rainer Jung
On 22.12.2009 12:58, Pid wrote: On 22/12/2009 11:34, DOrlov wrote: Pid Ster wrote: Any chance you can upgrade to the most recent Tomcat? How much total physical RAM do you have? Examine the heap "jmap -heap", and post the results. I have 8Gb RAM on the machine. PS Old Generation 4

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 11:34, DOrlov wrote: Pid Ster wrote: Any chance you can upgrade to the most recent Tomcat? How much total physical RAM do you have? Examine the heap "jmap -heap", and post the results. I have 8Gb RAM on the machine. PS Old Generation 47.376815763383185% used PS Pe

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Pid Ster wrote: > > Any chance you can upgrade to the most recent Tomcat? > > How much total physical RAM do you have? > > Examine the heap "jmap -heap ", and post the results. > > > I have 8Gb RAM on the machine. Jmap heap: JVM version is 14.3-b01 using thread-local object allocation.

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 10:18, DOrlov wrote: Pid Ster wrote: What about the exact versions of your OS, JVM and Tomcat? Is your OS a 64bit one? Correct, I use 64bit machine. JVM: Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode) OS:

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Pid Ster wrote: > > What about the exact versions of your OS, JVM and Tomcat? > Is your OS a 64bit one? > Correct, I use 64bit machine. JVM: Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode) OS: [root@ ~]# uname -mrsn Linux 2

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Leon Rosenberg-3 wrote: > > > Hello, > > I have a lot of high performance sites (2000 requests per second and > more) under my 'umbrella' but have never > encountered any performance problems because of the gc logging (yet). > > btw add > -Xloggc: logfilename > to move gc logs into separate

Re: TomCat 6 performance issues

2009-12-22 Thread Leon Rosenberg
On Tue, Dec 22, 2009 at 9:10 AM, DOrlov wrote: > > > > Leon Rosenberg-3 wrote: >> >> Hello, >> >> you should switch on GC logs and check whether the delays happen at >> the Full GC Time. >> You should also start with Xms = Xmx -> both 6144 (why exactly 6144? :-) >> ). >> >> -verbose:gc >> -XX:+Pri

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 05:48, DOrlov wrote: Zacheusz Siedlecki-2 wrote: This could be problem with memmory and GC. Please show your jvm memmory settings. Regards, Zacheusz Thank you for reply, I use next memory and GC settings: -Xms1024m -Xmx6144m -XX:MaxPermSize=512m

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Leon Rosenberg-3 wrote: > > Hello, > > you should switch on GC logs and check whether the delays happen at > the Full GC Time. > You should also start with Xms = Xmx -> both 6144 (why exactly 6144? :-) > ). > > -verbose:gc > -XX:+PrintGCTimeStamps > -XX:+PrintGCDetails > Thank you for comme

Re: TomCat 6 performance issues

2009-12-22 Thread Leon Rosenberg
Hello, you should switch on GC logs and check whether the delays happen at the Full GC Time. You should also start with Xms = Xmx -> both 6144 (why exactly 6144? :-) ). -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails regards Leon On Tue, Dec 22, 2009 at 6:48 AM, DOrlov wrote: > > > > Za

Re: TomCat 6 performance issues

2009-12-21 Thread DOrlov
Zacheusz Siedlecki-2 wrote: > > This could be problem with memmory and GC. Please show your jvm > memmory settings. > Regards, > Zacheusz > Thank you for reply, I use next memory and GC settings: -Xms1024m -Xmx6144m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+

Re: TomCat 6 performance issues

2009-12-21 Thread Zacheusz Siedlecki
This could be problem with memmory and GC. Please show your jvm memmory settings. Regards, Zacheusz On Tue, Dec 22, 2009 at 6:36 AM, DOrlov wrote: > > Hello. > I have TomCat server on production and have from 80 up to 400 requests per > second. > > In server.xml I have