Apache2 fills my memory and my swap!

Discussion in 'Server Operation' started by batman, Feb 9, 2009.

  1. batman

    batman New Member

    Hi!

    I need help.
    Apache2 fills my memory and my swap , then the system is broken.
    Server version: Apache/2.2.9 (Debian), the system is up to date.
    I change apache2 version , but isnt help.

    I have 8GB memory and 8GB swap.
    If the swap is to big, i restarted the apache service and this solve the problem temporarily.
    A lite later the memory and swap usage again grow.
    I write a script, is wathcing the swap size, and if is bigger 6GB , restarted the apache2 service.
    But this isnt solved the problem, what fills my memory and my swap??
    How can i find it?
    I dont find any intresting in the logs.

    Maybe something else is wrong, i have php4 and php5.

    PHP 4.4.9 (cgi) (built: Nov 21 2008 20:18:11)
    Copyright (c) 1997-2008 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

    PHP 5.2.6-0.1~lenny1 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Nov 29 2008 21:29:30)
    Copyright (c) 1997-2008 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

    Sorry my english is not so good!
    Thx for help.
     
  2. falko

    falko Super Moderator Howtoforge Staff

Share This Page