how to prevent "memory exausted"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Olaf Noehring

    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
    --
    Datenbank-Projekt bietet IT Services rund um Softwareentwicklung mit dem Schwerpunkt Datenbanken aber auch Beratung und Coaching. Hierzu gehören Datenbankentwurf, Datenbankentwicklung, Datenbankpflege, Datenbankoptimierung und Datenbankadministration; Programmierung, Entwicklung und Weiterentwicklung von offline (MS Access) und online Anwendungen; Softwarewartung, Softwarebetreuung, Softwarepflege, Softwareerweiterung, Softwareauswahl und Softwarewechsel aber auch Datenübernahme und Datentransformation. Beratung, Schulungen und Coaching on-Site und virtuell sowie Fernhilfe.

  • Erwin Moller

    #2
    Re: how to prevent "memory exausted"

    0000=year wrote:
    [color=blue]
    > 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[/color]

    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:

    and look for memory_limit

    Regards,
    Erwin Moller

    Comment

    Working...