Right now I have 1000 concurrent users online. But my site is very slow. I could have 8000 concurrent users, but the server can't handle the traffic, and I'm losing visitors.
My server is a VPS server:
Dedicated CPU
7.2GHz
RAM
4512MB
The memory usage is way below the available resources. (right now 632 MB) What should i do? Should i configure the apache server? If yes, how? What about caching, maybe memcached?
This is a virtual server, built up from nodes, each node representing 600 Mhz cpu and 376MB ram.
I'm running a website on it built with php and mysql.
Best Answer
Benchmark, benchmark, benchmark. That's the only solution. There are a million things that can make a website slow. Here's what I would do:
mysql(i)_
functions all over the place, then jump down two bullits.This is just what I would do. Every step depends very much on the results you got in the previous step. There is no generic advice that we can give you. Just benchmark, benchmark, benchmark and refactor your code and server setup accordingly.