Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th June 2008, 17:15
gral gral is offline
Member
 
Join Date: Jan 2007
Location: Argentina
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to gral
Default Server hangs out for ran out of the swap space.

hello ev1;

for five day in a row my server hangs out ( i cant enter on it, but still with ping) because is ran out of the swap space always at the same time. Is a server with 2 Gb of ram and four 4 Gb of swap and only receive http request

Could be a memory problem, yesterday i disable the omm-killer what i saw it in the logs but with not luck, the server continue hangs every night.

I'll ask to the DC a change of the physicals mem .

Have anyone any idea to stop the hangs ?.

Thanks if you need futher information please let me know.

Regards!
__________________
Sorry for my englisH!
Reply With Quote
Sponsored Links
  #2  
Old 12th June 2008, 18:10
chipsafts chipsafts is offline
Senior Member
 
Join Date: Nov 2007
Posts: 184
Thanks: 2
Thanked 6 Times in 6 Posts
Default

how about setting a cron job to clean out the swap space and/or restart the httpd service.
Reply With Quote
  #3  
Old 12th June 2008, 20:14
gral gral is offline
Member
 
Join Date: Jan 2007
Location: Argentina
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to gral
Default

hello chipsafts thanks for quickly answer but, in which way i can clean my swap memory ?

I have a cron already controlling the httpd process ?

Other way i was thought is limitds de httpd process in the /etc/security/limits.conf , could be good ?

Many thanks!
__________________
Sorry for my englisH!
Reply With Quote
  #4  
Old 12th June 2008, 23:18
chipsafts chipsafts is offline
Senior Member
 
Join Date: Nov 2007
Posts: 184
Thanks: 2
Thanked 6 Times in 6 Posts
Default

presuming your swap is called /tmp ,
at the command line do
Code:
ls -l /tmp  | head -21
copy and paste the results in a reply. Seeing a subset of the files being created might help.
Reply With Quote
  #5  
Old 12th June 2008, 23:42
gral gral is offline
Member
 
Join Date: Jan 2007
Location: Argentina
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to gral
Default

As far as i know my swap is a single partition; here is my /tmp output and added the df and fdisk -l output too.

Code:
root@server1 ~]# ls -la /tmp  | head -21
total 28
drwxrwxrwt   3 root   root   4096 Jun 12 18:05 .
drwxr-xr-x  24 root   root   4096 Jun 12 18:03 ..
-rw-r--r--   1 root   root     34 Jun 11 04:35 errores_sushiclean.txt
drwxrwxrwt   2 root   root   4096 Jun 12 18:03 .ICE-unix
srwx------   1 root   root      0 Jun 12 18:05 .racoon
-rw-r--r--   1 nagios nagios    0 Jun 12 18:33 tables
-rw-r--r--   1 root   root   2077 Jun  2 12:43 tcpdump

[root@tserver1 ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3            113267944  35458020  72056248  33% /
/dev/hda1               101086     17527     78340  19% /boot
none                   1037476         0   1037476   0% /dev/shm
[root@server1 ~]# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14         267     2040255   82  Linux swap
/dev/hda3             268       14593   115073595   83  Linux
Hope it help for a solution.

Thanks
__________________
Sorry for my englisH!
Reply With Quote
  #6  
Old 13th June 2008, 17:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can your run
Code:
top
and check which applications are eating up your memory?

Did you optimize Apache? http://www.howtoforge.com/configurin...um_performance
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What can be wrong martin_rudowicz Installation/Configuration 9 11th May 2008 19:42
postfix bounced email question daveb Server Operation 8 3rd February 2008 20:32
Moving to new server - lessons learned wpwood3 Tips/Tricks/Mods 0 5th November 2007 05:12
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44
550-The recipient cannot be verified email problem safoo Installation/Configuration 7 29th November 2006 19:55


All times are GMT +2. The time now is 11:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.