Welcome! Log In Create A New Profile

Advanced

Nginx1.2.8-JBoss5 vs Apache2.4 EventMPM-JBoss5

Posted by howmanyi 
Nginx1.2.8-JBoss5 vs Apache2.4 EventMPM-JBoss5
May 02, 2013 08:54PM
I am comparing Nginx's performance to Apache2.4 EventMpm's.

Four Jboss instances is load-balanced and proxied by upstream and proxy_pass in Nginx, and by mod_jk in Apache2.4.

I am stress-testing increasing 1 vuser/sec up to 130 vusers for 10 minutes.

I was supposed that Nginx's TPS is higher than Apache2.4, but the result is not.

What I found one thing is that total requests amount from Nginx to JBoss is much lower than from Apache to JBoss.

In Apache, one Jboss instance's currentThreadsBusy is abount 50,
but one Jboss instance's currentThreadsBusy is abount 25, half of Apache's case.

Established connections between client and WebServer(Nginx or Apache) is almost the same.

I think that incoming amount from Nginx to Jboss is lower and it makes lower TPS.

Is there the way to make Nginx' TPS higher?

The following is nginx.conf.

worker_processes 2;

events {
worker_connections 8192;
#multi_accept on;
}

upstream myproject {
server xxx.xxx.xxx.xxx:8080;
server xxx.xxx.xxx.xxx:8180;
server yyy.yyy.yyy.yyy:8080;
server yyy.yyy.yyy.yyy:8180;
}

location ~ \.jsp$ {
proxy_pass http://myproject;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}

location ~ \.mcifm$ {
proxy_pass http://myproject;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 207
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready