DISQUS

Tech-Recipes: Solve PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried… | PHP programming | Tech-Recipes

  • Jorge · 1 year ago
    Thanks for this article. It really helped a lot.
  • Mattia · 1 year ago
    tnks, u' re great! First pos in google!
  • Camilo · 1 year ago
    Thanks a lot!!
    That function saved my day, great article.
  • Movie download · 1 year ago
    Thanks a lot! I forgot about it :)))
    It's realy usefull when use multythreads of CURL
  • NICK · 12 months ago
    i love YOU!
  • Corin · 12 months ago
    Thanks for the tip, Rex!

    Do you know of any tool to help analyse memory usage in PHP?

    I consider this a temporary workaround for my situation... I need help to reduce memory usage.
  • Roy Sontoloyo · 11 months ago
    Thanks bro...
    Its realy help me... ;)
  • abedelhadi · 11 months ago
    thanks a lot
  • Laure · 11 months ago
    Thanks a lot!!
    That function saved my day, great article.
  • Adam · 11 months ago
    Very, very thankssssssssssss!!!!!
  • silverblaze · 11 months ago
    you can also edit the .htaccess file and add the following line..

    php_value memory_limit 16M

    :)
  • Diego · 11 months ago
    Thanks a lot for the article. Helps me out with the instalation of PhocaGallery in joomla.
  • neo74 · 11 months ago
    Thank for this great article!!!
  • ajmal · 10 months ago
    Alas i have issue but if i increase memory limit it shows out of memory.......
  • happy dude · 10 months ago
    brill ++++
  • Joao Brito · 10 months ago
    Tks a lot!
  • samatair · 9 months ago
    thanks so much for the post it helped me to sort out my image processing program..
  • manoj · 9 months ago
    Actually i am new joomla user & problem is occured at the time of admin panel opened of joomla: as Allowed memory size of 8388608 bytes exhausted.

    But now is solve by using this solution.

    Thank you.
  • Manach Chuong · 9 months ago
    wow, thanks for your post. It's very useful.
  • nitin · 9 months ago
    thanks yaar, its working ;) !!!!
  • N3RVE · 8 months ago
    Thanks for this, very useful ;)
  • martin · 8 months ago
    thanks.
  • WPStart · 8 months ago
    Saved my day :) Thanks a lot :)
  • Sebastian · 8 months ago
    Gracias, de verda me ayudo en mi trabajo
    (Thanks a lot, it did really help me)
  • alonsolps · 2 months ago
    Hola, soy nuevo en cuanto al tema, me podrias decir que pasos seguir para resolver este problema? te lo voy a agradecer mucho Ciao
  • dewan · 8 months ago
    Thanks
  • jordi · 7 months ago
    fantastic!!
  • saritha · 6 months ago
    nd that a huge memory limit is a poor substitute for good coding. A poorly written script may inefficiently squander memory which can cause severe problems for frequently executed scripts. However, some applications are run infrequently and require lots of memory like importing and processing a big data file.
  • African Safari Man · 6 months ago
    Thanks, I couldn't remember what the setting was called to up the limit and this did the trick. Good advice on not setting it too high, don't want the server to run out of memory...
  • Joe · 6 months ago
    You should also verify that you aren't trying to include a file inside that file,

    eg, the script name is somescript.php

    and you have

    include("somescript.php");

    I've inadvertently done this when copying files.
  • Mike · 6 months ago
    I got the weirdest one the other day;

    "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 49 bytes) in /it/doesn't/matter/PdoDataSet.class.php on line 78"

    49 is not greater than 8388608... I think there might be recursive include somewhere though. I am using the Recess! framework, so finding it is going to be a pain...
  • Jilani Jidni · 5 months ago
    cool article
  • David · 5 months ago
    Thanks
  • Tom · 5 months ago
    ini_set("max_execution_time","600");
    ini_set("memory_limit","128M");
  • Marcos · 5 months ago
    Excelent. Simple and direct. Thank you !
  • Xtube · 5 months ago
    Finally i solved my problem, thanks a lot
  • HH · 3 months ago
    Thanks solved the problem. You Da Man!!
  • cemo · 3 months ago
    it worked , thank you
  • Maya75 · 2 months ago
    To catch PHP's fatal errors, like "Out of memory" or "PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate … bytes) in", see here : http://php.net/manual/en/function.set-error-han...
  • Tiago Sousa · 2 months ago
    Thanks!
  • salusa · 2 months ago
    Thanks for me help.And Solve my problem.

    Hi everybody
    pls tell me something in php function.
    Regards'
    saleeem
  • Erik Søndergaard Poulsen · 2 months ago
    You can also set the value in the .htaccess file in the root of your server by adding the following line:

    php_value memory_limit 64M

    (Create a new file named ".htaccess" if it does not exist).

    my blog: http://www.graasubstans.dk/blog
  • alonsolps · 2 months ago
    Hi, how can I find This files in order to modify them?, Thanks
  • Swzmaster · 1 month ago
    thanks for your tips
  • dsmflash · 1 month ago
    ini_set("memory_limit","12M"); will crash your site. DO NOT USE.
  • common sense · 1 month ago
    @dsmflash : wtf noob? giving bad advice?
  • dsmflash · 1 month ago
    @common_ass:

    it's php_value memory_limit 12M, not ini_set("memory_limit","12M").

    just because its my first post here does not make me a noob. Those who accuse usually are. You SDF. Do everyone a favor and move somewhere that doesn't have the Internet.
  • Frank S. · 2 weeks ago
    Thank you ^^ !!!

    I got aproblem same same with you thank you
  • Álvaro Garrido · 1 week ago
    Keep in mind that a huge memory limit is a poor substitute for good coding. A poorly written script may inefficiently squander memory which can cause severe problems for frequently executed scripts. However, some applications are run infrequently and require lots of memory like importing and processing a big data file.
  • Siimi · 4 days ago
    I have been trying to install phocagallery in my joomla site....but when i click install button then the following message is shown:-
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 998969 bytes) in C:\wamp\www\joomla\libraries\joomla\filesystem\archive\zip.php on line 310
    I increased the size of of memory limit in php.ini...but it still isn't working..
    Please give me another solution