Server Load ???

  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Joined: Mar 08, 2005
  • Posts: 179
  • Loc: Clermont, FL
  • Status: Offline

Post April 4th, 2005, 7:06 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 4th, 2005, 7:06 pm

  • omirix
  • Banned
  • Banned
  • User avatar
  • Joined: Jul 23, 2004
  • Posts: 129
  • Loc: 127.0.0.1
  • Status: Offline

Post April 4th, 2005, 9:18 pm

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
  • No Avatar
  • Joined: Oct 30, 2004
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse
  • Status: Offline

Post April 4th, 2005, 11:57 pm

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)
Andrew - http://www.cartikahosting.com
Business Grade, Clustered Application Hosting
Windows, Linux, Coldfusion, FreeBSD, MS Exchange and Dedicated Servers
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post April 5th, 2005, 5:40 am

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?
"It's always a long day, 86,400 won't fit into a short."
  • rDolay
  • Expert
  • Expert
  • No Avatar
  • Joined: Jan 16, 2004
  • Posts: 541
  • Status: Offline

Post April 5th, 2005, 10:07 am

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..
Best Wrist Watches
  • CartikaHosting
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Oct 30, 2004
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse
  • Status: Offline

Post April 5th, 2005, 10:53 am

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.
Andrew - http://www.cartikahosting.com
Business Grade, Clustered Application Hosting
Windows, Linux, Coldfusion, FreeBSD, MS Exchange and Dedicated Servers
  • rDolay
  • Expert
  • Expert
  • No Avatar
  • Joined: Jan 16, 2004
  • Posts: 541
  • Status: Offline

Post April 5th, 2005, 11:45 am

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...
Best Wrist Watches
  • CartikaHosting
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Oct 30, 2004
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse
  • Status: Offline

Post April 5th, 2005, 12:06 pm

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...
Andrew - http://www.cartikahosting.com
Business Grade, Clustered Application Hosting
Windows, Linux, Coldfusion, FreeBSD, MS Exchange and Dedicated Servers
  • rDolay
  • Expert
  • Expert
  • No Avatar
  • Joined: Jan 16, 2004
  • Posts: 541
  • Status: Offline

Post April 5th, 2005, 1:40 pm

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.
Best Wrist Watches
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Joined: Mar 08, 2005
  • Posts: 179
  • Loc: Clermont, FL
  • Status: Offline

Post April 5th, 2005, 9:07 pm

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
  • No Avatar
  • Joined: Jan 16, 2004
  • Posts: 541
  • Status: Offline

Post April 5th, 2005, 9:12 pm

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
Best Wrist Watches
  • CartikaHosting
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Oct 30, 2004
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse
  • Status: Offline

Post April 5th, 2005, 9:15 pm

What game are you running? Any set specifications and benchmarks on this game?
Andrew - http://www.cartikahosting.com
Business Grade, Clustered Application Hosting
Windows, Linux, Coldfusion, FreeBSD, MS Exchange and Dedicated Servers
  • PHP_Guru
  • Graduate
  • Graduate
  • User avatar
  • Joined: Mar 08, 2005
  • Posts: 179
  • Loc: Clermont, FL
  • Status: Offline

Post April 5th, 2005, 9:16 pm

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
  • Joined: Mar 08, 2005
  • Posts: 179
  • Loc: Clermont, FL
  • Status: Offline

Post April 5th, 2005, 9:17 pm

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
  • Joined: Mar 08, 2005
  • Posts: 179
  • Loc: Clermont, FL
  • Status: Offline

Post April 5th, 2005, 9:20 pm

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.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 5th, 2005, 9:20 pm

Post Information

  • Total Posts in this topic: 26 posts
  • Users browsing this forum: No registered users and 37 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.