Jump to content

Apache Sucking Up RAM


corbin

Recommended Posts

Well, I run Apache 2.2.4 and PHP 5.2.2 on one of my computers (2.2GHZ AMD 3500+ Processor, 1.5GB RAM), and the other day the computer was going soooo slow, so I looked at task manager, and was extremely surprised to see httpd.exe taking 1GB of RAM and using 2.5GB of my page file....

 

I checked the access log, and, just as I was expecting, only I have been accessing it, and it's not being attacked or anything, so I'm wondering, what could be causing it to use that much resources when it gets a hit about every 20 minutes?

 

Also, when I first start Apache, I can watch the memory grow.... It'll start at around 16MB and then slowly grow to the numbers mentioned  earlier.

 

I've been running a lot of text manipulation PHP scripts, which sometimes handle 6-8MB files, but I run those maybe once every ten minutes, and Apache/PHP should be releasing those resources as soon as it runs....

 

Any help would be much appreciated, since I have no clue >.<.

Link to comment
https://forums.phpfreaks.com/topic/53459-apache-sucking-up-ram/
Share on other sites

Apache will try and cache as much RAM as it can get its hands on. What you need to do is to configure apache to use few resources and only a few workers. Take a read of http://www.howtoforge.com/configuring_apache_for_maximum_performance

to see where you can configure apache better.

 

-steve

Link to comment
https://forums.phpfreaks.com/topic/53459-apache-sucking-up-ram/#findComment-264858
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.