Status
Not open for further replies.

pi0tr3k

Active Member
3,055
2009
768
10
Hi,
I have a nice dedi but I'm pretty sure something is not well configured or w/e, because every time I get +150users online my forum goes down and I get Time Outs from nginx.

I'm using apache2 for platinumW, nginx for eih.bz.

How can I tweak my server to handle more users online? Is that the reason why I actually get the timeouts.

From the nginx error log:
PHP:
2012/01/18 14:29:11 [error] 30799#0: *749474 open() "/etc/nginx/html/wp-admin/images/wpspin_light.gif" failed (2: No such file or directory), client: 193.190.154.173, server: www.**********.info, request: "GET /wp-admin/images/wpspin_light.gif HTTP/1.1", host: "**************.info", referrer: "http://****************/wp-admin/post-new.php"
2012/01/18 14:29:12 [error] 30799#0: *749474 open() "/etc/nginx/html/wp-includes/js/thickbox/loadingAnimation.gif" failed (2: No such file or directory), client: 193.190.154.173, server: www.news-station.info, request: "GET /wp-includes/js/thickbox/loadingAnimation.gif HTTP/1.1", host: "news-station.info", referrer: "http://*************/wp-admin/post-new.php"

2012/01/18 15:46:04 [error] 30805#0: *830486 open() "/etc/nginx/html/images/10gpgr.jpg" failed (2: No such file or directory), client: 119.165.235.80, server: localhost, request: "GET /images/10gpgr.jpg HTTP/1.1", host: "176.31.246.17", referrer: "http://m1.16bt.info/p2p/07/11-07-08-18-46-47.html"
Any help will be appreciated!

Thanks
 
4 comments
From what I see in your error log, it just needs few files to be added to its location. as you can see, nginx can't find wpspin_light.gif and the other.

In my opinion those errors can't bring nginx down.

Dear,

How do you configure your server, how come you can use two webservers for those two sites?

Probably the apache is overloaded and making nginx unresponsive. It's just my opinion.


Check this site for further info to tweak nginx.

Code:
https://calomel.org/nginx.html

good luck
 
... Please provide other error_log notices.
All you showed now are 404 errors, which happen because those files aren't on your server.

edit:
As I've told you:
I don't think nginx is to blame for your errors.
You have timeout errors, if anything this shows that nginx isn't the problem.

Nginx gets it's data from apache2 ( since you use nginx solely for proxy purpose ).

Since Nginx says it has timeout errors, it's ( imo ) possible that apache2 just takes to long to process and Nginx doesn't want to wait.

You could:
a) Tell nginx to wait longer. ( Bad, since you don't fix anything )
b) Tweak apache2 ( Better, but tweaking is meant to improve an already working enviroment. I'm not sure your problem can be fixed by just tweaks [ I could be mistaken ] )
c) Fix whatever causes your high load with mysql, so that apache has breathing-space. ( IMO you should always fix high-loads before you fix anything else. You can't expect a server to run decent if you have services creating a load of 20+ on a modern dedi server like the one you have. Once the high-load issues are fixed it's very well possible that apache won't even get into trouble. And if it did, you can always fall back to b) and a) )
 
Last edited:
Status
Not open for further replies.
Back
Top