Re: Automatically Restart Solr

2017-07-03 Thread Susheel Kumar
Got it but unless you know what caused OOM you can run into this again.
Restart may not help really.

You should try to find out from gc logs if it was sudden increase which
caused OOM (some culprit query or heavy ingestion) or it was over the
period of time (due to cache util..).

Based on that you may want to proceed further..

On Mon, Jul 3, 2017 at 7:56 AM, rojerick luna 
wrote:

> Thanks Furkan.
>
> Hi Susheel - our Solr was running so long until we experienced Solr went
> system out of memory. we already increased the virtual memory and so far so
> good. we just want an automated restart to refresh Solr, just another
> proactive initiative.
>
> Best Regards,
> Jeck
>
> > On 3 Jul 2017, at 7:02 PM, Susheel Kumar  wrote:
> >
> > I am curios why you need to restart solr every week.  Our Prod solr
> > instance (6.0) has been running Since Nov,16 with no restart
> >
> > On Sun, Jul 2, 2017 at 12:55 PM, Furkan KAMACI 
> > wrote:
> >
> >> Hi Jeck,
> >>
> >> Here is the documentation about how you can run Solr as service:
> >> https://lucene.apache.org/solr/guide/6_6/taking-solr-to-production.html
> >>
> >> However, as far as I see you use Windows as operating system. There is
> >> currently an open issue for creating scripts to run as a Windows
> Service:
> >> https://issues.apache.org/jira/browse/SOLR-7105 but not yet completed.
> >>
> >> Could you check this:
> >> http://coding-art.blogspot.com.tr/2016/07/running-solr-
> >> 61-as-windows-service.html
> >>
> >> Kind Regards,
> >> Furkan KAMACI
> >>
> >>
> >> On Sun, Jul 2, 2017 at 6:12 PM, rojerick luna  >
> >> wrote:
> >>
> >>> Hi,
> >>>
> >>> Anyone who successfully set this up? Thanks
> >>>
> >>> Best Regards,
> >>> Jeck
> >>>
>  On 20 Jun 2017, at 7:10 PM, rojerick luna 
> >>> wrote:
> 
>  Hi,
> 
>  I'm trying to automate Solr restart every week.
> 
>  I created a stop.bat and updated the start.bat which I found on an
> >>> article online. Using stop.bat and start.bat is working fine. However
> >> when
> >>> I created a Task Scheduler (Windows Scheduler) and setup the frequency
> to
> >>> stop and start (using the bat files), it's not working; the Solr app
> >> didn't
> >>> restart.
> 
>  Please let me know if you have successfully tried it and send me steps
> >>> how you've setup the Task Scheduler.
> 
>  Best Regards,
>  Jeck Luna
> >>>
> >>>
> >>
>
>


Re: Automatically Restart Solr

2017-07-03 Thread rojerick luna
Thanks Furkan.

Hi Susheel - our Solr was running so long until we experienced Solr went system 
out of memory. we already increased the virtual memory and so far so good. we 
just want an automated restart to refresh Solr, just another proactive 
initiative.

Best Regards,
Jeck

> On 3 Jul 2017, at 7:02 PM, Susheel Kumar  wrote:
> 
> I am curios why you need to restart solr every week.  Our Prod solr
> instance (6.0) has been running Since Nov,16 with no restart
> 
> On Sun, Jul 2, 2017 at 12:55 PM, Furkan KAMACI 
> wrote:
> 
>> Hi Jeck,
>> 
>> Here is the documentation about how you can run Solr as service:
>> https://lucene.apache.org/solr/guide/6_6/taking-solr-to-production.html
>> 
>> However, as far as I see you use Windows as operating system. There is
>> currently an open issue for creating scripts to run as a Windows Service:
>> https://issues.apache.org/jira/browse/SOLR-7105 but not yet completed.
>> 
>> Could you check this:
>> http://coding-art.blogspot.com.tr/2016/07/running-solr-
>> 61-as-windows-service.html
>> 
>> Kind Regards,
>> Furkan KAMACI
>> 
>> 
>> On Sun, Jul 2, 2017 at 6:12 PM, rojerick luna 
>> wrote:
>> 
>>> Hi,
>>> 
>>> Anyone who successfully set this up? Thanks
>>> 
>>> Best Regards,
>>> Jeck
>>> 
 On 20 Jun 2017, at 7:10 PM, rojerick luna 
>>> wrote:
 
 Hi,
 
 I'm trying to automate Solr restart every week.
 
 I created a stop.bat and updated the start.bat which I found on an
>>> article online. Using stop.bat and start.bat is working fine. However
>> when
>>> I created a Task Scheduler (Windows Scheduler) and setup the frequency to
>>> stop and start (using the bat files), it's not working; the Solr app
>> didn't
>>> restart.
 
 Please let me know if you have successfully tried it and send me steps
>>> how you've setup the Task Scheduler.
 
 Best Regards,
 Jeck Luna
>>> 
>>> 
>> 



Re: Automatically Restart Solr

2017-07-03 Thread Susheel Kumar
I am curios why you need to restart solr every week.  Our Prod solr
instance (6.0) has been running Since Nov,16 with no restart

On Sun, Jul 2, 2017 at 12:55 PM, Furkan KAMACI 
wrote:

> Hi Jeck,
>
> Here is the documentation about how you can run Solr as service:
> https://lucene.apache.org/solr/guide/6_6/taking-solr-to-production.html
>
> However, as far as I see you use Windows as operating system. There is
> currently an open issue for creating scripts to run as a Windows Service:
> https://issues.apache.org/jira/browse/SOLR-7105 but not yet completed.
>
> Could you check this:
> http://coding-art.blogspot.com.tr/2016/07/running-solr-
> 61-as-windows-service.html
>
> Kind Regards,
> Furkan KAMACI
>
>
> On Sun, Jul 2, 2017 at 6:12 PM, rojerick luna 
> wrote:
>
> > Hi,
> >
> > Anyone who successfully set this up? Thanks
> >
> > Best Regards,
> > Jeck
> >
> > > On 20 Jun 2017, at 7:10 PM, rojerick luna 
> > wrote:
> > >
> > > Hi,
> > >
> > > I'm trying to automate Solr restart every week.
> > >
> > > I created a stop.bat and updated the start.bat which I found on an
> > article online. Using stop.bat and start.bat is working fine. However
> when
> > I created a Task Scheduler (Windows Scheduler) and setup the frequency to
> > stop and start (using the bat files), it's not working; the Solr app
> didn't
> > restart.
> > >
> > > Please let me know if you have successfully tried it and send me steps
> > how you've setup the Task Scheduler.
> > >
> > > Best Regards,
> > > Jeck Luna
> >
> >
>


Re: Automatically Restart Solr

2017-07-02 Thread Furkan KAMACI
Hi Jeck,

Here is the documentation about how you can run Solr as service:
https://lucene.apache.org/solr/guide/6_6/taking-solr-to-production.html

However, as far as I see you use Windows as operating system. There is
currently an open issue for creating scripts to run as a Windows Service:
https://issues.apache.org/jira/browse/SOLR-7105 but not yet completed.

Could you check this:
http://coding-art.blogspot.com.tr/2016/07/running-solr-61-as-windows-service.html

Kind Regards,
Furkan KAMACI


On Sun, Jul 2, 2017 at 6:12 PM, rojerick luna 
wrote:

> Hi,
>
> Anyone who successfully set this up? Thanks
>
> Best Regards,
> Jeck
>
> > On 20 Jun 2017, at 7:10 PM, rojerick luna 
> wrote:
> >
> > Hi,
> >
> > I'm trying to automate Solr restart every week.
> >
> > I created a stop.bat and updated the start.bat which I found on an
> article online. Using stop.bat and start.bat is working fine. However when
> I created a Task Scheduler (Windows Scheduler) and setup the frequency to
> stop and start (using the bat files), it's not working; the Solr app didn't
> restart.
> >
> > Please let me know if you have successfully tried it and send me steps
> how you've setup the Task Scheduler.
> >
> > Best Regards,
> > Jeck Luna
>
>


Re: Automatically Restart Solr

2017-07-02 Thread rojerick luna
Hi,

Anyone who successfully set this up? Thanks

Best Regards,
Jeck

> On 20 Jun 2017, at 7:10 PM, rojerick luna  wrote:
> 
> Hi,
> 
> I'm trying to automate Solr restart every week.
> 
> I created a stop.bat and updated the start.bat which I found on an article 
> online. Using stop.bat and start.bat is working fine. However when I created 
> a Task Scheduler (Windows Scheduler) and setup the frequency to stop and 
> start (using the bat files), it's not working; the Solr app didn't restart.
> 
> Please let me know if you have successfully tried it and send me steps how 
> you've setup the Task Scheduler.
> 
> Best Regards,
> Jeck Luna



Automatically Restart Solr

2017-06-20 Thread rojerick luna
Hi,

I'm trying to automate Solr restart every week.

I created a stop.bat and updated the start.bat which I found on an article 
online. Using stop.bat and start.bat is working fine. However when I created a 
Task Scheduler (Windows Scheduler) and setup the frequency to stop and start 
(using the bat files), it's not working; the Solr app didn't restart.

Please let me know if you have successfully tried it and send me steps how 
you've setup the Task Scheduler.

Best Regards,
Jeck Luna