Results 1 to 7 of 7

Thread: Allowed Memory Size Exhausted

  1. #1
    zoomiest is offline Junior Member
    Join Date
    Apr 2006
    Posts
    4

    Default Allowed Memory Size Exhausted

    I was importing a CSV file of 2300 contacts into the community edition of SugarCRM version Version 5.2.0c (Build 5505), and got the following error. I was shocked. I have barely used my SugarCRM installation - getting to it now...

    Code:
    Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 45 bytes) in /var/www/SugarCE-Full-5.2.0c/include/utils.php on line 994
    I just uploaded 2300 Accounts (companies) and was uploading key contacts... wow. it can't take that much room...

    Environment:
    Ubuntu Server
    Apache webserver...

    Think that is a MySQL error?

    BTW, I went into that PHP file, to see if I could increase the limit... and there was no reference to any memory size. The function that was coded was not even related to memory...

    I will upgrade... and try again.
    Last edited by zoomiest; 2009-12-12 at 11:47 PM. Reason: (adding more information)

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Allowed Memory Size Exhausted

    There should be a setting in your PHP.INI that controls the allocated memory.

    It is called memory_limit. If it is not there, add it, making sure to set it to something above 40M

    Make sure you restart your web service after you make the change.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    zoomiest is offline Junior Member
    Join Date
    Apr 2006
    Posts
    4

    Default Re: Allowed Memory Size Exhausted

    Worked like a charm!
    THANK YOU!

  4. #4
    jackbq is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Re: Allowed Memory Size Exhausted

    I just got an error like the one above, but its a bit strange:

    The error is:

    *Fatal error*: Allowed memory size of 104857600 bytes exhausted (tried to allocate 13839353 bytes) in */var/www/sugarcrm/include/ListView/ListViewSmarty.php* on line *217*

    The memory_limit in my php.ini is set to 100MB (as can be seen in the error description above).
    The weird thing is, that sugar tries to allocate 13839353 bytes which is 13,8 Mbytes so nowhere near the 100Mbytes....

    It seems senseless to me to upgrade the 100MB again...?

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Allowed Memory Size Exhausted

    I am not aware of a situation where this error comes up due to causes other than the memory_limit setting being set too low. I would use phpinfo() to double check the memory_limit setting of your directory.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    jackbq is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Re: Allowed Memory Size Exhausted

    I checked it again, and it's really set to 100M in the php.ini file.
    Which is correct according to the error, which also shows me 100 MB.

  7. #7
    mad4red is offline Member
    Join Date
    Oct 2010
    Location
    Serbia
    Posts
    8

    Default Re: Allowed Memory Size Exhausted

    I have the same problem, I receive next message:

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 98304 bytes) in D:\Download\xampplite\htdocs\SugarCE\include\Sugar Objects\templates\person\vardefs.php on line 352

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 of 134217728 bytes exhausted
    By vishwasrao in forum Developer Help
    Replies: 9
    Last Post: 2009-02-04, 04:16 AM
  2. Fatal error: Allowed memory size of 16777216 bytes exhausted
    By SerwiseAG in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2008-11-12, 11:43 AM
  3. Replies: 5
    Last Post: 2008-09-04, 12:12 PM
  4. FCKEditor - Allowed memory size exhausted
    By sepp in forum Deutsche
    Replies: 0
    Last Post: 2006-08-28, 09:12 AM
  5. Replies: 1
    Last Post: 2006-06-19, 09:50 AM

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
  •