Open Atrium Memory Issue

Events happening in the community are now at Drupal community events on www.drupal.org.
guerinteedmike's picture

I am new to open atrium and have just started to work on how to manage permissions via groups and teams. I navigated to a space, created a group and received an error after submitting. The php memory limit was at 256M so I increased to 512M and restarted the web server. Now I cannot access the home page of the site. Here is the error I am receiving:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 7 bytes) in /home/mikeg/public_html/hive/profiles/openatrium/modules/contrib/og_subgroups/og_subgroups.common.inc on line 273

The PHP memory limit is at 512M which is quite much. Any thoughts on why this is happening and how to fix this?

As mentioned, I currently cannot access the site.

Open Atrium - 2.45
PHP - 5.5.21
mySQL - 5.5.46-cll

regards,
mikeg

Comments

Most of the time this error

oknaru's picture

Most of the time this error comes from loading more into memory than what you set up PHP to handle in one process.

There are other causes, but these are much less common — very rarely it can be a memory leak if you're on PHP 5.3 and above.

you could practically use where the application works and functions correctly in a production server based on the workload by your users
usually recommend setting the memory limit to something high, like 1GB, assuming you have at least 150% of that free in RAM.
I will ever do these tests on a production server unless you're sure you have plenty of RAM and you fully understand how web server processes consume memory.
If by increasing the memory limit you have gotten rid of the error and your code now works, you'll need to take measures to decrease that memory usage. Here are a few things you could do to decrease it:
1>Upgrade to a new version of PHP if you're using PHP 5.3. PHP 5.4 and 5.5 use much less memory.
2>Avoid loading large datasets into in an array
3>Disable PHP extensions that you don't need

Open Atrium

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week