Stopping Solr results in broken Solr - killing me! CoreContainer is either not initialized or shutting down.

2020-07-12 Thread Russell Jurney
Whenever I stop Solr with 'bin/solr stop' or 'sudo service solr stop' Solr's cores are corrupted and the only way to remedy the situation is to do a full uninstall and reinstall of all traces of Solr. Please help, I can't live like this. The error is at the bottom, as it is long. This is a standa

Re: Stopping Solr JVM on OOM

2016-03-19 Thread xavi jmlucjav
In order to force a OOM do this: - index a sizable amount of docs with normal -Xmx, if you already have 350k docs indexed, that should be enough - now, stop solr and decrease memory, like -Xmx=15m, start it, and run a query with a facet on a field with very high cardinality, ask for all facets. If

Re: Stopping Solr JVM on OOM

2016-03-19 Thread Binoy Dalal
Hi Shawn, Your thoughts on this? On Mon, Mar 14, 2016 at 2:11 PM Binoy Dalal wrote: > I set the heap to 16 mb and tried to index about 350k records using a DIH. > This did throw an OOM for that particular thread in the console, but the > oom script wasn't called and solr was running properly. >

Re: Stopping Solr JVM on OOM

2016-03-14 Thread Binoy Dalal
I set the heap to 16 mb and tried to index about 350k records using a DIH. This did throw an OOM for that particular thread in the console, but the oom script wasn't called and solr was running properly. Moreover, solr also managed to index all 350k records. Is this the correct way to o about gett

Re: Stopping Solr JVM on OOM

2016-03-13 Thread Shawn Heisey
On 3/13/2016 8:13 PM, Binoy Dalal wrote: > I made the necessary changes to that oom script? > How does it look now? > Also can you suggest some way of testing it with solr? > How do I make solr oom on purpose? Set the java heap really small. Not entirely sure what value to use. I'd probably star

Re: Stopping Solr JVM on OOM

2016-03-13 Thread Binoy Dalal
Hello Shawn, I made the necessary changes to that oom script? How does it look now? Also can you suggest some way of testing it with solr? How do I make solr oom on purpose? Thanks On Wed, 9 Mar 2016, 19:11 Shawn Heisey, wrote: > On 3/9/2016 6:07 AM, Binoy Dalal wrote: > > Have you had a chance

Re: Stopping Solr JVM on OOM

2016-03-09 Thread Shawn Heisey
On 3/9/2016 6:07 AM, Binoy Dalal wrote: > Have you had a chance to check and review the patch? I have not. I will look at it sometime today, probably later this evening (UTC-7 timezone). Thanks, Shawn

Re: Stopping Solr JVM on OOM

2016-03-09 Thread Binoy Dalal
Hi Shawn, Have you had a chance to check and review the patch? On Wed, 9 Mar 2016, 00:49 Binoy Dalal, wrote: > I've uploaded both files. > Please review and advise. > > On Wed, Mar 9, 2016 at 12:46 AM Binoy Dalal > wrote: > >> Hi Shawn, >> The JIRA issue is SOLR-8803 ( >> https://issues.apache.

Re: Stopping Solr JVM on OOM

2016-03-08 Thread Binoy Dalal
I've uploaded both files. Please review and advise. On Wed, Mar 9, 2016 at 12:46 AM Binoy Dalal wrote: > Hi Shawn, > The JIRA issue is SOLR-8803 ( > https://issues.apache.org/jira/browse/SOLR-8803). > I've used "git diff" and created a patch but it only has the changes that > I made to the solr.

Re: Stopping Solr JVM on OOM

2016-03-08 Thread Binoy Dalal
Hi Shawn, The JIRA issue is SOLR-8803 (https://issues.apache.org/jira/browse/SOLR-8803 ). I've used "git diff" and created a patch but it only has the changes that I made to the solr.cmd file under bin to add the -XX:OnOutOfMemoryError option. There's the entire file of the actual OOM kill script t

Re: Stopping Solr JVM on OOM

2016-03-08 Thread Shawn Heisey
On 3/8/2016 5:13 AM, Binoy Dalal wrote: > I've just finished writing a batch oom killer script and it seems to work > fine. > > I couldn't try it on the actual solr process since I'm a bit stumped on how > I can make solr throw an oom at will. > Although I did write another code that does throw an

Re: Stopping Solr JVM on OOM

2016-03-08 Thread Binoy Dalal
Hi Shawn, I've just finished writing a batch oom killer script and it seems to work fine. I couldn't try it on the actual solr process since I'm a bit stumped on how I can make solr throw an oom at will. Although I did write another code that does throw an oom upon which this script is called and

Re: Stopping Solr JVM on OOM

2016-03-07 Thread Shawn Heisey
On 2/25/2016 2:06 PM, Fuad Efendi wrote: > The best practice: do not ever try to catch Throwable or its descendants > Error, VirtualMachineError, OutOfMemoryError, and etc. > > Never ever. > > Also, do not swallow InterruptedException in a loop. > > Few simple rules to avoid hanging application.

Re: Stopping Solr JVM on OOM

2016-03-07 Thread Muhammad Zahid Iqbal
You can use ping functionality by setting time-out that suits for your container/web-apps. If its not working then you can restart your container. Cheers! If any other solution I am interested too. On Fri, Feb 26, 2016 at 2:19 AM, CP Mishra wrote: > Solr & Lucene dev folks must be catching Thro

Re: Stopping Solr JVM on OOM

2016-02-25 Thread CP Mishra
Solr & Lucene dev folks must be catching Throwable for a reason. Anyway, I am asking for solutions that I can use. On Thu, Feb 25, 2016 at 3:06 PM, Fuad Efendi wrote: > The best practice: do not ever try to catch Throwable or its descendants > Error, VirtualMachineError, OutOfMemoryError, and et

Re: Stopping Solr JVM on OOM

2016-02-25 Thread Fuad Efendi
The best practice: do not ever try to catch Throwable or its descendants Error, VirtualMachineError, OutOfMemoryError, and etc.  Never ever. Also, do not swallow InterruptedException in a loop. Few simple rules to avoid hanging application. If we follow these, there will be no question "what i

Stopping Solr JVM on OOM

2016-02-25 Thread CP Mishra
Looking at the previous threads (and in our tests), oom script specified at command line does not work as OOM exception is trapped and converted to RuntimeException. So, what is the best way to stop Solr when it gets in OOM state? The only way I see is to override multiple handlers and do System.e

Re: Stopping Solr on Linux when run as a service

2015-11-10 Thread Scott Stults
Steve, In short, don't worry: it all gets taken care of. The way services work on Linux is, when the system shuts down it will basically call "service (servicname) stop" on each service. That calls the bin/init.d/solr script with a "stop" argument, which in turn calls the bin/solr script with a "

Re: Stopping Solr on Linux when run as a service

2015-11-10 Thread Shawn Heisey
On 11/10/2015 7:40 AM, Steven White wrote: > This question maybe more of a Linux one vs. Solr, but I have to start > someplace. > > I'm reading this link > https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production > to get Solr on Linux (I'm more of a Windows guy). > > The page p

Stopping Solr on Linux when run as a service

2015-11-10 Thread Steven White
Hi folks, This question maybe more of a Linux one vs. Solr, but I have to start someplace. I'm reading this link https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production to get Solr on Linux (I'm more of a Windows guy). The page provides good intro on how to setup Solr to start

Re: Stopping Solr instance

2014-04-08 Thread Shawn Heisey
On 4/8/2014 1:28 PM, abhishek jain wrote: What is the best way to stop solr from command line, the command with the stop port and secret key as given in most online help links don't work for me all time, I have to kill it most times ! i have though noted excessive swap usage when i have to kill

Re: Stopping Solr instance

2014-04-08 Thread Ahmet Arslan
Hi, How do you start solr?  On Tuesday, April 8, 2014 10:31 PM, abhishek jain wrote: Hi friends, What is the best way to stop solr from command line, the command with the stop port and secret key as given in most online help links don't work for me all time, I have to kill it most times !

Stopping Solr instance

2014-04-08 Thread abhishek jain
Hi friends, What is the best way to stop solr from command line, the command with the stop port and secret key as given in most online help links don't work for me all time, I have to kill it most times ! i have though noted excessive swap usage when i have to kill it. Is there a link between sw

Re: Stopping solr

2013-01-31 Thread Michael Della Bitta
! > Rui > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Stopping-solr-tp4037715p4037728.html > Sent from the Solr - User mailing list archive at Nabble.com.

Re: Stopping solr

2013-01-31 Thread Michael Della Bitta
> - How often, in your experience, and why, would solr crash? Not very often. Typically if your heap is too small, you'll end up going OOM. > - If I kill solr master and slave, usually do I need to also delete the > indexes? Or everything should be fine upon restarting? Restarts are fine. Orde

Stopping solr

2013-01-31 Thread epnRui
message in context: http://lucene.472066.n3.nabble.com/Stopping-solr-tp4037715.html Sent from the Solr - User mailing list archive at Nabble.com.

How bad is stopping Solr with SIGKILL?

2010-05-31 Thread Andrew Clegg
n the middle of the commit process? Unfortunately I can't tell exactly what it was doing at the time as someone's deleted the logfile :-( Thanks, Andrew. -- View this message in context: http://lucene.472066.n3.nabble.com/How-bad-is-stopping-Solr-with-SIGKILL-tp858119p858119.html Sen

Re: Stopping Solr

2009-10-05 Thread Mark Miller
Sandeep Tagore wrote: > Hello Everyone, > I use "java -jar start.jar" command to start Solr. And when ever i want to > stop it, I kill the process. > Is there any command to stop it? > > Thanks in advance. > > Sandeep > > - > Sandeep Tagore > > Just look up how jetty works - its not Solr sp

Stopping Solr

2009-10-05 Thread Sandeep Tagore
Hello Everyone, I use "java -jar start.jar" command to start Solr. And when ever i want to stop it, I kill the process. Is there any command to stop it? Thanks in advance. Sandeep - Sandeep Tagore -- View this message in context: http://www.nabble.com/Stopping-Solr-tp2575146

Re: Delete complete core without stopping Solr

2009-05-06 Thread Otis Gospodnetic
ucene - Solr - Nutch - Original Message > From: vivek sar > To: solr-user@lucene.apache.org > Sent: Wednesday, May 6, 2009 2:25:50 PM > Subject: Delete complete core without stopping Solr > > Hi, > > I'm using multi-core feature of Solr. Each Solr instanc

Delete complete core without stopping Solr

2009-05-06 Thread vivek sar
Hi, I'm using multi-core feature of Solr. Each Solr instance maintains multiple-core - each core of size 100G. I would like to delete older cores directory completely after 2 weeks (using file.delete). Currently, Solr loads all the cores that are listed in solr.xml. I was thinking of following,

Re: What can be the reason for stopping solr work after some time?

2009-01-23 Thread an...@iguanait.com
Hi, thanks for your reply. Sorry for lesser information that i gave in my first post, i just didn't know what to share. Yes, java proccess is still working, but search in the site does not work and i cannot see any http request at this time in the logs. I have not tested the admin page, this is s

Re: What can be the reason for stopping solr work after some time?

2009-01-21 Thread Chris Hostetter
: i'm newbie with solr. We have installed with together with ezfind from : EZ Publish web sites and it is working. But in one of the servers we : have this kind of problem. It works for example for 3 hours, and then in : one moment it stop to work, searching and indexing does not work. it's prett

What can be the reason for stopping solr work after some time?

2009-01-14 Thread an...@iguanait.com
Hi, i'm newbie with solr. We have installed with together with ezfind from EZ Publish web sites and it is working. But in one of the servers we have this kind of problem. It works for example for 3 hours, and then in one moment it stop to work, searching and indexing does not work. We have set th