On 17/05/2013 11:51, Chirag Dewan wrote:
> 
> 
> Hi All,
> 
> I have upgraded my application from Embedded Tomcat 6 to Embedded
> Tomcat 7. With Tomcat 6, I was getting around 70000 Transactions per
> sec with a simple HTTP service,which sets the HTTPResponse and
> returns it.
> 
> Now with Tomcat 7,I am getting 54000 transactions per sec. Going
> through the web I figured out that it may be due to Servlet 3.0 API.
> I have updated my web.xml so that Servlet API doesn't scan the
> classes for annotations. This is how my web.xml looks like:

Annotation scanning affects start time, not runtime performance.

> Can anyone provide some other measures I can implement?

Which Tomcat versions are you comparing?

Is everything else the same (OS, JVM, etc.)?

With trunk I get ~37k req/s with the default configuration and using ab
as the client. Just changing maxKeepAliveRequests to -1 increases that
to ~43k reqs/sec and all of that without shutting down the stuff I
normally have running.

There have been changes to the connector code that could add a few
microseconds here and there to a request. That could explain the numbers
you are seeing.

Using a profiler would be the next step to see where the time is being
spent.

Mark

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

Reply via email to