I don't know if this is the right place to be posting this thread, but I have been having problems with my sites often crashing of late during peak times and my server load spiking way higher than it should go (I think) which is cause many of my visitors to find that my site's pages are timing out and not loading and occasionally the sit eis crashing all together. I'm currently on a VPS and running mainly forums and topsite scripts, I was wondering what I can do to reduce my server load and/or increaase the load which my site can handle?
These are my suggestions: Prevention of Server Overload. 1. Check all your scripts and codes and sanitize and recodes scripts that are loose 2. Check your mysql queries of they are not requerying everytime the visitor access the same information. 3. Separate Mail Server from Webserver Increase of Load Handled 1. Upgrade to a higher pc specs. 2. Ad Memory Hope it Helps
Thanks for your response I appreciate it. As for checking my scripts etc - I'm not very good at coding anything and any scripts I use are not created by myself... so I wouldn't even know what I was looking at, same goes for the MySQL queries... again I don't know much about these things. Please if you know any good sources of information about them I'd love to read them. Also can I ask what is the benefit of seperating the Mail Server from the Web Server?
All that i can give is this google keyword "php linux code optimizer" and "php mysql code optimize" and it will show a bunch of help which will cater to the specific optimization you needed for your codes, it even points you to other forum. The benefits of Mail and Web Server Separation: 1. You can isolate problems easily as you can pinpoint and easily fix where the problem came from if it is from a mail bombardment or webserver bombardment. 2. Mails can be delivered fast and the resolution of the destination of the email would be on itself alone, not affecting the resolution of the webserver. 3. You can restart services without affecting other services hosted. 4. Security Combination of the two are ok, but if you got a large quantity of visitor, a dedicated webserver and mailserver can do a lot to handle the traffic or the load. Hope it Helps
Thanks again, but it looks like the techies over where I host my site have said that I need to upgrade to a dedicated server to solve most of my problems. I thought that that might have been the case because only real trouble I have is when my site hits the peak period and then it packs it and dies. That said I'm currently getting over 5000 unique visitors a day - I'm not sure if that warrents a dedicated server but I have been told that if you getting around 3,000 a day it's worth looking into. Well hopefully this will solve the issue and it will allow me some growing room. Thanks again for the help.