logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: memory of the Apache process increase
Author
reidak



Joined: 07 Jul 2006
Posts: 12

PostPosted: Fri 07 Jul '06 11:29    Post subject: memory of the Apache process increase Reply with quote

Hi all,

I updated from Apache 2.0.50 to Apache 2.2.2 on Windows 2000 server SP4 and php 4.4.2.
The system runs since two days and the memory of the Apache process had increased from 20 MB to 170 MB until now.
Is this normal?

--- part of httpd.conf ---
ThreadsPerChild 250
MaxRequestsPerChild 0
EnableMMAP off
EnableSendfile off
Win32DisableAcceptEx
--------------------------

Thanks,
reidak
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3056
Location: Hilversum, NL, EU

PostPosted: Fri 07 Jul '06 11:35    Post subject: Reply with quote

Looks not that much for me.

We are running with 2Gb memory and when Apache starts it consumes about 20 Mb and it grows in time to about 280 Mb and stays on that value.

Special php is allocating memory in time, it is wellknown that php leaking some.

Steffen
Back to top
Jorge



Joined: 12 Mar 2006
Posts: 376
Location: Belgium

PostPosted: Sat 08 Jul '06 14:36    Post subject: Reply with quote

Steffen wrote:
Looks not that much for me.

We are running with 2Gb memory and when Apache starts it consumes about 20 Mb and it grows in time to about 280 Mb and stays on that value.

Special php is allocating memory in time, it is wellknown that php leaking some.

Steffen


This is the down side of MPM_WINNT, it only has a parent and a child process.
On some UNIX mpm's the child process get killed afther xx request and a new one is spawned freeing the lost memory... on windows this operation is to expensive.

Something simular can be accieved by setting:
MaxRequestsPerChild 250
or asome other value having it on 250 should make the child die and a new one to spawn once every thread 250 aswel) have served one request. settings it to 500 or 1000 should be better i think but i haven't played with this mutch since it will hurt the server's preformance a bit once the child dies and is recreated
Back to top


Reply to topic   Topic: memory of the Apache process increase View previous topic :: View next topic
Post new topic   Forum Index -> Apache