Page 1 of 1

desperate call for help

Posted: Tue Jun 26, 2007 6:28 pm
by j_a_k
Hi,
I have a nasty problem: I ran a badly programmed script, so now the PHP memory is full. Whenever I wanna execute even a simple command I get something like

Allowed memory size of 33554432 bytes exhausted (tried to allocate 16 bytes)...

How can I empty the memory? I increased the memory_limit in php.ini, I even uninstalled the xampp package including the Apache server, nothing has had an effect.

Please help!
Thanks a lot,

Jakob

Posted: Tue Jun 26, 2007 6:30 pm
by patrikG
restart apache

Posted: Tue Jun 26, 2007 6:30 pm
by Charles256
Just curious. Have you tried rebooting your computer? ( I know that's not the most efficient solution but it's the easiest to explain )

Posted: Tue Jun 26, 2007 6:36 pm
by Ambush Commander
You can also boot up task manager and start killing processes that are taking up too much memory. If you go too far, you'll have to reboot, which works too. ::flashes evil grin::

Posted: Tue Jun 26, 2007 6:46 pm
by j_a_k
thanks for your answers. However, none of the proposed solutions works. I rebooted the computer and also restarted Apache. Now, at least the changed memory_limit seems to be acknowledged, i.e. I get

Fatal error: Allowed memory size of 41943040 bytes exhausted

(instead of 31....... bytes) as before

But I still can't perform any operations.

Posted: Tue Jun 26, 2007 7:10 pm
by j_a_k
oh, I found the error. Thanks again.

Posted: Tue Jun 26, 2007 7:12 pm
by superdezign
j_a_k wrote:thanks for your answers. However, none of the proposed solutions works. I rebooted the computer and also restarted Apache. Now, at least the changed memory_limit seems to be acknowledged, i.e. I get

Fatal error: Allowed memory size of 41943040 bytes exhausted

(instead of 31....... bytes) as before

But I still can't perform any operations.
Any at all? Are you sure you don't just have an infinite loop?

Posted: Tue Jun 26, 2007 7:15 pm
by j_a_k
No, you're right. It was an infinite, well-hidden loop. Embarrassing

Posted: Tue Jun 26, 2007 9:23 pm
by Christopher
j_a_k wrote:No, you're right. It was an infinite, well-hidden loop. Embarrassing
Next time please call your thread "Apache out of memory problems" or something more descriptive.

And remember what's printed on the cover of your copy of the Hitchhiker's Guide to the Galaxy...