tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Anecito <adanec...@yahoo.com>
Subject Re: IIS7/isapi/tomcat performance
Date Tue, 01 Mar 2011 21:33:48 GMT
Hi Chris,

I used Tomcat separately because JBoss was always somewhat behind the current 
production version of Tomcat. Eventually I will remove JBoss and use JDBC from 
Tomcat to my database to reduce memory footprint and improve performance. I am 
only using EJB's in JBoss right now.

Best practice regarding memory settings is set the min.max to be the same so the 
CPU is not busy allocating memory. There are other settings one can use just 
trial and error or keep testing till you get the best configuration for your 
app. I know each jvm release gets better so less tuning is needed as what I 
think you are trying to say.

I went up to 1,000 client threads before I stopped.

Since I met my first goal I like to get 10X better on the next one if possible 
and from what you told me I might be able to make it. I can get close if I went 
to a i7 980 or Sandy Bridge system instead of the slower AMD processor. To me 
that is cheating since I believe through tuning and code changes one should be 
able to get there.

I will look for the pdf again if it is the one I am thinking of for ApacheHttp 
commons testing then I am on the same track regarding setup and usage of the 
client program.

Regards,
-Tony




----- Original Message ----
From: Christopher Schultz <chris@christopherschultz.net>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Tue, March 1, 2011 2:17:46 PM
Subject: Re: IIS7/isapi/tomcat performance

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tony,

Good thing these are marked as [OT]... we have totally hijacked Bruce's
thread. Maybe we should start another.

On 3/1/2011 4:07 PM, Tony Anecito wrote:
> I am just trying to figure out what is the fastest was to handle my app. I was 

> shooting for less than 1msec at Tomcat which I not have done. Now I want to get 
>
> to 100 microseconds. Years ago from an logical architecture standpoint It was:
> 1. Apache web server - JBoss, then 
> 2. Apache - Tomcat - JBoss
> 3. APR/Tomcat - JBoss. 

Do you mean you are using Tomcat out in front of JBoss? Why not just use
JBoss directly? That'll probably buy you more than any other
configuration change.

> I currently am using 200MB xmx, xms, -server, NUMA, and set my new generation 
>to 
>
> be large since my objects are short lived. I do not remember my other settings. 
>
> I am beginning to think simpler is better for settings since at 1msec or less 
> any time spent by the processor might be wasted time.

Generally speaking, you should let the GC configure itself unless you
really know what you are doing or have to work around some specific problem.

> I am very curious how you got 50K requests per second.

You'll have to be more specific. Do you mean in my performance tests?
Which one? Did you read all of the setup info in the earlier slides?

> I can get 1K per second on my AMD 6 core system. What was your client setup?

It's all in the PDF.

> I ran my client on the same
> server as my APR/Tomcat-JBoss and I am setting up the client on a laptop so I 
>am 
>
> not sharing resources. For the client I am using ApacheHttp class running in 
> Eclipse and launch each http request in a different thread.

How many threads are you talking about using, here?

> I ended 
> up configuring Tomcat for 400 connections which made a big difference. I still 

> have alot more testing/tuning to do and I hope to get to it over the next 
>couple 
>
> of evenings.

100 microseconds seems like an arbitrary target. Where did it come from?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1tYnoACgkQ9CaO5/Lv0PDVpwCgvlpUZcm4uZd/do+EeYuu/dte
o2QAn3XHEdvKFVwFUR2VdLDnBghXlP03
=ov34
-----END PGP SIGNATURE-----

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


      

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


Mime
View raw message