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)
-   -   Apache2 fills my memory and my swap! (http://www.howtoforge.com/forums/showthread.php?t=31123)

batman 9th February 2009 11:08

Apache2 fills my memory and my swap!
 
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.

falko 10th February 2009 17:29

I think you should check all your web applications. Maybe some of them have memory holes. You can also optimize apache as follows: http://www.howtoforge.com/configurin...um_performance


All times are GMT +2. The time now is 12:13.

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