LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-21-2011, 05:35 PM   #1
razzera
Member
 
Registered: Dec 2009
Posts: 105

Rep: Reputation: 15
memory question


Hey

Im having a CentOS server with 2GB memory that is currently getting loads of traffic to the websites it's hosting, so much that i can se the memory spike to about 100% most of the time in htop, is there some way i can se if this is cause any kind of problem for the server itself ?

i se a lot of [Mon Feb 28 06:18:57 2011] [notice] Graceful restart requested, doing restart in the error logs, is the memory issue causing it ?

Last edited by razzera; 03-21-2011 at 05:37 PM.
 
Old 03-21-2011, 05:48 PM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Maybe a script requires too much memory.
What else are you using on this server?
cPanel? Webmin? Whatever?
 
Old 03-21-2011, 07:16 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Seems correct. 2G ram on a server running a hit web server would be trashed.

It should never request a shutdown. I'd look at temps.
 
Old 03-22-2011, 02:26 AM   #4
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Nope, jefro, the server is not requesting a shutdown: it's a warning of apache that encounter some memory leak and request a "graceful restart".
A graceful restart of apache can be done without completely restarting httpd: "The USR1 or graceful signal causes the parent process to advise the children to exit after their current request (or to exit immediately if they're not serving anything)." From: http://httpd.apache.org/docs/2.0/stopping.html#graceful
In this way httpd can keep itself alive and working without having a real stop or service failure.

Last edited by Slackyman; 03-22-2011 at 02:28 AM.
 
  


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
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
Memory Question Mistro116@yahoo.com Linux - Hardware 1 12-14-2005 02:45 PM
Question about memory alltime General 1 04-19-2005 10:54 PM
Memory Question ?? BajaNick Linux - Hardware 8 12-15-2004 12:34 AM
memory question true_atlantis Linux - Newbie 2 10-30-2004 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:56 AM.

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
Open Source Consulting | Domain Registration