470,815 Members | 1,112 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

how to prevent "memory exausted"

Hi

how can I prevent / catch the error / work around this error:
"Fatal error: Allowed memory size of xxx bytes exhausted"

The script runs and stalls sometimes. Is there a way how I can prevent
this?

Olaf
--
http://www.team-noehring.de
Mar 17 '06 #1
1 1821
0000=year wrote:
Hi

how can I prevent / catch the error / work around this error:
"Fatal error: Allowed memory size of xxx bytes exhausted"

The script runs and stalls sometimes. Is there a way how I can prevent
this?

Olaf


Hi Olaf,

That means PHP is out of memory.
You have several option now:
1) Make PHP use less memory by adjusting your script (if possible).
2) GIVE php more memory.

For 2), read on here:
http://nl2.php.net/manual/en/ini.php
and look for memory_limit

Regards,
Erwin Moller
Mar 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mike Krasnik | last post: by
reply views Thread by John Bonds | last post: by
10 posts views Thread by Generic Usenet Account | last post: by
5 posts views Thread by Jarek | last post: by
5 posts views Thread by bughunter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.