Results 1 to 8 of 8

Thread: Mass update of 5206 contacts: Allowed memory size of 167772160 bytes exhausted

  1. #1
    Thub is offline Junior Member
    Join Date
    Aug 2009
    Posts
    1

    Default Mass update of 5206 contacts: Allowed memory size of 167772160 bytes exhausted

    I know there are lots of posts like this, but my question is whether this is to be expected when doing an operation on so many contacts? Is it just a matter of increasing the memory_limit value until the message goes away?

    I'm using CentOS 5.3 with Apache 2.2.3, PHP 5.1.6, and SugarCRM CE 5.2.0i

    My memory_limit is set to 160M and the client is doing a mass update of 5206 contacts.

    "Allowed memory size of 167772160 bytes exhausted"

    Thanks,

    Thub
    Last edited by Thub; 2009-08-27 at 10:04 PM. Reason: Added system details

  2. #2
    swcramer's Avatar
    swcramer is offline Member
    Join Date
    Mar 2009
    Location
    Fort Wayne, Indiana
    Posts
    7

    Default Re: Mass update of 5206 contacts: Allowed memory size of 167772160 bytes exhausted

    Here is a report from one of my users - which makes it appear that it doesn't matter how many contacts are being mass updated.

    ---begin user e-mail---
    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 54 bytes) in /home/fundmatr/public_html/crm/data/SugarBean.php on line 612

    i get each time i try to move groups of files to a forward date under activities. the only thing i am altering under mass update is the date i wanted to move the files to. I just selected 8 files hit update and got that error and only 5 moved.
    ---end user e-mail---

  3. #3
    wynn is offline Sugar Team Member
    Join Date
    Aug 2008
    Posts
    372

    Default Re: Mass update of 5206 contacts: Allowed memory size of 167772160 bytes exhausted

    I think you can only set a higher memory limit.

    the memory management of PHP is not so good.
    i.e $this->abc = new ABC(); in a loop, it will use more and more memory accumulatively.

    So I think you can only set a higer memory limit.
    In addintion, there is a limit in sugar, which will limit the database manipulation times in one request.
    So I think you will not update so many contacts at one time.

  4. #4
    swcramer's Avatar
    swcramer is offline Member
    Join Date
    Mar 2009
    Location
    Fort Wayne, Indiana
    Posts
    7

    Default Re: Mass update of 5206 contacts: Allowed memory size of 167772160 bytes exhausted

    Quote Originally Posted by wynn View Post
    I think you can only set a higher memory limit.

    In addintion, there is a limit in sugar, which will limit the database manipulation times in one request.
    So I think you will not update so many contacts at one time.
    So, how many records can one expect to update in a mass update? My user bombed on 8. Seems low.

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

    Default Re: Mass update of 5206 contacts: Allowed memory size of 167772160 bytes exhausted

    I agree with Wynn. Increase your php.ini max_memory

    As for how many records can be updated by Mass Update ... theoretically, as many as you want and have sufficient memory and php.ini variables allow.

    Practically, we tend to limit users to 1,000

  6. #6
    Chrono_trigger is offline Junior Member
    Join Date
    Nov 2011
    Posts
    6

    Default Re: Mass update of 5206 contacts: Allowed memory size of 167772160 bytes exhausted

    I have the same problem.

    Anyone has a solution ?

  7. #7
    nazmul87 is offline Sugar Community Member
    Join Date
    Feb 2012
    Location
    Pune
    Posts
    21

    Default Re: Mass update of 5206 contacts: Allowed memory size of 167772160 bytes exhausted

    i have also a similar problem.



    i want to override module.php core file of sugarcrm for upgrade-safe customization of bean class.its give memory issue jsut as PermGen Exception of java.

    and after changing in php.ini

    memory_limit=128M ; its by - default ,

    and i tried 256M,512M,1024M but problem remain same.

    so can any one tell me what is fix for this issue?

    My Aim is : Override Module.php as Upgrade-Safe.

    Thanks.

  8. #8
    morrighu is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    34

    Default Re: Mass update of 5206 contacts: Allowed memory size of 167772160 bytes exhausted

    That's really a server thing and not a "sugar" thing per se. You might also want to increase your swap space and the physical RAM on your machine if you alter the php.ini & my.cnf and continue to have issues.

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 52428800 bytes exhausted
    By retheesh in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2009-08-18, 11:19 AM
  2. Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes)
    By senthilk in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2009-04-24, 08:46 PM
  3. 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
  4. Replies: 5
    Last Post: 2008-09-04, 12:12 PM
  5. Replies: 2
    Last Post: 2006-10-02, 09:50 PM

Tags for this Thread

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
  •