![]() |
Virtual Priver Server Problem - High CPU Resourcess Usage
Guys,
1. is it better to fix script or move into dedicated server? 2. How do I find my CPU resource usage via cpanel? 3. What is a safe CPU resource usage? Thanks |
Do you run Wordpress?
|
1) Perform optimisation if possible.. if you do have issue with lack of CPU within applications but have lots of memory you can do lot's of caching at various points within the stack to alleviate that.
2) Don't know.. if you have shell access use htop to check live resource usage 3) Depends on what application your running, ideally you'd want total CPU usage less than 100% at peak (by a decent margin) |
i run custom made script
|
Quote:
My site gets 35k hits avg. How is it sites like youporn can receive millions of hits and not have server problem.. jeez. im always hitting a wall. |
Quote:
that software is, is not letting go of native OS resources, like database handles, file handles etc.. or is doing something inefficient with SQL or files etc.. It is found that if you have to throw hardware at the problem, you delay the inevitable, throwing more hardware at the problem (unless you have a very special case). Quote:
Quote:
|
Quote:
|
Quote:
|
Quote:
Is there a way to stress test a script without having visitors? |
Quote:
|
Quote:
Is that 35k hits a day? It's probably time to move to a dedicated server if that's the case. |
Quote:
How much CPU usage do you guys use up? |
Quote:
The more important thing to monitor, is the amount of SWAP that is available ... Once you run out of SWAP, is when your server will start to bog down, connections will time out, it will start to seem unresponsive, and your load averages will begin to escalate quickly. When you see this beginning to happen - before it gets too out of hand - you can log into shell and run "top" to see what exactly is pulling your resources, and will give you a place to start in troubleshooting your issues. What type of a custom script are you running? Is it a scraping type of script? If so, an upgrade to a dedicated server (or a much beefier VPS at least) is probably in your near future, as scraper type scripts are very resource intensive, and depending on how many queries it is performing at a time, will quickly chew through the resources of a basic VPS. |
Quote:
|
Quote:
|
not enough info but your script might be the number one problem. What kind of site is it, db involved?
|
Quote:
|
Hostgaor is your problem - they've always capped cpu usage, forcing upgrades - get a decent vps.
|
Quote:
" your VPS is hovering between 64% and 99% idle with most usage" Not good huh? |
Quote:
|
How do you know you have high resource usage? Most likely it's just memory related.
cPanel eats a lot of ram, CentOS eats also a lot more than Debian for example, and cPanel only runs on it. I would suggest moving to a control panel with a lower memory footprint. Or no control panel at all, a managed solution. HostGator's site is down for me, but I believe their VPS is OpenVZ, it's not real full virtualization, you don't have swap either. XEN VPS would work better for your needs. You could let someone take a look at your MySQL and optimize it. Maybe upgrade to PHP 5.4, it improves memory footprint and is MUCH faster than 5.3. Is it out yet for cPanel, or do they still claim it's 'experimental'? |
Enter via SSH and type "top" to see the activity.
Then type "free -m" to see memory usage. Post the values. |
35k/day isn't much at all, most likely there is some flaw in the script... if the script is poorly designed it will only get worse and worse as you add more content and/or traffic, and you will have to revisit this same problem every few months... it will be cheaper long term to just fix the script... :2 cents:
|
All times are GMT -7. The time now is 12:32 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123