I have an Ubuntu with nginx/php on it with couple of virtual hosts.
The problem is, that after some time all sites are horribly laggy and then I got "404 Not Found", when the files are there.
If I do "service nginx restart", everything backs to normal.
I don't really know wheres the problem (nginx or php maybe?), and how to check that. I'm guessing that its because my server run out of sockets that handle the connections, but I have a really strong machine when there is fairly small traffic so it could handle it all on all 3 sites with no problem.
The RAM is used in like 20-20% and there is ~65% storage left on partition. Could someone help me with analyzing and fix my problem?