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 in 30s = 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 in 30s = 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 in 30s = 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 18:12:41 CEST 2016 (1460563961583) Waiting for possible shutdown message on port 4445 summary + 1600892 in 18.4s = 87104.4/s Avg: 0 Min: 0 Max: 1040 Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0 summary + 3102671 in 30s = 103422.4/s Avg: 0 Min: 0 Max: 9 Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0 summary = 4703563 in 48.4s = 97223.2/s Avg: 0 Min: 0 Max: 1040 Err: 0 (0.00%) summary + 3090174 in 30s = 103005.8/s Avg: 0 Min: 0 Max: 9 Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0 summary = 7793737 in 78.4s = 99436.5/s Avg: 0 Min: 0 Max: 1040 Err: 0 (0.00%) summary + 3091476 in 30s = 103049.2/s Avg: 0 Min: 0 Max: 10 Err: 0 (0.00%) Active: 24 Started: 24 Finished: 0 summary = 10885213 in 108s = 100436.6/s Avg: 0 Min: 0 Max: 1040 Err: 0 (0.00%) Regards, Ravi