LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-23-2005, 12:01 PM   #1
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Rep: Reputation: 15
Too high load, how to tweak?




How do I lower the load? The apache connections are eating up all my memory.


Now apache using 60MB per process??? What values should I try tweaking, anyone know?

Last edited by newlinuxnewbie; 10-23-2005 at 12:16 PM.
 
Old 10-24-2005, 01:26 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,783
Blog Entries: 54

Rep: Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978
The first thing I'd do is renice httpd so CPU cycles are freed for other tasks. What is more important is to find out *why* this is happening.

What version of Apache?
What else is running? PHP, MySQL, admin or forum software?
Did you check for all those apps if you're running the latest version?
Do you run the default httpd.conf / includes or what was customised?
Do you run mod_evasive and/or mod_security?
Are there errors in your syslog or application logs?
 
Old 10-24-2005, 01:33 PM   #3
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Original Poster
Rep: Reputation: 15
Apache 1.33
PHP4, MySQL 4.0.26
Everything running latest version
Default httpd.conf but this is a directadmin server
No mod_security
No errors found

Techs spent over 3 days and couldn't find the problem, I've spent countless time looking as well. I was able to reduce the iowait and load, but the swap memory is still being exhausted. Any idea how to find the problem?

I am looking into increasing the swap, would that help?
And how do I go about increasing cache size?
 
Old 10-26-2005, 09:33 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,783
Blog Entries: 54

Rep: Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978Reputation: 2978
this is a directadmin server
Does that mean you are a reseller?


Techs spent over 3 days and couldn't find the problem
From the hosting party or Directadmin? Do you have any report of what they looked into and tried? Would be a shame to dup efforts.


I was able to reduce the iowait and load
What except reboting did you do?


but the swap memory is still being exhausted.
If more memory is needed than the 1Gb that is available, and post-reboot shows aprox 3K vs 6K processes and knowing a default LAMP wouldn't hog memory like that, what shows if you shut down all the Directadmin components (in essence mimick a clean LAMP setup)?
 
Old 10-26-2005, 09:42 AM   #5
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Original Poster
Rep: Reputation: 15
Does that mean you are a reseller?
No, it is a dedicated server and directadmin is installed on it.


From the hosting party or Directadmin? Do you have any report of what they looked into and tried? Would be a shame to dup efforts.
From the datacenter and my server admin. The datacenter techs concluded not enough memory, my admin thinks its a memory leak but could not find where.


What except reboting did you do?
Did some trial and error with the mysql settings.


If more memory is needed than the 1Gb that is available, and post-reboot shows aprox 3K vs 6K processes and knowing a default LAMP wouldn't hog memory like that, what shows if you shut down all the Directadmin components (in essence mimick a clean LAMP setup)?
I don't know what you mean by 3K vs 6K processes and don't know what LAMP is or means. I am not sure if we've tried shutting off directadmin, but will try it and see if I could get any more performance out of the server.


Thanks!
 
Old 10-26-2005, 01:12 PM   #6
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Original Poster
Rep: Reputation: 15
Any experts can give advice?

Look at the differences between the 2 servers, they both have the same specifications, but why are their performance so far apart?

The good server, 1000+ processes, up 25 days, rock solid!


Terrible server, 100 processes, already using 500M of swap???
Ultra low load, iowait almost nothing, but memory is maxed out.



Both servers have:
Same specifications, CPU/RAM/HARD DRIVES/ETC.
Same values for httpd.conf php.ini my.cnf


What exactly is wrong?
Are there other files I could tweak besides the 3 mentioned above?
Please, any experts know??

Last edited by newlinuxnewbie; 10-26-2005 at 01:15 PM.
 
Old 10-26-2005, 01:54 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
You're running DeadRat on both of those machines?
Which kernel versions have you got on which one?


Cheers,
Tink
 
Old 10-26-2005, 01:57 PM   #8
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Original Poster
Rep: Reputation: 15
They're both running CentOS 3.5.
Kernel for both is 2.4.21-32.0.1.EL
 
Old 10-26-2005, 02:47 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Centos is close enough to DeadRat :-}

Have a look at this page, more specifically search
the page for kscand and tell me what you think ;}




Cheers,
Tink
 
Old 10-26-2005, 04:33 PM   #10
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Original Poster
Rep: Reputation: 15
Well this got my attention a little:
145950 - high loads / high iowait / up 100% cpu time for kscand on oracle box

But I am running the same kernel on the stable box and don't have any high loads / io wait issues on either server.

Would giving higher priority to httpd help in this situation?


Anyone know this question:
Besides these 3 files php.ini my.cnf httpd.conf are there another configuration file that could affect this?

Last edited by newlinuxnewbie; 10-26-2005 at 05:12 PM.
 
Old 10-26-2005, 06:03 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I don't use mysql, so can't say anything in regards to that.
For apache it depends on how you're organising your
configuration, there may be files per virtual host.

Are both servers running the same applications, too?


Cheers,
Tink
 
Old 10-26-2005, 09:33 PM   #12
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Original Poster
Rep: Reputation: 15
Both are running the same applications. Testing the RAM now, hope that's the problem but doubt it.
 
Old 10-31-2009, 11:09 AM   #13
linuxcares12
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Rep: Reputation: 1
Smile Reduce load due to httpd

See the below URLs. It has been very helpful. If you plan to install firewall, do remember to install only one - either CSF or APF.

Last edited by XavierP; 10-31-2009 at 01:56 PM.
 
Old 10-31-2009, 01:57 PM   #14
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Basil - as I have said before, if you have a useful answer to a thread post it in the thread. And don't resurrect ancient threads just to post a link to your site.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
High idle cpu load in 2.6.4? geekzen Linux - General 4 04-10-2004 12:54 PM
Why am I getting ?high? CPU load? pnh73 Linux - General 15 10-21-2003 11:36 AM
Linux keeps crashing under high load..help bruce1271 Linux - Hardware 14 06-06-2003 03:57 PM
high mysql load hardigunawan Linux - General 0 03-04-2003 02:43 AM
Unusually high load subhasis_ray Linux - General 5 09-17-2002 10:28 AM


All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration