Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

That's an unbelievable issue but we have single apache process that takes 4 GB of memory ! And it doesn't happens always with the same URLs, it's unpredictable and we don't understand why it is happening at all !!!

Any help would be greatly appreciated (as well as the users of the website and the owners) !

We even developed for days some software to analyze what is happening !

We do a pmap PID each second when the problems comes up, but the offending line is :

00002aad145c2000 2929376K rw---    [ anon ]

so what can we do with that, is there a way to know what it is ?

We also analyze open files with lsof -p.

It looks like it happens when the connection comes from Google Crawler but I can't tell if it's always the case.

Do you have suggestions on how to analyze ?

The config is Linux+Apache+PHP+Postgresql

share|improve this question
No way, can you double check it with ps? Seriously, there is only mod_php can do this, and memory limit in php.ini below 3GB should resolve it. –  Andrew Smith Aug 17 '12 at 19:21
Do you have several VirtualHosts each with its own PHP codebase? –  HTTP500 Aug 17 '12 at 19:22
Of course PHP memory_limit was the first point we checked but as you can see this is not the problem : grep memory_limit /etc/php.ini => memory_limit = 32M –  db_ch Aug 17 '12 at 19:50
HTTP500, we have one main VirtualHosts... Can you explain your idea? –  db_ch Aug 17 '12 at 19:52
By the way we tryed rlimitmem but either it doesn't work, either we don't used it correctly, as it's no use : still using more than 3 gigabytes –  db_ch Aug 17 '12 at 19:54
show 7 more comments

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.