Last week my visitors were increased and memory usage crossed 90% and server loads jumps from 0.90 to 150+ and sever gets down at that time total ram for server was 2 gb now i increased the ram and now the total ram is 4gb im seeing right now there are max ever visitors on the site and still sever load is below 0.50 i want to know that if i there is anyfurthure overloading in server and server gets down should i go for increasing ram , how much max ram will be ok And right now server memory usage is reaching 75% so should i increase ram or add 100mb switch port. im on linux server Thanks
what's the service that consuming much of your resources? can you check 'top' and 'ps aux'? EDIT: I hope you're not being DDOS. you can also check with netstat the list of IPs that are connecting to your box
No i know it was not DDos bcoz i can see increase in visitors in google analytics Visitors are much better than before Plz reply to 1st post.
You probably need to optimize your current site before you think about investing in more hardware. First step in doing that is to find out what is causing the increased memory usage and load. Is it PHP? Perl? or just the sheer number of connections? Maybe there are a lot of images being accesses? Apache can be a hog for simple content such as images and static pages. May want to strip any such stuff and move it to a lightweight web server. That would leave your current server to concentrate on the static stuff. If you're past all that, then it's time to think about multiple web servers, round-robin load balancing etc.
The memory was again reached to 85% even though i increased 2 gb ram total 4 gb and i added 100 mb switch port no doube traffic is also increasing so should i go for furthure update of ram or go for another server Till now what im looking is server load is not jumping above 1 and is there any way i can know when the server load was max and how much it was and even memory usage
I was running into issues with my CPU pegging out at over 100% and RAM shooting into the high 90's.. I upgraded from Apache 1.3 to Apache 2.0 and also installed a PHP Optimizer .. after doing these two things, i have not seen CPU usage go over 2% - it was adding the PHP Optimizer that made the biggest difference. of course these things will probably only help if you're running a PHP based CMS ..
Remember Linux takes all ram to make cache. The memory usage depends on what you are doing on server. What kind of script are you using? Have you optimized the script, apache, mysql? How many visitors do you have per day? And at one time?
install hotsanic - google hotsanic install guide. Its very helpful with finding peak periods and how the server handles it, then you can modify configurations depending on how the server is handling it.
Thanks a bucnh, it really worked for me will u tell me why im getting this message ---------- httpd failed @ Thu Dec 25 19:19:08 2008. A restart was attempted automagically. Failure Reason: Unable to connect to port 80 -------------
Try to find out any other software using port 80 already. I have seen some Exim servers taking port 80, so Apache can not restart