How to Handle Cases Where There is Not Enough Memory?

davegan - September 8, 2008 - 21:33
Project:Drupal For Firebug
Version:5.x-1.1
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

Some pages, such as the modules administration page, receives a max_allowed_packet error when that mysql setting is equal to 1M. Changing this to 2M in the mysql settings file seems to do the trick, but on a shared hosting account that wouldn't be possible.

#1

populist - September 15, 2008 - 05:58
Title:Got a packet bigger than 'max_allowed_packet' error» How to Handle Cases Where There is Not Enough Memory?

So the general issue here is that Drupal for Firebug stores in memory a lot of information about the users + nodes + forms + views + whatever that is happening. This can overwhelm a shared hosting environment (or deployment with limited memory) and cause errors. A few possible options:

1.) require more memory. its often just changing a few settings in settings.php to make it all work
2.) storing data in the database for each item an custom calling it out of hte database when requested by drupal for firebug
3.) providing settings to allow user to turn off some of the features (like not store node information)
4.) cap the number of objects that will be displayed to X number

any perference?

#2

populist - March 1, 2009 - 06:47
Status:active» fixed

Its probably best to require more memory and I have updated the README to explain how to add more memory.

#3

System Message - March 15, 2009 - 06:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.