24, July 2008

CPU usage on Linux - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: CPU usage on Linux
« previous next »
Pages: [1] Print

Author Topic: CPU usage on Linux  (Read 831 times)
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« on: Jan 15, 2007, 03:02:53 PM »

My proxy sites are getting some major traffic today, so much that it's crushing my server. I see the CPU usage listed at 168 at the moment and the sites on the server are almost not responding at all. What does the 168 CPU usage mean? I know its not % as in windows. I'm a real noob when it comes to Linux...


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #1 on: Jan 15, 2007, 03:04:30 PM »

Try the top command which will show % for CPU usage and more stats (processes, memory usage, swap file usage, etc.)

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #2 on: Jan 15, 2007, 03:19:15 PM »

top shows me a CPU usage of 94% and I see warnings about the temperature threshold being reached Sad


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #3 on: Jan 15, 2007, 03:25:57 PM »

That may be a hardware problem. Contact your host to be sure on that.

As the site uses a cgi proxy it is common to have so much CPU usage. The only thing you can do to reduce that, is mod_perl but it is a little hard to install it....

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #4 on: Jan 15, 2007, 03:32:12 PM »

There is something I have to do, because now the websites are not responding at all. And I thought I would be ok for a while with a INTEL P4 3.0GHz HT and 2GB of memory...


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #5 on: Jan 15, 2007, 03:35:51 PM »

You need to restart the server, and then check the apache error_log to see what happened. If there is no message there, then propably your server can't deal with the traffic, so you will have to find ways to optimize it (or upgrade)

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #6 on: Jan 15, 2007, 03:38:25 PM »

What about the mod_perl? I can select an option 'mod_perl support' on my domains so I guess it is already installed on the server. After enabling it for the domains do I have to do anything else to make it work?


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #7 on: Jan 15, 2007, 03:53:29 PM »

What about the mod_perl? I can select an option 'mod_perl support' on my domains so I guess it is already installed on the server. After enabling it for the domains do I have to do anything else to make it work?

Yes you need to add some directives per domain to use mod_perl per script.

Here is an example :

Code:
<FilesMatch "\.((nph|n)-?)(pl|perl)">
        Options +ExecCGI
        SetHandler perl-script
        PerlSendHeader Off
        PerlHandler Apache::PerlRun
</FilesMatch>

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #8 on: Jan 15, 2007, 05:39:21 PM »

Where do I do this? Like I said before I am a Linux noob  Embarrassed


Last blog : Are You Stumbling Yet?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Jan 15, 2007, 08:27:15 PM »

Where do I do this? Like I said before I am a Linux noob  Embarrassed
I'm using mod_perl with my plesk machine, but check this link for more information:

http://www.webhostgear.com/371.html Visit through proxy

(check the info at the end to check if mod_perl is enabled)


Last blog : 4th of July Lottery from TemplateMonster.com
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=5617
Tags : CPU usage linux Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: CPU usage on Linux
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 24, 2008, 11:43:05 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.717
Total Topics: 7.379
Total Members: 3.711
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Asimina

30 Guests, 4 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.