HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Server hangs out for ran out of the swap space. (http://www.howtoforge.com/forums/showthread.php?t=24150)

gral 12th June 2008 18:15

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! :D

chipsafts 12th June 2008 19:10

how about setting a cron job to clean out the swap space and/or restart the httpd service.

gral 12th June 2008 21:14

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 ? :confused:

Many thanks!

chipsafts 13th June 2008 00:18

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.

gral 13th June 2008 00:42

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

falko 13th June 2008 18:36

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


All times are GMT +2. The time now is 09:14.

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