Results 1 to 4 of 4

Thread: Fatal Error: Allowed memory ... exausted

  1. #1
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Fatal Error: Allowed memory ... exausted

    HI all,

    After clicking View Summary on Account Detail view I received the following error message:

    Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 16 bytes) in var/www/html/SugarCRM/data/SugarBean.php on line 1942
    This my my attempt to reproduce an error seen by a user who reported the similar error:

    SugarCRM Allowed memory size of 41943040 bytes exhausted (tried to allocate 8192 bytes) in /var/www/html/SugarCRM/custom/modules/logic_hooks.php on line 1
    So I can reproduce the basic error. View Summary works fine for other accounts.

    This account has 112 history entries. A quick query using sum(char_length(description)) tells me that the total number of characters in the description field for all 112 entries is less than 15 K. Obviously lots of other fields get reported by the View Summary window, but description is the only one of type text, so all other fields should use little memory.

    I don't have any custom code for logic hooks.

    Linux Mandriva 2008
    SugarCRM Version 5.2.0f (Build 5688)
    PHP 5.2.4
    Apache Version Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0)
    Apache API Version 20051115
    MySQL 5.0.45

    The system has 1GB of Ram and 4 GB of swap and is used only for SugarCRM and one other database with some custom web pages.

    I reproduced this on the weekend when nothing else was running, so there are no other loading considerations.

    Any suggestions for tracking this down?

    Thanks

    Phil

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Fatal Error: Allowed memory ... exausted

    you need to increase the max_memory in your php.ini and then reboot your webserver

  3. #3
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: Fatal Error: Allowed memory ... exausted

    OK,

    Increasing memory_limit in php.ini from 40MB to 64MB makes the problem go away (thanks salesagility).

    I have not tried other values. I arbitrarily picked 64MB.

    Any suggestions on an ideal value?

    Any significant consequences of setting it higher than needed?

    Thanks

    Phil

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Fatal Error: Allowed memory ... exausted

    Quote Originally Posted by datasponge View Post
    OK,

    Increasing memory_limit in php.ini from 40MB to 64MB makes the problem go away (thanks salesagility).

    I have not tried other values. I arbitrarily picked 64MB.

    Any suggestions on an ideal value?

    Any significant consequences of setting it higher than needed?

    Thanks

    Phil
    I would suggest you to set a value 128M or greater.

    Cheers
    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fatal error: Allowed memory size
    By Meyer in forum Help
    Replies: 1
    Last Post: 2009-06-25, 09:55 AM
  2. Replies: 7
    Last Post: 2008-04-23, 05:23 AM
  3. PHP Fatal error: Allowed memory size...
    By rousseau in forum Help
    Replies: 3
    Last Post: 2008-03-17, 10:52 PM
  4. PHP Fatal error: Allowed memory size
    By blakegrover in forum Help
    Replies: 1
    Last Post: 2007-06-01, 01:59 PM
  5. Fatal error: Allowed memory size
    By ebox in forum Help
    Replies: 1
    Last Post: 2005-04-07, 05:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •