Server Load ???

  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

How Do I Decrease My Server Load?

Steps Ive Taken:
-Removed All Double Connections
-Removed All Large MySQL Querys
-Setup Cron Jobs

Any Ideas? Im On A Good Dedicated Server, Still My Server Load Is:

Server Load: 5.45 (RED DOT)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • omirix
  • Banned
  • Banned
  • User avatar
  • Posts: 129
  • Loc: 127.0.0.1

Post 3+ Months Ago

Okay... try to find scripts running... and take off the ones you don't need for your website... also, unneeded tasks. use:

ps -ai

to find processes...

kill -9 [process id]

to kill that process
  • CartikaHosting
  • Proficient
  • Proficient
  • CartikaHosting
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse

Post 3+ Months Ago

Although the commands given above are correct - Can we have some more information..

What OS are you running? Which Control Panel if any? Which application? How much bandwith are you pushing? Whats your CPU power, how much Ram?

Are you running DB apps? Do you have any sites running p_connect?

If you have DB sites and youre on a linux box - run this command

mysqladmin -p processlist

See if you have any sleeping processes and how many and which ones...

Again - running the commands given by omirix will help immediately - however, if you want to prevent this - you should run some diagnostics and determine what is causing the load.. (Im guessing youre running p_connects - but really, this is just a shot in the dark - it could be any number of things)
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Agreed.

Running around willy nilly with a kill -9 is not a good idea.

I will assume this is Linux or some *nix derivative. I will also assume, that since this is dedicated, you have some command line access.
As such, I would execute a 'top' command to find the largest offender. I would also grab lsof from freshmeat.net and run that; it show all open files by process and the communication of each.
Do you have any java procs running which could have gone into thread death-spiral?
If you reboot the node does it come back to full load? Or does it drop to a more reasonable level?
  • rDolay
  • Expert
  • Expert
  • rDolay
  • Posts: 541

Post 3+ Months Ago

if you tell us your specifications, would be more helpfull
CPU?
RAM?
DISK(scsi, raid0,5..)?
OS?
Control Panel?
Is it for your personal usage or commercial(selling hosting)?

5 load is not a high load if this server is a dual xeon but..
  • CartikaHosting
  • Proficient
  • Proficient
  • CartikaHosting
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse

Post 3+ Months Ago

Quote:
5 load is not a high load if this server is a dual xeon but..


Id say if you have a sustained load of 5, you are in trouble... Occassional peaks upto 5 are on thing - its really a load average you're after.

Intel specs call for a maximum average load of 1.0/CPU.
  • rDolay
  • Expert
  • Expert
  • rDolay
  • Posts: 541

Post 3+ Months Ago

CartikaHosting wrote:
Quote:
5 load is not a high load if this server is a dual xeon but..


Id say if you have a sustained load of 5, you are in trouble... Occassional peaks upto 5 are on thing - its really a load average you're after.

Intel specs call for a maximum average load of 1.0/CPU.

1 load means %100 usage of a CPU, Intel Dual Xeon s have 4 CPU(2 real + 2 virtual) so 5Load means about %125 usage for the intel xeon server.
If you are seeing this load on a dual xeon that have the total 2mb cache you do not have to panic, but if you are seeing this load on a celeron yes panic then...
  • CartikaHosting
  • Proficient
  • Proficient
  • CartikaHosting
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse

Post 3+ Months Ago

Hi dolay,

Though I completely understand what you are syaing - dual xeon, hyperthreading, etc... You really cannot look at this as a 4 CPU system...

We run dual xeons on every server in our cluster. and I can assure you there is a noted performance hit when the load exceeds 1 and another one when the load exceeds 2 and so one. Heck, when our backups are run in the middle of the night - with practically zero load except for the backups - the loads peak around 4 - and this isnt a pretty picture WRT performance... What are you going to do though - backups are important - and they only take 15 mins or so - but - the systems sure do take a performance hit...

The relationship with load is not linear with multiple CPU boxes - call it "friction" if you like...dual processor does not directly equate into 100% utilization at 2 - its more like 100% utilization at 1.5

Even in a dual xeon environment - if our average load begins to approach 1, we're adding more servers to the cluster... The last thing you want to be doing is running an environment at a sustained 100% load - this is like taking a cross country road trip pedal to the medal - eventually that engine will burn, or something else will be knocked loose...
  • rDolay
  • Expert
  • Expert
  • rDolay
  • Posts: 541

Post 3+ Months Ago

1 load means 100% usage of the CPU, 5load means %500 usage of a CPU and %125 usage of a Dual Xeon(all Dual Xeons are default HT already) . This load description is exactly based on this formula but have not anymore meaning.
When it comes to the server performance, Load is not the heck, a server load maybe under 1.00 always but this server could messed with so many applications which are using MySQL if the server HD is not a SCSI or SCSI Raid0 ..

The thread owner asked
Quote:
How Do I Decrease My Server Load?

Steps Ive Taken:
-Removed All Double Connections
-Removed All Large MySQL Querys
-Setup Cron Jobs

Any Ideas? Im On A Good Dedicated Server, Still My Server Load Is:

Server Load: 5.45 (RED DOT)


To gave a reliable answer to him we firstly have to learn the specifictions of the
Quote:
CPU?
RAM?
DISK(scsi, raid0,5..)?
OS?
Control Panel?
Is it for your personal usage or commercial(selling hosting)?


because server performance is not just based on CPU even in those days server performance mainly based on HardDisk speed since MySQL applications become so popular.
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

CPU: 1.7 Xeon
RAM: 512mb
Disk: vzfs
OS: Fedora (Linux)
Cpanel: cPanel X
Bandwidth: 2gig / Day (60-75/mo)

I Run: 0.99 -> 5.12 Average.

0 -> 15 Members Online : 1.5 Load
16 -> 30 Members Online: 2 -> 6 Load
Anymore And She'd Pop.

Not Personal Or Ecommerce, Just An Online Game.

I Know Its not Alot, But Its All I Can Afford--Im Only 15--I Basically Run My Site For Free. And Hey If She Pops Its Not My Problem? I Just Want My Speed Increased And My Game To Remain Stable.

AVERAGE LOAD: 3.12 (1 cpu) [Clocked Over 1 Hour, Every 10 Minutes]
  • rDolay
  • Expert
  • Expert
  • rDolay
  • Posts: 541

Post 3+ Months Ago

Your server is not bad, are you using it only for online gaming(as a game server)? otherwise it must be something wrong
0 -> 15 Members Online : 1.5 Load
16 -> 30 Members Online: 2 -> 6 Load
Anymore And She'd Pop.

but she have to handle :lol: 100x more online users with those values without popping , rotfl
  • CartikaHosting
  • Proficient
  • Proficient
  • CartikaHosting
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse

Post 3+ Months Ago

What game are you running? Any set specifications and benchmarks on this game?
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

Its Technically A VDS Server. But I Called The People Before I Bought The Server, They Said 3-5 Its Bad, But Ok, (Was 9 Before I Fixed The Problems).

Although I DOnt Care If She Pops, I Want My Members To Be Happy, After-all I Plan To Make This A #1 Game. Right Now Shes Ranked Avg. 10th Place On MMORPG Web Sites.

How Do I Run THose mysql Commands To Check Process Lists?

I Removed Alot Of My Querys That Were Runned On Every page, And Put Them In A Hourly Cron Job. That Dropped It 4-500% CPU Load.
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

CartikaHosting wrote:
What game are you running? Any set specifications and benchmarks on this game?


Army Nation: http://www.armynation.net

I Dont Understand What You Mean By: Benchmarks (and) Specs?
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

dolay wrote:
but she have to handle :lol: 100x more online users with those values without popping , rotfl


Trust Me, I Know This, Thats Why Im Trying To Fix My Errors, That Way Once I Start Rolling In The Coins, I Can Upgrade Without A Hassle.
  • rDolay
  • Expert
  • Expert
  • rDolay
  • Posts: 541

Post 3+ Months Ago

PHP_Guru wrote:
Its Technically A VDS Server..

ops . waitmn here, if it is a VDS then how do you know the VDS load that you cause? Can you be mixing here VDS and mainserver loads?
Whats your VDS specification?
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

dolay wrote:
PHP_Guru wrote:
Its Technically A VDS Server..

ops . waitmn here, if it is a VDS then how do you know the VDS load that you cause? Can you be mixing here VDS and mainserver loads?
Whats your VDS specification?


Heres How I Know My Load:

Image
  • CartikaHosting
  • Proficient
  • Proficient
  • CartikaHosting
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse

Post 3+ Months Ago

Do you know how many resources you have allocated on this VDS relative to the entire server?

I think you are operating with alot less then the specs you listed...
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

My Web Host Says:

Pentium 4 1.7 Ghz (No Xeon My Bad)
512 DDR RAM
20 GB UltraDMA HD
Unmetered Transfer
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

In Fact Here:

Image
  • rDolay
  • Expert
  • Expert
  • rDolay
  • Posts: 541

Post 3+ Months Ago

lol exactly as i guessed, it is not your VDS status, it is main server's status.
It is from a virtuozzo cPanel servers already too right?
1- Trying to run a game servers via VPS is a big fault
2- Your host is overselling the server(if the values always higher than 4 as you shot here), talk directly with them.

- The cPanel (WHM) can not show your bought VPS status, it is showing the main server status.
-Ther is nothing to do lower the main servers load by your self because VPS s are already arranged with min. Usage limitations by Virtuozzo Software. If your host is not overselling than it is impossible to be popped the main server load since all the VPS are limited with assigned CPU usages.
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

dolay wrote:
lol exactly as i guessed, it is not your VDS status, it is main server's status.
It is from a virtuozzo cPanel servers already too right?
1- Trying to run a game servers via VPS is a big fault
2- Your host is overselling the server(if the vlaues always higher than 4 as you shot here), talk directly with them.



Yes Its Virtuozzo.

Overselling The Server?
  • rDolay
  • Expert
  • Expert
  • rDolay
  • Posts: 541

Post 3+ Months Ago

did you get it directly from RackForce or what? :lol:
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

Yes Its Rackforce...?

Is There Something I Should Know Here? Please Enlighten Me.
  • rDolay
  • Expert
  • Expert
  • rDolay
  • Posts: 541

Post 3+ Months Ago

i am not allowed to comment on RackForce Service Quality...
But it is true that Virtuozzo assigns CPU+DISK+RAM usages to the VPSs
Ie. I have the the Dual Xeon 2.8 GHZ(tought it as 6GHZ total CPU speed) + 4 GBRAM + 140GB DISK server.
If i am not overselling this server then even i have soldout all the avaliable resources then even all the VPSs start to use all of their assigned CPU resources, at the end this server can not make more than 4 load because Virtuozzo dont let any VPS to exceed its assigned resources. (assuming the main server owner is not doing any backups or something like that temporary pop the main server)

Summary: You can not cause mainserver to overloaded as a VPS owner until mainserver owner oversolded the server
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Posts: 179
  • Loc: Clermont, FL

Post 3+ Months Ago

So Basically.

Im Getting Screwed Out Of Money.
My Server Can Never Be Normal Load?


Do You Have Any Suggestions For Hosts?
I Need A VPS Or VDS <100$

Post Information

  • Total Posts in this topic: 26 posts
  • Users browsing this forum: No registered users and 23 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.