20
Caucho Home | Contact Us | Caucho Blog | Wiki | Applica8on Server Resin Java Web Server Outperforms Cbased NginX Wednesday, August 22, 12

Resin Outperforms NginX

Embed Size (px)

DESCRIPTION

www.caucho.comUsing industry standard tool and methodology, Resin Pro web server was put to the test versus Nginx, a popular web server with a reputation for efficiency and performance. Nginx is known to be faster and more reliable under load than the popular Apache HTTPD. Benchmark tests between Resin and Nginx yielded competitive figures, with Resin leading with fewer errors and faster response times. In numerous and varying tests, Resin handled 20% to 25% more load while still outperforming Nginx. In particular, Resin was able to sustain fast response times under extremely heavy load while Nginx performance degraded.

Citation preview

Page 1: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  Java  Web  Server  Outperforms  C-­‐based  NginX

Wednesday, August 22, 12

Page 2: Resin Outperforms NginX

RESIN PRO Web Profile Health System Cloud Support

Open%Source,%Reliable%and%Lightweight%Java%EE%Applica;on%Server%

Wednesday, August 22, 12

Page 3: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

NginX  1.2.0  versus  Resin  4.0.29  Performance  Tests

• The  following  will  be  covered:

• Resin  valida+on  as  the  single  best  solu+on  for  web  server  and  applica+on  server

• Tools  used  in  benchmark  tes+ng

• h=perf

• AutoBench

• Results  from  performance  tes+ng  Resin  4.0.29  and  NginX  1.2.0

Wednesday, August 22, 12

Page 4: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  outperforms  NginX

• Resin

• Reputa+on  as  fast,  lightweight  and  powerful  Java  applica+on  server

•NginX

• Known  to  be  faster  and  more  reliable  under  load  than  Apache  HTTPD

• Benchmark  tests  between  Resin  and  NginX

• Both  yielded  compe++ve  figures

• Resin  leads  tes+ng  with:

• Fewer  errors

• Faster  response  Cme

Wednesday, August 22, 12

Page 5: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Benchmark  Tools

• Industry  standard  tool  and  methodology• H=perf

• h=perf  is  tool  produced  by  HP  for  measuring  web  server  performance.  The  h=perf  tool  supports  HTTP/1.1  keepalives  and  SSL  protocols.

• AutoBench

• a  tool  for  automaCng  a  comparaCve  benchmark  test  against  two  a  web  servers.

• Runs  h=perf  against  each  host.

• Increases  the  number  of  requests  per  seconds  on  each  iteraCon.

• Delivers  output  in  a  format  that  can  be  easily  consumed  by  spreadsheet  tools.

• The  command  autobenchd  is  used  to  run  a  daemon  on  client  machines.

• The  autobench_admin  command  drives  many  clients  to  run  test  at  same  Cme  by  communicaCng  with  autobenchd.

Wednesday, August 22, 12

Page 6: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Test  Setup  Overview

•Configura8on

• The  only  change  that  was  made  was  the  worker_processes  were  set  to  8  for  NginX  to  improve  throughput.

Wednesday, August 22, 12

Page 7: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Hardware  SoQware  Specifica8ons

• Client  HW/OS  specs:

• i7  4  core  /  8  HT,  2.8  GHZ,  8Meg  Cache,  8  GB  RAM.

• Ubuntu  12  /  Linux  Kernel  3.2.0-­‐26-­‐generic

• Server  HW  specs:

• i7  4  core  /  8  HT,  2.8  GHZ,  8Meg  Cache,  8  GB  RAM.

• Ubuntu  12  /  Linux  Kernel  3.2.0-­‐26-­‐generic

• Test  soQware

• Autobench  2.1.1

• h=perf  0.9.0

• SoQware  under  test:

• Resin  Pro  4.0.29

• nginx  1.2.0

Wednesday, August 22, 12

Page 8: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

0K  Test  -­‐  Command  Line  Arguments

0k.sh./admin.sh  300000  2000  20000  1000  0k

admin.shautobench_admin-­‐-­‐clients  xen:4600,lancre:4600-­‐-­‐uri1  /file_$5.html-­‐-­‐host1  ch_resin  -­‐-­‐port1  8080-­‐-­‐uri2  /file_$5.html-­‐-­‐host2  ch_nginx  -­‐-­‐port2  80-­‐-­‐num_conn  $1-­‐-­‐num_call  10-­‐-­‐low_rate  $2-­‐-­‐high_rate  $3-­‐-­‐rate_step  $4-­‐-­‐Cmeout  3-­‐-­‐file  out_con$1_start$2_end$3_step$4_$5.tsv

(Above  is  used  to  setup  300,000  connecCons  at  a  rate  of  20,000  to  200,000  requests  per  second.Each  iteraCon  increases  the  rate  by  10,000  from  20,000  to  200,000.)

0k.htmlhtml><body><pre></pre></body></html>

Wednesday, August 22, 12

Page 9: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.00K  file  -­‐  requests  per  second

Wednesday, August 22, 12

Page 10: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.00K  file  -­‐  Response  Time

Wednesday, August 22, 12

Page 11: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.00K  file  -­‐  IO  throughput

Wednesday, August 22, 12

Page 12: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.00K  file  -­‐  Errors

Wednesday, August 22, 12

Page 13: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

1K  Test  -­‐  Command  Line  Arguments

1k.sh./admin.sh  200000  1000  10000  250  1k

admin.shautobench_admin-­‐-­‐clients  xen.caucho.com:4600,lancre.caucho.com:4600-­‐-­‐uri1  /file_$5.html-­‐-­‐host1  ch_resin  -­‐-­‐port1  8080-­‐-­‐uri2  /file_$5.html-­‐-­‐host2  ch_nginx  -­‐-­‐port2  80-­‐-­‐num_conn  $1-­‐-­‐num_call  10-­‐-­‐low_rate  $2-­‐-­‐high_rate  $3-­‐-­‐rate_step  $4-­‐-­‐Cmeout  3-­‐-­‐file  out_con$1_start$2_end$3_step$4_$5.tsv

1k.htmlhtml><body><pre>0  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  01234567891  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  01234567892  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  01234567893  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  01234567894  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  01234567895  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  01234567896  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  01234567897  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  01234567898  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  01234567899  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789  0123456789</pre></body></html>

Wednesday, August 22, 12

Page 14: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.01K  file  -­‐  requests  per  second

Wednesday, August 22, 12

Page 15: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.01K  file  -­‐  Response  Time

Wednesday, August 22, 12

Page 16: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.01K  file  -­‐  IO  throughput

Wednesday, August 22, 12

Page 17: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.01K  file  -­‐  Errors

Wednesday, August 22, 12

Page 18: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.08K  file  -­‐  requests  per  second

Wednesday, August 22, 12

Page 19: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Resin  4.0.29  vs  NginX  1.2.064K  file  -­‐  requests  per  second

Wednesday, August 22, 12

Page 20: Resin Outperforms NginX

Caucho  Home    |    Contact  Us    |    Caucho  Blog    |    Wiki    |  Applica8on  Server

Links

•www.caucho.com

• blog.caucho.com  -­‐  Resin  vs.  NginX

• Resin  Java  Web  Server  Outperforms  C-­‐based  NginX

Wednesday, August 22, 12