Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with memory concerning apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fosstux
Apprentice
Apprentice


Joined: 01 Oct 2002
Posts: 274
Location: Vienna, Austria

PostPosted: Thu Jun 17, 2004 9:48 am    Post subject: Problems with memory concerning apache Reply with quote

Hi!

I'm using Apache 2.0.49 with PHP 4.3.4.

When running my servers including apache2 my memory is about 95% full and the swap is being used.

When I stop my apache2, I suddenly have approx 80MB free :?. How can that be?

I also have noticed multiple instances of apache2 in my ps ax list (I had a maximum of 12!!!) Why that?

Please help.

Thanks in advance!
_________________
Windows = a 64 bit rewrite for a 32 bit extension to a 16 bit GUI on an
8 bit OS written for a 4 bit architecture by a 2 bit company who can't
stand 1 bit of competition.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Jun 17, 2004 1:50 pm    Post subject: Reply with quote

Try reducing the number of child processes Apache spawns (see the StartServers, MinSpareServers, and MaxSpareServers directives in /etc/apache2/conf/apache2.conf - look up the Apache manual). Do that only if you don't have many requests on the server.
As to the memory footprint - try compiling less stuff into PHP, that's usually the main culprit. I never compile more extensions into it than I really, really need.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum