Patches welcome at https://github.com/onemorecloud/acts_as_solr

This is the repo for the acts_as_solr gem, and I am its de facto maintainer
these days.

On Tue, Dec 20, 2011 at 13:29, Dan Simpson <[email protected]> wrote:

> If you take a look at:
>
> https://github.com/tjackiw/acts_as_solr/blob/master/lib/tasks/solr.rake#L22
>
> You will see there is no way of setting the options you want.  You should
> override the task (or fork) and do something like:
>
> exec "java #{ENV['JAVA_OPTS']}
> -Dsolr.data.dir=solr/data/#{ENV['RAILS_ENV']} -Djetty.port=#{SOLR_PORT}
> -jar start.jar"
>
> Then you can call it as: rake solr:start JAVA_OPTS='-Xmx4096m -server'
> RAILS_ENV='production'
>
> --Dan
> On Tue, Dec 20, 2011 at 1:05 PM, Glenn Little <[email protected]> wrote:
>
>> I'm running an app that uses the (now slightly crusty) acts_as_solr
>> plugin.  It's running out of java heap space.  I'm trying to figure
>> out how to push a config modification to java to allocate more heap.
>> I believe I need to get the -Xms and -Xmx options through to java,
>> maybe via JAVA_OPTS?  But not sure about that, nor am I clear on how
>> to even get the JAVA_OPTS env var through to the solr daemon.
>>
>> This is on a linux server, and I'm starting solr via an init.d file
>> that includes the commands:
>>
>>    cd $APP_SOLR_DIR
>>    rake RAILS_ENV='production' solr:start &> $STARTUP_LOG
>>
>> Any pointers appreciated.
>>
>> Thanks!
>>
>> -glenn
>>
>> --
>> SD Ruby mailing list
>> [email protected]
>> http://groups.google.com/group/sdruby
>
>
>  --
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby
>



-- 
Nick Zadrozny

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to