It might be weird but its confusing me a lot. 

I used HttpClient 4.2.1 for Tomcat 6.0.18 and I used the same client with 
Tomcat 7.0.30,causing the CPU utilization and reduced trans/sec.

Now,the same thing I have tested with Apache Jmeter 2.6,and its working fine. 
Any possible reasons? 

Thanks.



________________________________
 From: Chirag Dewan <chirag.dewa...@yahoo.in>
To: Tomcat Users List <users@tomcat.apache.org> 
Sent: Monday, 20 May 2013 8:08 PM
Subject: Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 
  7
 


I ran my test client on  Hello World example servlet on Tomcat 7.0.30. It was 
12K req/sec with 80% CPU utilization.

The same test case on tomcat 6.0.18 gave me similar req/sec but CPU utilization 
of 70% . The results on my linux server,with client and server running on the 
same machine. But all I am doing is comparing the 2 instances in the same 
environement.


I am pretty sure the utilization is due to the server.

The Jprofiler
 shows a lot of logging threads in tomcat consuming a lot of memory. Something 
I should be careful about?

Also I ran an asynchronous servlet with the same client. The trans/sec reduced 
drastically,but the CPU utilization was only 4% 

Are there too may threads waiting for connection? Would thread pooling help,if 
we can?

Thanks.



________________________________
 From: Mark Thomas <ma...@apache.org>
To: Tomcat Users List <users@tomcat.apache.org> 
Sent: Monday, 20 May 2013 1:48 PM
Subject: Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 
7
 

On 20/05/2013 06:59, Chirag Dewan wrote:
> Hi,
> 
> I have profiled the application using JProfiler,and it seems to me
> that its my servlet which is taking the majority of time.
> 
> 
> Though the time is in mili seconds,but I guess since the servlet is
> code is same as with Tomcat 6.0.18 is it the Servlet 3.0 API which is
> causing the reduced throughput?

If the time is being spent in your servlet then it can't possibly be the
Servlet 3.0 implementation causing the delay since that would be time
spent inside Tomcat code, not your code.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to