[Backgroundrb-devel] does backgroundrb server need rails environment?
gethemant at gmail.com
Fri Apr 11 19:15:50 EDT 2008
On Fri, 2008-04-11 at 15:15 -0700, Paul Kmiec wrote:
> Hi everyone,
> I noticed that script/backgroudrb requires config/environment which
> causes the backgroundrb server as well as the log worker to 'bloat' to
> 35MB each. I am kind of sensitive to memory issues, so I patched the
> code and essentially moved the require of environment from
> script/backgroundrb to the meta_worker. Everything seems good and now
> both backgroundrb server and log worker hang around 12MB.
> Is there a reason why script/backgroundrb loads the environment? I
> suppose it makes spawning rail workers faster?
> Anyways, if anyone is interested, I can post my simple patch.
Environment loading is a little messy right now. I wanted to work on it
and make it clean, so i will welcome any patch.
More information about the Backgroundrb-devel