desperate call for help

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
j_a_k
Forum Newbie
Posts: 4
Joined: Tue Jun 26, 2007 6:24 pm

desperate call for help

Post 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
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

restart apache
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post 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 )
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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::
j_a_k
Forum Newbie
Posts: 4
Joined: Tue Jun 26, 2007 6:24 pm

Post 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.
j_a_k
Forum Newbie
Posts: 4
Joined: Tue Jun 26, 2007 6:24 pm

Post by j_a_k »

oh, I found the error. Thanks again.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post 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?
j_a_k
Forum Newbie
Posts: 4
Joined: Tue Jun 26, 2007 6:24 pm

Post by j_a_k »

No, you're right. It was an infinite, well-hidden loop. Embarrassing
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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...
(#10850)
Post Reply