Koozali.org: home of the SME Server

(solved) My SME 7.0 server hungs every day!!

Offline jmarcosm

  • ***
  • 59
  • +0/-0
(solved) My SME 7.0 server hungs every day!!
« on: December 14, 2006, 05:40:49 PM »
I´m realy worry about this problem. My server SME 7.0 hungs every day.

The problem is the following:

My hard disk LED indicator start to light continuosly.
The system start to work very low.
I run top at the console and observe that the free space swap shows "0"
Also I observe the kswapd0 process at the top of the top list.
After 20 minutes waiting , I have to reset the box. After the reset the following warning appears in the messeges log:

Dec 14 12:23:25 huilem squid[3802]: WARNING: newer swaplog entry for dirno 0, fileno 00003921 .

About 200 of this warnings with diferent fileno.

I´m not a linux expert. Sombody can give my a hand with this?

Thanks in advance

Marcos Migliorini
...

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
(solved) My SME 7.0 server hungs every day!!
« Reply #1 on: December 14, 2006, 05:56:24 PM »
Marcos

I suggest you to show us some information.
Start with free space by do this:
Code: [Select]
df -h
and show if your swap partition is active by
Code: [Select]
cat /proc/swaps
show inodes and space do you have on that disk
Code: [Select]
tune2fs -l /dev/md1|grep -i free
and finally told us about your memory:
Code: [Select]
free -m

After this we can think how to start to help you.

Thanks

Jáder
...

Offline jmarcosm

  • ***
  • 59
  • +0/-0
(solved) My SME 7.0 server hungs every day!!
« Reply #2 on: December 14, 2006, 06:33:13 PM »
Jáder,

Thank you very much for your help!

This are the results of you sugested commands:

[root@huilem log]# df -h
S.ficheros          Tamaño Usado  Disp Uso% Montado en
/dev/mapper/main-root
                       76G  9,7G   62G  14% /
/dev/md1               99M   25M   69M  27% /boot
none                  125M     0  125M   0% /dev/shm

-------------------------------------------------------------------

[root@huilem log]#  cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/mapper/main-swap                   partition       262136  78420   -1

--------------------------------------------------------------------
root@huilem log]# tune2fs -l /dev/md1|grep -i free
Free blocks:              75756
Free inodes:              26049
--------------------------------------------------------------------

[root@huilem log]# free -m
             total       used       free     shared    buffers     cached
Mem:           248        232         16          0         10         38
-/+ buffers/cache:        183         65
Swap:          255         76        179
--------------------------------------------------------------------

As you can see everything looks normal after the reset. This happend to me every day.

Any advice?
...

Offline slords

  • *****
  • 235
  • +3/-0
(solved) My SME 7.0 server hungs every day!!
« Reply #3 on: December 14, 2006, 07:03:16 PM »
Quote from: "jmarcosm"
[root@huilem log]# free -m
             total       used       free     shared    buffers     cached
Mem:           248        232         16          0         10         38
-/+ buffers/cache:        183         65
Swap:          255         76        179
--------------------------------------------------------------------

As you can see everything looks normal after the reset. This happend to me every day.

Any advice?


May act fine but you are already using 76Mb of swap.  Also not sure what you are running but 256Mb might not quite be enough.  Memory is cheap and putting in 1Gb of ram wouldn't hurt.  Also if you are running any extra/additional software on the server there may be a memory leak.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
(solved) My SME 7.0 server hungs every day!!
« Reply #4 on: December 14, 2006, 09:03:26 PM »
I agree with Shad Lords

Quote
May act fine but you are already using 76Mb of swap. Also not sure what you are running but 256Mb might not quite be enough. Memory is cheap and putting in 1Gb of ram wouldn't hurt. Also if you are running any extra/additional software on the server there may be a memory leak.


You appears to have low memory and a growing swap file... that´s never a good thing.

And you also can install SysMon (I do not tryed this at SME7 yet, but use it a lot on diagnosing problems on SME6).

Jáder
...

Offline jmarcosm

  • ***
  • 59
  • +0/-0
(solved) My SME 7.0 server hungs every day!!
« Reply #5 on: December 14, 2006, 09:11:09 PM »
Thanks Shad and Jader for the advice.

I´m traying to find dimm memory for this server. Is a P III 1Ghz and is very difficult to find 2 x 512 Mb of dimms in Argentina!!!
Maybe I have to change the box with a new one.

Thanks again and when I have resolved this I will inform you the results.

Marcos Migliorini
...

Offline mmccarn

  • *
  • 2,656
  • +10/-0
(solved) My SME 7.0 server hungs every day!!
« Reply #6 on: December 15, 2006, 02:32:22 PM »
I had similar grind-to-a-halt problems on 2  PIII 933MHz systems - one with 256MB RAM, one with 192MB.

After some discussion on the forum http://forums.contribs.org/index.php?topic=34420.0  I disabled spamassassin and rhsbl checking on both boxes and the problem went away.

Since these boxes are both passing email to an Exchange 2003 with "Intelligent Message Filtering" enabled I haven't suffered much from disabling spamassassin.

Offline jmarcosm

  • ***
  • 59
  • +0/-0
(solved) My SME 7.0 server hungs every day!!
« Reply #7 on: December 18, 2006, 06:45:32 PM »
Hi,

Definetly was the ram. I have Installed 512 Mb and every thing is working
find.

Thank you very much Shad & Jáder for the help!!

Let me say that I´m running spamassassin , clamav, and the wildfire jabber server. Is to much for a 256 mb ram.


thanks again

Marcos
...