I've increased the PHP memory limit to 256MB, but I'm getting this error for each cron run:

<b>Fatal error</b>: Allowed memory size of 268435456 bytes exhausted (tried to allocate 118268981 bytes) in <b>/var/www/vhosts/xxx.xxx.com/httpdocs/sites/all/modules/acquia_connector/acquia_agent/acquia_agent_streams.inc</b> on line <b>182</b><br />

I'm using Acquia search and the search file attachment modules. Cron settings are 25 items per run for acquia_search and 10 nodes/30 seconds for the attachment module. Disabling the attachment module seems to fix things. I'm cross posting this in the qcquia connector issue queue.

Comments

sterndata’s picture

I've tried the .dev version, too, and have the same problem. It appears that it's trying to push through a file that's too large.

Is there a way to limit file size? Or to bail out cleanly?

nick_vh’s picture

Status: Active » Fixed

you could add an exclude hook that removes it from the indexing process after a specific check, please see regular apachesolr docs for that.

sterndata’s picture

Status: Fixed » Needs work

How do I find out which node(s) to exclude? I guess I need to hack the module to do some better error reporting first. Does that make sense?

sterndata’s picture

Status: Needs work » Postponed
jhedstrom’s picture

Status: Postponed » Closed (duplicate)

Marking as a duplicate of #1251308: File Size Limit.