Re: performance of tomcat 8 is less than tomcat 6

2016-04-30 Thread Felix Schumacher

Am 20.04.2016 um 12:55 schrieb Ravi Chandra Suryavanshi:

Yes I tried the NIO and NIO2 but not seen much difference. The TPS only 
increased 3K  with NIO2.
Can you try it with nio enabled in tomcat 6 and see, if that is slower, 
too? Same with bio and tomcat 8 and see if it is better?


Regards,
 Felix


-Original Message-
From: Igor Cicimov [mailto:icici...@gmail.com]
Sent: Wednesday, April 20, 2016 4:21 PM
To: Tomcat Users List
Subject: RE: performance of tomcat 8 is less than tomcat 6

On 20 Apr 2016 1:30 pm, "Ravi Chandra Suryavanshi" < 
ravi.chandra.suryavan...@ericsson.com> wrote:

Hi Christopher,
PFA, the requested XMLs. Just want to highlight that tomcat 8  is not

able to use the CPU usage. I have tried maxThread 200,300,400 but result is 
same sometimes even less TPS.

Regards,
Ravi

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Tuesday, April 19, 2016 7:38 PM
To: Tomcat Users List
Subject: Re: performance of tomcat 8 is less than tomcat 6

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ravi,

On 4/19/16 1:04 AM, Ravi Chandra Suryavanshi wrote:

Hi, I am using tomcat 6 in my product. I am planning to upgrade to
tomcat 8 as tomcat is going to EoS in Dec-2016. I have just taken
the performance of Tomcat 8 and found the 70% less performance
compared to tomcat 6. See the below results Tomcat 6 is giving
167473.2/s whereas tomcat 8 is giving 100436.6/s I have just
compared with two standalone tomcat which is just hitting the
HelloWorld servlet available in example.

Kindly let me know what need to configure to boost the performance.

Following are my setup: Java=Java 8 HttpClient=HttpClient4 Benchmark
tool=jmeter

testserver:~# uname -a Linux testserver 3.10.0-229.el7.x86_64 #1 SMP
Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux



testserver:~# lscpu Architecture:  x86_64 CPU op-mode(s):
32-bit, 64-bit Byte Order:Little Endian CPU(s):
32 On-line CPU(s) list:   0-31 Thread(s) per core:2 Core(s) per
socket:8 Socket(s): 2 NUMA node(s):  2
Vendor ID: GenuineIntel CPU family:6 Model:
63 Model name:Intel(R) Xeon(R) CPU E5-2640 v3 @
2.60GHz Stepping:  2 CPU MHz:   2600.000
BogoMIPS:  5210.53 Virtualization:VT-x L1d
cache: 32K L1i cache: 32K L2 cache:
256K L3 cache:  20480K NUMA node0 CPU(s):
0-7,16-23 NUMA node1 CPU(s): 8-15,24-31

testserver:~# vmstat -s 131730840 K total memory 5931052 K used
memory
7126352 K active memory 5511616 K inactive memory 116069376 K free
memory 20888 K buffer memory 9709520 K swap cache 11681788 K total
swap 0 K used swap 11681788 K free swap 54069797 non-nice user cpu
ticks 997 nice user cpu ticks 9712353 system cpu ticks
15112937897 idle cpu ticks 37101 IO-wait cpu ticks 73 IRQ cpu ticks
21245 softirq cpu ticks 0 stolen cpu ticks 8918100 pages paged in
267868897 pages paged out 0 pages swapped in 0 pages swapped out
4281536287 interrupts 4185543972 CPU context switches
1456296771 boot time 84815522 forks



Tomcat 6 performance

Linux 3.10.0-229.el7.x86_64 (testserver) 04/19/2016
_x86_64_(32 CPU) 05:36:33 PM CPU %user %nice
%system   %iowait%steal %idle 05:36:38 PM all 37.66
0.00 14.69  0.10  0.00 47.55 05:36:43 PM all
37.61  0.00 14.50  0.01  0.00 47.89 05:36:48 PM
all 38.31  0.00 14.48  0.03  0.00 47.19
05:36:53 PM all 37.45  0.00 14.53  0.01
0.00 48.01 05:36:58 PM all 37.97  0.00 14.67
0.02  0.00 47.34 05:37:03 PM all 37.68  0.00
14.62  0.01  0.00 47.69

Created the tree successfully using HTTPRequest.jmx Starting the
test @ Wed Apr 13 17:34:58 CEST 2016 (1460561698701) Waiting for
possible shutdown message on port 4445 summary +  16181 in   1.3s =
12893.2/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%)
Active: 3 Started: 3 Finished: 0 summary + 5187350 in30s =
172911.7/s Avg: 0 Min: 0 Max:31 Err: 0 (0.00%)
Active: 24 Started: 24 Finished: 0 summary = 5203531 in  31.3s =
166486.4/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%)
summary + 5207210 in30s = 173573.7/s Avg: 0 Min: 0 Max:
26 Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0 summary =
10410741 in  61.3s = 169957.4/s Avg: 0 Min: 0 Max:67
Err: 0 (0.00%) summary + 5039715 in30s = 167990.5/s Avg:
0 Min: 0 Max:13 Err: 0 (0.00%) Active: 24 Started: 24
Finished: 0 summary = 15450456 in  91.3s = 169310.8/s Avg: 0
Min: 0 Max:67 Err: 0 (0.00%) summary + 5024196 in
30s = 167473.2/s Avg: 0 Min: 0 Max:22 Err: 0
(0.00%) Active: 24 Started: 24 Finished: 0 summary = 20474652 in
121s = 168856.1/s Avg: 0 Min: 0 Max:67 

RE: performance of tomcat 8 is less than tomcat 6

2016-04-21 Thread Ravi Chandra Suryavanshi
Hi Christopher,
I am using simple HelloWorld servlet. Which will give "Hello World!" as 
response. There is no business logic in the servlet. Same code is executing on 
both the version of tomcat. 

public class HelloWorld extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("");
out.println("");
out.println("Hello World!");
out.println("");
out.println("");
out.println("Hello World!");
out.println("");
out.println("");
}
}

-Ravi
-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, April 21, 2016 7:37 PM
To: Tomcat Users List
Subject: Re: performance of tomcat 8 is less than tomcat 6

Ravi,

On 4/20/16 6:55 AM, Ravi Chandra Suryavanshi wrote:
> Yes I tried the NIO and NIO2 but not seen much difference. The TPS 
> only increased 3K  with NIO2.

What is your test case?

-chris

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


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



Re: performance of tomcat 8 is less than tomcat 6

2016-04-21 Thread Christopher Schultz
Ravi,

On 4/20/16 6:55 AM, Ravi Chandra Suryavanshi wrote:
> Yes I tried the NIO and NIO2 but not seen much difference. The TPS
> only increased 3K  with NIO2.

What is your test case?

-chris

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



RE: performance of tomcat 8 is less than tomcat 6

2016-04-20 Thread Ravi Chandra Suryavanshi
Yes I tried the NIO and NIO2 but not seen much difference. The TPS only 
increased 3K  with NIO2.

-Original Message-
From: Igor Cicimov [mailto:icici...@gmail.com] 
Sent: Wednesday, April 20, 2016 4:21 PM
To: Tomcat Users List
Subject: RE: performance of tomcat 8 is less than tomcat 6

On 20 Apr 2016 1:30 pm, "Ravi Chandra Suryavanshi" < 
ravi.chandra.suryavan...@ericsson.com> wrote:
>
> Hi Christopher,
> PFA, the requested XMLs. Just want to highlight that tomcat 8  is not
able to use the CPU usage. I have tried maxThread 200,300,400 but result is 
same sometimes even less TPS.
> Regards,
> Ravi
>
> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Tuesday, April 19, 2016 7:38 PM
> To: Tomcat Users List
> Subject: Re: performance of tomcat 8 is less than tomcat 6
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Ravi,
>
> On 4/19/16 1:04 AM, Ravi Chandra Suryavanshi wrote:
> > Hi, I am using tomcat 6 in my product. I am planning to upgrade to 
> > tomcat 8 as tomcat is going to EoS in Dec-2016. I have just taken 
> > the performance of Tomcat 8 and found the 70% less performance 
> > compared to tomcat 6. See the below results Tomcat 6 is giving 
> > 167473.2/s whereas tomcat 8 is giving 100436.6/s I have just 
> > compared with two standalone tomcat which is just hitting the 
> > HelloWorld servlet available in example.
> >
> > Kindly let me know what need to configure to boost the performance.
> >
> > Following are my setup: Java=Java 8 HttpClient=HttpClient4 Benchmark 
> > tool=jmeter
> >
> > testserver:~# uname -a Linux testserver 3.10.0-229.el7.x86_64 #1 SMP 
> > Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
> >
> >
> >
> > testserver:~# lscpu Architecture:  x86_64 CPU op-mode(s):
> > 32-bit, 64-bit Byte Order:Little Endian CPU(s):
> > 32 On-line CPU(s) list:   0-31 Thread(s) per core:2 Core(s) per
> > socket:8 Socket(s): 2 NUMA node(s):  2
> > Vendor ID: GenuineIntel CPU family:6 Model:
> > 63 Model name:Intel(R) Xeon(R) CPU E5-2640 v3 @
> > 2.60GHz Stepping:  2 CPU MHz:   2600.000
> > BogoMIPS:  5210.53 Virtualization:VT-x L1d
> > cache: 32K L1i cache: 32K L2 cache:
> > 256K L3 cache:  20480K NUMA node0 CPU(s):
> > 0-7,16-23 NUMA node1 CPU(s): 8-15,24-31
> >
> > testserver:~# vmstat -s 131730840 K total memory 5931052 K used 
> > memory
> > 7126352 K active memory 5511616 K inactive memory 116069376 K free 
> > memory 20888 K buffer memory 9709520 K swap cache 11681788 K total 
> > swap 0 K used swap 11681788 K free swap 54069797 non-nice user cpu 
> > ticks 997 nice user cpu ticks 9712353 system cpu ticks
> > 15112937897 idle cpu ticks 37101 IO-wait cpu ticks 73 IRQ cpu ticks
> > 21245 softirq cpu ticks 0 stolen cpu ticks 8918100 pages paged in
> > 267868897 pages paged out 0 pages swapped in 0 pages swapped out
> > 4281536287 interrupts 4185543972 CPU context switches
> > 1456296771 boot time 84815522 forks
> >
> >
> >
> > Tomcat 6 performance
> >
> > Linux 3.10.0-229.el7.x86_64 (testserver) 04/19/2016
> > _x86_64_(32 CPU) 05:36:33 PM CPU %user %nice
> > %system   %iowait%steal %idle 05:36:38 PM all 37.66
> > 0.00 14.69  0.10  0.00 47.55 05:36:43 PM all
> > 37.61  0.00 14.50  0.01  0.00 47.89 05:36:48 PM
> > all 38.31  0.00 14.48  0.03  0.00 47.19
> > 05:36:53 PM all 37.45  0.00 14.53  0.01
> > 0.00 48.01 05:36:58 PM all 37.97  0.00 14.67
> > 0.02  0.00 47.34 05:37:03 PM all 37.68  0.00
> > 14.62  0.01  0.00 47.69
> >
> > Created the tree successfully using HTTPRequest.jmx Starting the 
> > test @ Wed Apr 13 17:34:58 CEST 2016 (1460561698701) Waiting for
> > possible shutdown message on port 4445 summary +  16181 in   1.3s =
> > 12893.2/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%)
> > Active: 3 Started: 3 Finished: 0 summary + 5187350 in30s =
> > 172911.7/s Avg: 0 Min: 0 Max:31 Err: 0 (0.00%)
> > Active: 24 Started: 24 Finished: 0 summary = 5203531 in  31.3s =
> > 166486.4/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%)
> > summary + 5207210 in30s = 173573.7/s Avg: 0 Min: 0 Max:
> > 26 Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0 summary =
> > 104

RE: performance of tomcat 8 is less than tomcat 6

2016-04-20 Thread Igor Cicimov
On 20 Apr 2016 1:30 pm, "Ravi Chandra Suryavanshi" <
ravi.chandra.suryavan...@ericsson.com> wrote:
>
> Hi Christopher,
> PFA, the requested XMLs. Just want to highlight that tomcat 8  is not
able to use the CPU usage. I have tried maxThread 200,300,400 but result is
same sometimes even less TPS.
> Regards,
> Ravi
>
> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Tuesday, April 19, 2016 7:38 PM
> To: Tomcat Users List
> Subject: Re: performance of tomcat 8 is less than tomcat 6
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Ravi,
>
> On 4/19/16 1:04 AM, Ravi Chandra Suryavanshi wrote:
> > Hi, I am using tomcat 6 in my product. I am planning to upgrade to
> > tomcat 8 as tomcat is going to EoS in Dec-2016. I have just taken the
> > performance of Tomcat 8 and found the 70% less performance compared to
> > tomcat 6. See the below results Tomcat 6 is giving 167473.2/s whereas
> > tomcat 8 is giving 100436.6/s I have just compared with two standalone
> > tomcat which is just hitting the HelloWorld servlet available in
> > example.
> >
> > Kindly let me know what need to configure to boost the performance.
> >
> > Following are my setup: Java=Java 8 HttpClient=HttpClient4 Benchmark
> > tool=jmeter
> >
> > testserver:~# uname -a Linux testserver 3.10.0-229.el7.x86_64 #1 SMP
> > Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
> >
> >
> >
> > testserver:~# lscpu Architecture:  x86_64 CPU op-mode(s):
> > 32-bit, 64-bit Byte Order:Little Endian CPU(s):
> > 32 On-line CPU(s) list:   0-31 Thread(s) per core:2 Core(s) per
> > socket:8 Socket(s): 2 NUMA node(s):  2
> > Vendor ID: GenuineIntel CPU family:6 Model:
> > 63 Model name:Intel(R) Xeon(R) CPU E5-2640 v3 @
> > 2.60GHz Stepping:  2 CPU MHz:   2600.000
> > BogoMIPS:  5210.53 Virtualization:VT-x L1d
> > cache: 32K L1i cache: 32K L2 cache:
> > 256K L3 cache:  20480K NUMA node0 CPU(s):
> > 0-7,16-23 NUMA node1 CPU(s): 8-15,24-31
> >
> > testserver:~# vmstat -s 131730840 K total memory 5931052 K used memory
> > 7126352 K active memory 5511616 K inactive memory 116069376 K free
> > memory 20888 K buffer memory 9709520 K swap cache 11681788 K total
> > swap 0 K used swap 11681788 K free swap 54069797 non-nice user cpu
> > ticks 997 nice user cpu ticks 9712353 system cpu ticks
> > 15112937897 idle cpu ticks 37101 IO-wait cpu ticks 73 IRQ cpu ticks
> > 21245 softirq cpu ticks 0 stolen cpu ticks 8918100 pages paged in
> > 267868897 pages paged out 0 pages swapped in 0 pages swapped out
> > 4281536287 interrupts 4185543972 CPU context switches
> > 1456296771 boot time 84815522 forks
> >
> >
> >
> > Tomcat 6 performance
> >
> > Linux 3.10.0-229.el7.x86_64 (testserver) 04/19/2016
> > _x86_64_(32 CPU) 05:36:33 PM CPU %user %nice
> > %system   %iowait%steal %idle 05:36:38 PM all 37.66
> > 0.00 14.69  0.10  0.00 47.55 05:36:43 PM all
> > 37.61  0.00 14.50  0.01  0.00 47.89 05:36:48 PM
> > all 38.31  0.00 14.48  0.03  0.00 47.19
> > 05:36:53 PM all 37.45  0.00 14.53  0.01
> > 0.00 48.01 05:36:58 PM all 37.97  0.00 14.67
> > 0.02  0.00 47.34 05:37:03 PM all 37.68  0.00
> > 14.62  0.01  0.00 47.69
> >
> > Created the tree successfully using HTTPRequest.jmx Starting the test
> > @ Wed Apr 13 17:34:58 CEST 2016 (1460561698701) Waiting for
> > possible shutdown message on port 4445 summary +  16181 in   1.3s =
> > 12893.2/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%)
> > Active: 3 Started: 3 Finished: 0 summary + 5187350 in30s =
> > 172911.7/s Avg: 0 Min: 0 Max:31 Err: 0 (0.00%)
> > Active: 24 Started: 24 Finished: 0 summary = 5203531 in  31.3s =
> > 166486.4/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%)
> > summary + 5207210 in30s = 173573.7/s Avg: 0 Min: 0 Max:
> > 26 Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0 summary =
> > 10410741 in  61.3s = 169957.4/s Avg: 0 Min: 0 Max:67
> > Err: 0 (0.00%) summary + 5039715 in30s = 167990.5/s Avg:
> > 0 Min: 0 Max:13 Err: 0 (0.00%) Active: 24 Started: 24
> > Finished: 0 summary = 15450456 in  91.3s = 169310.8/s Avg: 0
> > Min: 0 Max:67 Err

RE: performance of tomcat 8 is less than tomcat 6

2016-04-19 Thread Ravi Chandra Suryavanshi
Hi Christopher,
PFA, the requested XMLs. Just want to highlight that tomcat 8  is not able to 
use the CPU usage. I have tried maxThread 200,300,400 but result is same 
sometimes even less TPS. 
Regards,
Ravi 

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Tuesday, April 19, 2016 7:38 PM
To: Tomcat Users List
Subject: Re: performance of tomcat 8 is less than tomcat 6

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ravi,

On 4/19/16 1:04 AM, Ravi Chandra Suryavanshi wrote:
> Hi, I am using tomcat 6 in my product. I am planning to upgrade to 
> tomcat 8 as tomcat is going to EoS in Dec-2016. I have just taken the 
> performance of Tomcat 8 and found the 70% less performance compared to 
> tomcat 6. See the below results Tomcat 6 is giving 167473.2/s whereas 
> tomcat 8 is giving 100436.6/s I have just compared with two standalone 
> tomcat which is just hitting the HelloWorld servlet available in 
> example.
> 
> Kindly let me know what need to configure to boost the performance.
> 
> Following are my setup: Java=Java 8 HttpClient=HttpClient4 Benchmark 
> tool=jmeter
> 
> testserver:~# uname -a Linux testserver 3.10.0-229.el7.x86_64 #1 SMP 
> Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
> 
> 
> 
> testserver:~# lscpu Architecture:  x86_64 CPU op-mode(s):
> 32-bit, 64-bit Byte Order:Little Endian CPU(s):
> 32 On-line CPU(s) list:   0-31 Thread(s) per core:2 Core(s) per
> socket:8 Socket(s): 2 NUMA node(s):  2 
> Vendor ID: GenuineIntel CPU family:6 Model:
> 63 Model name:Intel(R) Xeon(R) CPU E5-2640 v3 @
> 2.60GHz Stepping:  2 CPU MHz:   2600.000 
> BogoMIPS:  5210.53 Virtualization:VT-x L1d
> cache: 32K L1i cache: 32K L2 cache:
> 256K L3 cache:  20480K NUMA node0 CPU(s):
> 0-7,16-23 NUMA node1 CPU(s): 8-15,24-31
> 
> testserver:~# vmstat -s 131730840 K total memory 5931052 K used memory 
> 7126352 K active memory 5511616 K inactive memory 116069376 K free 
> memory 20888 K buffer memory 9709520 K swap cache 11681788 K total 
> swap 0 K used swap 11681788 K free swap 54069797 non-nice user cpu 
> ticks 997 nice user cpu ticks 9712353 system cpu ticks
> 15112937897 idle cpu ticks 37101 IO-wait cpu ticks 73 IRQ cpu ticks 
> 21245 softirq cpu ticks 0 stolen cpu ticks 8918100 pages paged in 
> 267868897 pages paged out 0 pages swapped in 0 pages swapped out 
> 4281536287 interrupts 4185543972 CPU context switches
> 1456296771 boot time 84815522 forks
> 
> 
> 
> Tomcat 6 performance
> 
> Linux 3.10.0-229.el7.x86_64 (testserver) 04/19/2016
> _x86_64_(32 CPU) 05:36:33 PM CPU %user %nice
> %system   %iowait%steal %idle 05:36:38 PM all 37.66
> 0.00 14.69  0.10  0.00 47.55 05:36:43 PM all
> 37.61  0.00 14.50  0.01  0.00 47.89 05:36:48 PM
> all 38.31  0.00 14.48  0.03  0.00 47.19 
> 05:36:53 PM all 37.45  0.00 14.53  0.01
> 0.00 48.01 05:36:58 PM all 37.97  0.00 14.67
> 0.02  0.00 47.34 05:37:03 PM all 37.68  0.00
> 14.62  0.01  0.00 47.69
> 
> Created the tree successfully using HTTPRequest.jmx Starting the test 
> @ Wed Apr 13 17:34:58 CEST 2016 (1460561698701) Waiting for
> possible shutdown message on port 4445 summary +  16181 in   1.3s =
> 12893.2/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%)
> Active: 3 Started: 3 Finished: 0 summary + 5187350 in30s =
> 172911.7/s Avg: 0 Min: 0 Max:31 Err: 0 (0.00%)
> Active: 24 Started: 24 Finished: 0 summary = 5203531 in  31.3s =
> 166486.4/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%) 
> summary + 5207210 in30s = 173573.7/s Avg: 0 Min: 0 Max:
> 26 Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0 summary =
> 10410741 in  61.3s = 169957.4/s Avg: 0 Min: 0 Max:67
> Err: 0 (0.00%) summary + 5039715 in30s = 167990.5/s Avg:
> 0 Min: 0 Max:13 Err: 0 (0.00%) Active: 24 Started: 24
> Finished: 0 summary = 15450456 in  91.3s = 169310.8/s Avg: 0
> Min: 0 Max:67 Err: 0 (0.00%) summary + 5024196 in
> 30s = 167473.2/s Avg: 0 Min: 0 Max:22 Err: 0
> (0.00%) Active: 24 Started: 24 Finished: 0 summary = 20474652 in
> 121s = 168856.1/s Avg: 0 Min: 0 Max:67 Err: 0
> (0.00%)
> 
> 
> --
- 
- 
>
> 
tomcat 8
> 
> Linux 3.10.0-229.el7.x86_64 (testserver) 04/19/201

Re: performance of tomcat 8 is less than tomcat 6

2016-04-19 Thread Daniel Savard
2016-04-19 1:04 GMT-04:00 Ravi Chandra Suryavanshi <
ravi.chandra.suryavan...@ericsson.com>:

> Hi,
> I am using tomcat 6 in my product. I am planning to upgrade to tomcat 8 as
> tomcat is going to EoS in Dec-2016.
> I have just taken the performance of Tomcat 8 and found the 70% less
> performance compared to tomcat 6. See the below results Tomcat 6 is giving
> 167473.2/s whereas tomcat 8 is giving 100436.6/s
> I have just compared with two standalone tomcat which is just hitting the
> HelloWorld servlet available in example.
>
> Kindly let me know what need to configure to boost the performance.
>
> Following are my setup:
> Java=Java 8
> HttpClient=HttpClient4
> Benchmark tool=jmeter
>
> testserver:~# uname -a
> Linux testserver 3.10.0-229.el7.x86_64 #1 SMP Thu Jan 29 18:37:38 EST 2015
> x86_64 x86_64 x86_64 GNU/Linux
>
>
>
> testserver:~# lscpu
> Architecture:  x86_64
> CPU op-mode(s):32-bit, 64-bit
> Byte Order:Little Endian
> CPU(s):32
> On-line CPU(s) list:   0-31
> Thread(s) per core:2
> Core(s) per socket:8
> Socket(s): 2
> NUMA node(s):  2
> Vendor ID: GenuineIntel
> CPU family:6
> Model: 63
> Model name:Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz
> Stepping:  2
> CPU MHz:   2600.000
> BogoMIPS:  5210.53
> Virtualization:VT-x
> L1d cache: 32K
> L1i cache: 32K
> L2 cache:  256K
> L3 cache:  20480K
> NUMA node0 CPU(s): 0-7,16-23
> NUMA node1 CPU(s): 8-15,24-31
>
> testserver:~# vmstat -s
> 131730840 K total memory
>   5931052 K used memory
>   7126352 K active memory
>   5511616 K inactive memory
> 116069376 K free memory
> 20888 K buffer memory
>   9709520 K swap cache
>  11681788 K total swap
> 0 K used swap
>  11681788 K free swap
>  54069797 non-nice user cpu ticks
>   997 nice user cpu ticks
>   9712353 system cpu ticks
>   15112937897 idle cpu ticks
> 37101 IO-wait cpu ticks
>73 IRQ cpu ticks
> 21245 softirq cpu ticks
> 0 stolen cpu ticks
>   8918100 pages paged in
> 267868897 pages paged out
> 0 pages swapped in
> 0 pages swapped out
>4281536287 interrupts
>4185543972 CPU context switches
>1456296771 boot time
>  84815522 forks
>
>
>
> Tomcat 6 performance
>
> Linux 3.10.0-229.el7.x86_64 (testserver) 04/19/2016  _x86_64_
>   (32 CPU)
> 05:36:33 PM CPU %user %nice   %system   %iowait%steal
>  %idle
> 05:36:38 PM all 37.66  0.00 14.69  0.10  0.00
>  47.55
> 05:36:43 PM all 37.61  0.00 14.50  0.01  0.00
>  47.89
> 05:36:48 PM all 38.31  0.00 14.48  0.03  0.00
>  47.19
> 05:36:53 PM all 37.45  0.00 14.53  0.01  0.00
>  48.01
> 05:36:58 PM all 37.97  0.00 14.67  0.02  0.00
>  47.34
> 05:37:03 PM all 37.68  0.00 14.62  0.01  0.00
>  47.69
>
> Created the tree successfully using HTTPRequest.jmx
> Starting the test @ Wed Apr 13 17:34:58 CEST 2016 (1460561698701)
> Waiting for possible shutdown message on port 4445
> summary +  16181 in   1.3s = 12893.2/s Avg: 0 Min: 0 Max:67
> Err: 0 (0.00%) Active: 3 Started: 3 Finished: 0
> summary + 5187350 in30s = 172911.7/s Avg: 0 Min: 0 Max:31
> Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0
> summary = 5203531 in  31.3s = 166486.4/s Avg: 0 Min: 0 Max:67
> Err: 0 (0.00%)
> summary + 5207210 in30s = 173573.7/s Avg: 0 Min: 0 Max:26
> Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0
> summary = 10410741 in  61.3s = 169957.4/s Avg: 0 Min: 0 Max:67
> Err: 0 (0.00%)
> summary + 5039715 in30s = 167990.5/s Avg: 0 Min: 0 Max:13
> Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0
> summary = 15450456 in  91.3s = 169310.8/s Avg: 0 Min: 0 Max:67
> Err: 0 (0.00%)
> summary + 5024196 in30s = 167473.2/s Avg: 0 Min: 0 Max:22
> Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0
> summary = 20474652 in   121s = 168856.1/s Avg: 0 Min: 0 Max:67
> Err: 0 (0.00%)
>
>
>
> --
> tomcat 8
>
> Linux 3.10.0-229.el7.x86_64 (testserver) 04/19/2016  _x86_64_
>   (32 CPU)
>
> 06:14:36 PM CPU %user %nice   %system   %iowait%steal
>  %idle
> 06:14:41 PM all 24.10  0.00  9.39  0.01  0.00
>  66.51
> 06:14:46 PM all 24.62  0.00  9.25  0.00  0.00
>  66.13
> 06:14:51 PM all 24.66  0.00  9.12  0.01  0.00
>  66.22
> 06:14:56 PM all 23.96  0.00   

Re: performance of tomcat 8 is less than tomcat 6

2016-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ravi,

On 4/19/16 1:04 AM, Ravi Chandra Suryavanshi wrote:
> Hi, I am using tomcat 6 in my product. I am planning to upgrade to
> tomcat 8 as tomcat is going to EoS in Dec-2016. I have just taken
> the performance of Tomcat 8 and found the 70% less performance
> compared to tomcat 6. See the below results Tomcat 6 is giving
> 167473.2/s whereas tomcat 8 is giving 100436.6/s I have just
> compared with two standalone tomcat which is just hitting the
> HelloWorld servlet available in example.
> 
> Kindly let me know what need to configure to boost the
> performance.
> 
> Following are my setup: Java=Java 8 HttpClient=HttpClient4 
> Benchmark tool=jmeter
> 
> testserver:~# uname -a Linux testserver 3.10.0-229.el7.x86_64 #1
> SMP Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
> 
> 
> 
> testserver:~# lscpu Architecture:  x86_64 CPU op-mode(s):
> 32-bit, 64-bit Byte Order:Little Endian CPU(s):
> 32 On-line CPU(s) list:   0-31 Thread(s) per core:2 Core(s) per
> socket:8 Socket(s): 2 NUMA node(s):  2 
> Vendor ID: GenuineIntel CPU family:6 Model:
> 63 Model name:Intel(R) Xeon(R) CPU E5-2640 v3 @
> 2.60GHz Stepping:  2 CPU MHz:   2600.000 
> BogoMIPS:  5210.53 Virtualization:VT-x L1d
> cache: 32K L1i cache: 32K L2 cache:
> 256K L3 cache:  20480K NUMA node0 CPU(s):
> 0-7,16-23 NUMA node1 CPU(s): 8-15,24-31
> 
> testserver:~# vmstat -s 131730840 K total memory 5931052 K used
> memory 7126352 K active memory 5511616 K inactive memory 116069376
> K free memory 20888 K buffer memory 9709520 K swap cache 11681788 K
> total swap 0 K used swap 11681788 K free swap 54069797 non-nice
> user cpu ticks 997 nice user cpu ticks 9712353 system cpu ticks 
> 15112937897 idle cpu ticks 37101 IO-wait cpu ticks 73 IRQ cpu
> ticks 21245 softirq cpu ticks 0 stolen cpu ticks 8918100 pages
> paged in 267868897 pages paged out 0 pages swapped in 0 pages
> swapped out 4281536287 interrupts 4185543972 CPU context switches 
> 1456296771 boot time 84815522 forks
> 
> 
> 
> Tomcat 6 performance
> 
> Linux 3.10.0-229.el7.x86_64 (testserver) 04/19/2016
> _x86_64_(32 CPU) 05:36:33 PM CPU %user %nice
> %system   %iowait%steal %idle 05:36:38 PM all 37.66
> 0.00 14.69  0.10  0.00 47.55 05:36:43 PM all
> 37.61  0.00 14.50  0.01  0.00 47.89 05:36:48 PM
> all 38.31  0.00 14.48  0.03  0.00 47.19 
> 05:36:53 PM all 37.45  0.00 14.53  0.01
> 0.00 48.01 05:36:58 PM all 37.97  0.00 14.67
> 0.02  0.00 47.34 05:37:03 PM all 37.68  0.00
> 14.62  0.01  0.00 47.69
> 
> Created the tree successfully using HTTPRequest.jmx Starting the
> test @ Wed Apr 13 17:34:58 CEST 2016 (1460561698701) Waiting for
> possible shutdown message on port 4445 summary +  16181 in   1.3s =
> 12893.2/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%)
> Active: 3 Started: 3 Finished: 0 summary + 5187350 in30s =
> 172911.7/s Avg: 0 Min: 0 Max:31 Err: 0 (0.00%)
> Active: 24 Started: 24 Finished: 0 summary = 5203531 in  31.3s =
> 166486.4/s Avg: 0 Min: 0 Max:67 Err: 0 (0.00%) 
> summary + 5207210 in30s = 173573.7/s Avg: 0 Min: 0 Max:
> 26 Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0 summary =
> 10410741 in  61.3s = 169957.4/s Avg: 0 Min: 0 Max:67
> Err: 0 (0.00%) summary + 5039715 in30s = 167990.5/s Avg:
> 0 Min: 0 Max:13 Err: 0 (0.00%) Active: 24 Started: 24
> Finished: 0 summary = 15450456 in  91.3s = 169310.8/s Avg: 0
> Min: 0 Max:67 Err: 0 (0.00%) summary + 5024196 in
> 30s = 167473.2/s Avg: 0 Min: 0 Max:22 Err: 0
> (0.00%) Active: 24 Started: 24 Finished: 0 summary = 20474652 in
> 121s = 168856.1/s Avg: 0 Min: 0 Max:67 Err: 0
> (0.00%)
> 
> 
> --
- 
- 
>
> 
tomcat 8
> 
> Linux 3.10.0-229.el7.x86_64 (testserver) 04/19/2016
> _x86_64_(32 CPU)
> 
> 06:14:36 PM CPU %user %nice   %system   %iowait
> %steal %idle 06:14:41 PM all 24.10  0.00  9.39
> 0.01  0.00 66.51 06:14:46 PM all 24.62  0.00
> 9.25  0.00  0.00 66.13 06:14:51 PM all 24.66
> 0.00  9.12  0.01  0.00 66.22 06:14:56 PM all
> 23.96  0.00  9.36  0.08  0.00 66.60 06:15:01 PM
> all 24.78  0.00  9.52  0.01  0.00 65.69 
> 06:15:06 PM all 23.86  0.00  9.24  0.03
> 0.00 66.87
> 
> 
> 
> 
> 
> Created the tree successfully using HTTPRequest.jmx Starting the
> test @ Wed Apr 13