Apache - Huge Memory Leak
Posted by: Backslider (190.118.222.---)
Date: November 29, 2012 05:05PM

I have just installed the latest Wampserver on a brand new Windows laptop.

Intermittently I am finding that my machine slows down significantly. Upon checking task manager I find that Apache is consuming over 5gb of RAM and I must shut it down and restart Wampserver.

I am not placing any significant load on the server when this happens.

Has anybody else experienced this? Is there a solution?

Options: ReplyQuote
Re: Apache - Huge Memory Leak
Posted by: RiggsFolly (---.as13285.net)
Date: November 29, 2012 11:25PM

Use the 32 bit WAMP instead of the 64 bit version

Options: ReplyQuote
Re: Apache - Huge Memory Leak
Posted by: Backslider (190.118.222.---)
Date: November 30, 2012 06:59AM

Upon what basis do you suggest that?

Options: ReplyQuote
Re: Apache - Huge Memory Leak
Posted by: stevenmartin99 (Moderator)
Date: November 30, 2012 07:08AM

Are you sure it's wamp? Iv looked at 1000's of issues in the last 5 years, never seen this.

It has to be a script problem or an extension you enabled...

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Apache - Huge Memory Leak
Posted by: Backslider (190.118.222.---)
Date: November 30, 2012 07:16AM

No, its a very clean and new installation. No mods, no extensions at all.

I actually suspect that the problem is caused by Firefox, which has massive issues of its own - will do a few experiments along that line.

Options: ReplyQuote
Re: Apache - Huge Memory Leak
Posted by: stevenmartin99 (Moderator)
Date: November 30, 2012 07:25AM

But what code are you testing it with?

Are you saying it just leaks in its own without using it??

I would start here.

Stop the server
Delete all the log files from c:/wamp/logs
Open the task manager performance monitors etc.
Start the server, do not use any browser, just monitorsthe memory usage for a defined time.

Repeat with using with Firefox just refreshing the localhost page and then repeat with another browser.

If you use other code or a cms , it's something I can't test.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Apache - Huge Memory Leak
Posted by: Backslider (190.118.222.---)
Date: November 30, 2012 07:41AM

Yes, I can just have it sitting there idling in the background without any web activity and memory usage will spike, although I do have a web page open in Firefox. It does not appear to happen when I have Chrome open, which is why I suspect Firefox.

There is nothing funky with the code (PHP) of the web pages (I am a PHP dev).

Options: ReplyQuote
Re: Apache - Huge Memory Leak
Posted by: Backslider (190.118.222.---)
Date: November 30, 2012 07:47AM

I always see two instances of Apache in my Task Manager. Is this normal? Only one of these is doing the peaking.

Options: ReplyQuote
Re: Apache - Huge Memory Leak
Posted by: stevenmartin99 (Moderator)
Date: November 30, 2012 07:49AM

Yes it's normal. Is there anything in the error or access log

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Apache - Huge Memory Leak
Posted by: Backslider (190.118.222.---)
Date: November 30, 2012 04:19PM

The error log looks perfectly normal. I will do a netstat next time it peaks - see if there is anything unusual there.

Options: ReplyQuote


Sorry, only registered users may post in this forum.