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 bloat on file upload with mod_fcgid + PHP
Author
abhaga



Joined: 09 Sep 2010
Posts: 2

PostPosted: Thu 09 Sep '10 7:32    Post subject: Memory bloat on file upload with mod_fcgid + PHP Reply with quote

Hi,

I am running Apache 2.2.14/mod_fcgid 2.3.5 with PHP 5.2.6 in a openVZ based VPS. OS is Ubuntu Jaunty Server edition.

When a user uploads a file, for the duration of upload the apache process size remains fairly constant but right at the end of the request, it goes up by almost 4 times the file size. It seems like there is memory leak somewhere right at the end of request processing. I have tried setting different mod_fcgid params to no avail.

The same combination of Apache and mod_fcgid works fine on my local machine, a desktop Ubuntu Lucid - the process size never blows up. I have PHP 5.3 locally but as per my understanding, that should not matter.

Any pointers on how to resolve this would be really useful.

Regards,
Abhaya
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Thu 09 Sep '10 17:53    Post subject: Reply with quote

Do you have the same php setting on both servers? Do you use both time the same mpm?
Back to top
abhaga



Joined: 09 Sep 2010
Posts: 2

PostPosted: Thu 09 Sep '10 22:32    Post subject: Reply with quote

I am using worker MPM at both the palces.

Regarding PHP, as I mentioned the versions are different but the setup is more or less similar - it runs as a fastcgi separate process, uses APC. The memory usage of this process remains constant. It is the apache process handling the upload that blows up in size.

Could it have something to do with openVZ? The consumption increases right at the end of upload - right when data would be sent to fastcgi process through IPC.

Abhaya
Back to top


Reply to topic   Topic: Memory bloat on file upload with mod_fcgid + PHP View previous topic :: View next topic
Post new topic   Forum Index -> Apache