You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kaushal Shriyan <ka...@gmail.com> on 2016/11/14 14:28:02 UTC
Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k requests/second
Hi,
is there a way to configure tomcat to handle 2k requests/second (2k meaning
2000 requests per second). How many cpu cores do i need to setup tomcat to
handle 2k requests/second? How much physical memory the server should have?
Any guidelines or rule of thumb to be followed? Any help will be highly
appreciable.
Thanks in Advance.
Regards,
Kaushal
RE: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k
requests/second
Posted by "Hedrick, Brooke - 43" <br...@rainhail.com>.
Chris,
>-----Original Message-----
>From: Christopher Schultz [mailto:chris@christopherschultz.net]
>Sent: Tuesday, November 15, 2016 12:53 PM
>To: Tomcat Users List <us...@tomcat.apache.org>
>Subject: Re: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k requests/second
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA256
>
>Brooke,
>
>On 11/15/16 1:17 PM, Hedrick, Brooke - 43 wrote:
>> -----Original Message----- From: Kaushal Shriyan
>> [mailto:kaushalshriyan@gmail.com] Sent: Monday, November 14, 2016
>> 8:46 AM To: Tomcat Users List <us...@tomcat.apache.org> Subject:
>> Re: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k
>> requests/second
>>
>> ...
>>
>>> Please suggest me any open source profiling application which i can
>>> start with. I will appreciate if you can help me understand the
>>> relation between 2k requests/second vs cpu >cores of the server.
>>>
>>> Thanks again in advance.
>>>
>>> Regards,
>>>
>>> Kaushal
>>
>> A couple I have used: 1. Apache Bench (ab/abs very basic ) ships with
>> Apache. 2. Apache JMeter. Much more in-depth and flexible in how you
>> load test and the results collected.
>
>Those are load-generators, not profilers.
Great point. You are correct. Kaushal will need both. Profiling will help find hotspots. I have used Eclipse and jvmtop, but prefer JVisualVM ( ships with JDK ) with the sampling plugin. Decent, cheap to run, high level numbers that help identify hotspots. But, it will depend on how small of a needle you are looking for.
Even once you have profile, you will want to load test. In fact, you may even want to run a load test while you profile - just be aware that profilers have a cost that varies from small to molasses behavior inducing.
In any case hopefully we are giving Kaushal something useful to go on.
>
>I have never been happy with any open-source profilers. There are several good non-free options, though.
>
>- -chris
>-----BEGIN PGP SIGNATURE-----
>Comment: GPGTools - http://gpgtools.org
>Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
>iQIcBAEBCAAGBQJYK1mSAAoJEBzwKT+lPKRY2PUP/1Uw7C2TiN6x37SejT+pyc1x
>7N6n5FoUyB8RdrVIZlkEsbTzaWKHzq5EisxczzblleTip8jNBwSXaTjRQ+CgQWjU
>//UinQwf7bhCZCzKuSlzq51HOYSkoIPLQtg2NBNUGtqXJ7LtbwdXkBRbMQxPeiMV
>+RSNmY1CoTElvxJeYfqcr4A1R0PRTgoOMkz7CSj2Hf2H7XsccY1bFH/ofiFGbpKh
>v0GTRiq9TCNGVBtVhAaU5339KRBuxB5QkTgZF/7KQU719d6jsmsB+u7W1St2gXWc
>zaIUg75zC6KP+IxlXkkPldh6dDruw0drG8q1RUEai972JZS9e1/kLnFaGne02pUW
>UPSIgCeSXPRiSPGfLE5e1FkQxmrQmuMlWo6imwvbSQ0Rzgy8gKVv2seYsM9jqsko
>BzWn2iri4YPVzAunKfZIekOV4xL5Bev08PND4jdBkPIWwTF9Tz1twnBxK33q+Mi1
>qEYSezzS4PmFQAtNnwbRBGolqCiJMITtfP4nkO3QsWfzM0/CZo4M587onXnhawbA
>yzxlG5tzCHYQhr6PQD4POA+bH0RbWI4rDm4DqlD5RRDjVC0BMkxiejwXH1SIRApP
>4vcNVipxr7MzngDSsAwbG+Jz4dUGlNas9o5WjoAu8Jya/PYkaZ4LEv/Dn0DWgTnb
>nvYTZz8td79PoGkK2a45
>=4KGB
>-----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
Re: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k
requests/second
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Brooke,
On 11/15/16 1:17 PM, Hedrick, Brooke - 43 wrote:
> -----Original Message----- From: Kaushal Shriyan
> [mailto:kaushalshriyan@gmail.com] Sent: Monday, November 14, 2016
> 8:46 AM To: Tomcat Users List <us...@tomcat.apache.org> Subject:
> Re: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k
> requests/second
>
> ...
>
>> Please suggest me any open source profiling application which i
>> can start with. I will appreciate if you can help me understand
>> the relation between 2k requests/second vs cpu >cores of the
>> server.
>>
>> Thanks again in advance.
>>
>> Regards,
>>
>> Kaushal
>
> A couple I have used: 1. Apache Bench (ab/abs very basic ) ships
> with Apache. 2. Apache JMeter. Much more in-depth and flexible in
> how you load test and the results collected.
Those are load-generators, not profilers.
I have never been happy with any open-source profilers. There are
several good non-free options, though.
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCAAGBQJYK1mSAAoJEBzwKT+lPKRY2PUP/1Uw7C2TiN6x37SejT+pyc1x
7N6n5FoUyB8RdrVIZlkEsbTzaWKHzq5EisxczzblleTip8jNBwSXaTjRQ+CgQWjU
//UinQwf7bhCZCzKuSlzq51HOYSkoIPLQtg2NBNUGtqXJ7LtbwdXkBRbMQxPeiMV
+RSNmY1CoTElvxJeYfqcr4A1R0PRTgoOMkz7CSj2Hf2H7XsccY1bFH/ofiFGbpKh
v0GTRiq9TCNGVBtVhAaU5339KRBuxB5QkTgZF/7KQU719d6jsmsB+u7W1St2gXWc
zaIUg75zC6KP+IxlXkkPldh6dDruw0drG8q1RUEai972JZS9e1/kLnFaGne02pUW
UPSIgCeSXPRiSPGfLE5e1FkQxmrQmuMlWo6imwvbSQ0Rzgy8gKVv2seYsM9jqsko
BzWn2iri4YPVzAunKfZIekOV4xL5Bev08PND4jdBkPIWwTF9Tz1twnBxK33q+Mi1
qEYSezzS4PmFQAtNnwbRBGolqCiJMITtfP4nkO3QsWfzM0/CZo4M587onXnhawbA
yzxlG5tzCHYQhr6PQD4POA+bH0RbWI4rDm4DqlD5RRDjVC0BMkxiejwXH1SIRApP
4vcNVipxr7MzngDSsAwbG+Jz4dUGlNas9o5WjoAu8Jya/PYkaZ4LEv/Dn0DWgTnb
nvYTZz8td79PoGkK2a45
=4KGB
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k
requests/second
Posted by "Hedrick, Brooke - 43" <br...@rainhail.com>.
-----Original Message-----
From: Kaushal Shriyan [mailto:kaushalshriyan@gmail.com]
Sent: Monday, November 14, 2016 8:46 AM
To: Tomcat Users List <us...@tomcat.apache.org>
Subject: Re: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k requests/second
...
>Please suggest me any open source profiling application which i can start with. I will appreciate if you can help me understand the relation between 2k requests/second vs cpu >cores of the server.
>
>Thanks again in advance.
>
>Regards,
>
>Kaushal
A couple I have used:
1. Apache Bench (ab/abs very basic ) ships with Apache.
2. Apache JMeter. Much more in-depth and flexible in how you load test and the results collected.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k
requests/second
Posted by Jo...@wellsfargo.com.
> -----Original Message-----
> From: Kaushal Shriyan [mailto:kaushalshriyan@gmail.com]
> Sent: Monday, November 14, 2016 8:46 AM
> To: Tomcat Users List
> Subject: Re: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k
> requests/second
>
> On Mon, Nov 14, 2016 at 8:06 PM, Mark Thomas <ma...@apache.org> wrote:
>
> > On 14/11/2016 14:28, Kaushal Shriyan wrote:
> > > Hi,
> > >
> > > is there a way to configure tomcat to handle 2k requests/second (2k
> > meaning
> > > 2000 requests per second). How many cpu cores do i need to setup
> > > tomcat
> > to
> > > handle 2k requests/second? How much physical memory the server
> > > should
> > have?
> >
> > That will depend on your application.
> >
> > My laptop will easily handle 10 times that for a simple application. I
> > have seen much larger servers unable to handle more than a handful of
> > requests a second for a large, complex, poorly performing application.
> >
> > > Any guidelines or rule of thumb to be followed? Any help will be
> > > highly appreciable.
> >
> > Profile your application.
> >
>
> Thanks Mark Thomas for the quick reply.
>
> Please suggest me any open source profiling application which i can start with. I
> will appreciate if you can help me understand the relation between 2k
> requests/second vs cpu cores of the server.
>
> Thanks again in advance.
>
> Regards,
>
> Kaushal
There is no fixed relationship between requests per second and number of cores. It all depends on your application. Think of it this way: if each request takes 1 second, you'll get fewer requests per second than if each request takes 1 millisecond. Whether a request takes 1 second or 1 millisecond has more to do with your application than hardware.
As for an open source profiler, try asking your favorite search engine.
John
Re: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k requests/second
Posted by Kaushal Shriyan <ka...@gmail.com>.
On Mon, Nov 14, 2016 at 8:06 PM, Mark Thomas <ma...@apache.org> wrote:
> On 14/11/2016 14:28, Kaushal Shriyan wrote:
> > Hi,
> >
> > is there a way to configure tomcat to handle 2k requests/second (2k
> meaning
> > 2000 requests per second). How many cpu cores do i need to setup tomcat
> to
> > handle 2k requests/second? How much physical memory the server should
> have?
>
> That will depend on your application.
>
> My laptop will easily handle 10 times that for a simple application. I
> have seen much larger servers unable to handle more than a handful of
> requests a second for a large, complex, poorly performing application.
>
> > Any guidelines or rule of thumb to be followed? Any help will be highly
> > appreciable.
>
> Profile your application.
>
Thanks Mark Thomas for the quick reply.
Please suggest me any open source profiling application which i can start
with. I will appreciate if you can help me understand the relation between
2k requests/second vs cpu cores of the server.
Thanks again in advance.
Regards,
Kaushal
Re: Apache Tomcat Version 7.0.59 on CentOS 6.8 to handle 2k
requests/second
Posted by Mark Thomas <ma...@apache.org>.
On 14/11/2016 14:28, Kaushal Shriyan wrote:
> Hi,
>
> is there a way to configure tomcat to handle 2k requests/second (2k meaning
> 2000 requests per second). How many cpu cores do i need to setup tomcat to
> handle 2k requests/second? How much physical memory the server should have?
That will depend on your application.
My laptop will easily handle 10 times that for a simple application. I
have seen much larger servers unable to handle more than a handful of
requests a second for a large, complex, poorly performing application.
> Any guidelines or rule of thumb to be followed? Any help will be highly
> appreciable.
Profile your application.
Mark
>
> Thanks in Advance.
>
> Regards,
>
> Kaushal
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org