CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Fatal error: out of dynamic memory
Pages: [1]

Author Topic: Fatal error: out of dynamic memory  (Read 10037 times)

cpelham

  • Guest
Fatal error: out of dynamic memory
February 12, 2008, 06:47:50 pm
I'm running CiviCRM 1.9 on Drupal 5.7, hosted by Dreamhost. We have 1943 records. I should note that in general loading almost any and every page in CiviCRM is slow as hell, 3-20 seconds. Is this the fault of CiviCRM or Dreamhost?

More urgently, in CiviCRM I can't "Find Duplicate Records." Every time I get the following error:

Fatal error: out of dynamic memory in yy_create_buffer() in /home/.zuks/crsnyor/crsny.org/drupal/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265

Fatal error: Out of memory (allocated 31195136) (tried to allocate 48145 bytes) in Unknown on line 0

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal error: out of dynamic memory
February 12, 2008, 09:29:58 pm
i dont think dreamhost comes on my favored list of hosts :)

that said, IMO, both CiviCRM and Dreamhost are at fault. CiviCRM is a bit heavy to run efficiently on shared servers. on some dreamhost machines that i've ssh'ed onto, the load is ridiculously high (without civicrm). To some extent it depends on how many users are on a dreamhost server and how many hits are they getting etc

i'd recommend you upgrade to a better hosting plan on dreamhost if u plan on using civicrm for the medium/long term. You should also increase your php memory size to 64m

lobo
« Last Edit: February 12, 2008, 09:32:53 pm by Donald Lobo »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

cpelham

  • Guest
Re: Fatal error: out of dynamic memory
February 12, 2008, 10:46:15 pm
Thank you, Donald.
Dreamhost has otherwise been great and their package is free for non-profits.
If we need to switch...do you know of any hosts suitable for CiviCRM that charge under $50/mo? That would I'm sure be our max budget at this point.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal error: out of dynamic memory
February 13, 2008, 12:59:18 am

check: http://wiki.civicrm.org/confluence/display/CRM/Hosting+provider+information

thats a community page. we dont have experiences with shared hosting providers

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

cpelham

  • Guest
Re: Fatal error: out of dynamic memory
February 13, 2008, 10:23:05 am
So, to run CiviCRM effectively, one basically needs to spend more than $100/month for hosting? That would really seem to rule out CiviCRM for a lot of small non-profits, which is a shame, since I thought that is what the target audience of an open-source CRM would be.

Do you have any hope of improving the performance of CiviCRM enough in the future that it can run OK in a shared environment? Or is it likely impossible to get any CRM running fast on a typical shared server?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal error: out of dynamic memory
February 13, 2008, 11:09:57 am

Not sure where you got the $100/month number. I suspect semi-private shared servers are much cheaper. You might want to check this with a few hosts

I dont think we can improve performance significantly enough for it to run nicely on a heavily loaded dreamhost server.

That said, civicrm is an open source project. If there are folks who are willing to spend energy and resources into optimizing civicrm for shared host, we will help them and hopefully integrate a lot of their work back into the core package.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

phillipadsmith

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
Re: Fatal error: out of dynamic memory
April 09, 2008, 01:52:53 pm

Donald Lobo,

I'm experiencing this same issue on a dedicated server with 4GB of RAM. We have the PHP memory limit set to 1 GB and we still receive the error as follows (after about five minutes):

Fatal error: out of dynamic memory in yy_create_buffer() in /var/home/domain/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265

Fatal error: Out of memory (allocated 197132288) (tried to allocate 37125 bytes) in /var/home/domain/includes/common.inc on line 558

This is on trying to de-dupe 9477 records for "individuals" with CiviCRM 1.9 on Drupal 5.6.

Thoughts?

Phillip.


phillipadsmith

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
Re: Fatal error: out of dynamic memory
April 09, 2008, 02:16:27 pm

Spoke to Lobo in IRC and he pointed me to this helpful thread on limiting the de-dupe by group:
http://forum.civicrm.org/index.php/topic,1132.msg4867.html#msg486

He also indicated that Piotr was working on a re-write of the de-dupe engine for 2.0/2.1 and is looking for folks to help with testing on large data sets.

Pop a note here if you're hitting this issue and can help out.

Cheers,

Phillip.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Fatal error: out of dynamic memory
April 09, 2008, 02:20:59 pm
Phillip - Dedupe is definitely a memory hog. We're working on what we hope will be significant improvements for this in 2.1. In the meantime, when you go to the ‘Use Rule’ URL (say, http://<your_site>/civicrm/admin/dedupefind?reset=1&action=update&rgid=1), you can limit the scope of the search to a given group by adding a 'gid=x' parameter to the end of the URL (where x = the ID of a group). Breaking up the process and deduping 1 group at a time has worked for several other sites.

Also, we're looking for datasets to test the dedupe improvements on, so please contact Piotr Szotkowski ( shot at civicrm dot org ) on our team directly if you are able to share a copy of your DB for testing (of course we'll destroy it as soon as we're done with it).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Fatal error: out of dynamic memory

This forum was archived on 2017-11-26.