Drupal - How do I avoid the error "out of memory"?

There's really not much you can do in this case. Drupal 7 requires fair bit of memory and so do Views, Panels, etc.

If upgrading to a hosting plan where you have at least 128MB is not an option I would at least make sure the following modules are kept disabled:

  • Update Manager
  • Database Logging
  • Field UI
  • Views UI
  • Panels In-Place Editor
  • Any other "UI" module

Do your development locally and use version control & Features to update your production box.


As listed in Drupal's System Requirements, Drupal Core itself needs 32M to run. Adding any contributed modules without increasing memory is a surefire way to encounter this error.

If your server's maximum is only 32M, it's time to get new hosting.


As mentioned, the bottom line is you realistically need 128M. Another point of note is that if you have the image suite working, that frequently reminds us (in Drupal 6 at least) that at least 96M is required in certain circumstances.

32M is just not going to cut it.

Tags:

Performance