I am using Drupal 6 (latest release) and Solr 1.2.

From time to time I run into memory problems:

Fatal error: Out of memory (allocated 7340032) (tried to allocate 4864 bytes) in /home/mysite/public_html/sites/all/modules/apachesolr/apachesolr.module on line 1796

This is pretty recent. I am using multisite with Solr enabled on all the sites - maybe this is the problem?

My server specifications:
RAM: 1.5 GB Guaranteed (3 GB Burst RAM)
CentOS 5 Operating System

How can I prevent the memory problems?

Comments

pbarnett’s picture

Eli Baskin’s picture

I am using WHM, and I have defined memory_limit to be 200M.

admin/reports/status also reports PHP memory limit to be 200M.

Should I increase it to even more?

pbarnett’s picture

That should be more than enough - but try setting it to 256Mb just in case...

Let us know if that works!

Eli Baskin’s picture

Increased to 256M, I will update if it will happen again.

JustinJohnson’s picture

Memory can be a tricky beast. Just because it has been set in one place doesn't mean it isn't bottlenecked somewhere else. You may need to look around your WHM more to find other memory settings.