You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Timothy Potter (JIRA)" <ji...@apache.org> on 2014/12/24 00:23:13 UTC

[jira] [Comment Edited] (SOLR-6851) Scripts to help install and run Solr as a service on Linux

    [ https://issues.apache.org/jira/browse/SOLR-6851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14257333#comment-14257333 ] 

Timothy Potter edited comment on SOLR-6851 at 12/23/14 11:22 PM:
-----------------------------------------------------------------

Updated patch now includes a helper script that performs the service installation tasks described in the ref guide (https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production), see bin/install_solr_service.sh

I've only tested it on Red Hat, Ubuntu, SUSE, and Debian ... we can add support for additional Linux distros in the future.


was (Author: thelabdude):
Updated patch now includes a helper script that performs the service installation tasks described in the ref guide (https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production), see bin/install_solr_service.sh

I've only tested it on Red Hat, Ubuntu, and Debian ... we can add support for additional Linux distros in the future.

> Scripts to help install and run Solr as a service on Linux
> ----------------------------------------------------------
>
>                 Key: SOLR-6851
>                 URL: https://issues.apache.org/jira/browse/SOLR-6851
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>            Assignee: Timothy Potter
>             Fix For: 5.0
>
>         Attachments: SOLR-6851.patch, SOLR-6851.patch, SOLR-6851.patch
>
>
> noticed 2 problems with the oom_solr.sh script...
> 1) the script is only being run with the port of hte solr instance to terminate, so the log messages aren't getting writen to the correct directory -- if we change hte script to take a log dir/file as an argument, we can ensure the logs are written to the correct place
> 2) on my ubuntu linux machine (where /bin/sh is a symlink to "/bin/dash"), the console log is recording a script error when java runs oom_solr.sh...
> {noformat}
> #
> # java.lang.OutOfMemoryError: Java heap space
> # -XX:OnOutOfMemoryError="/home/hossman/lucene/5x_dev/solr/bin/oom_solr.sh 8983"
> #   Executing /bin/sh -c "/home/hossman/lucene/5x_dev/solr/bin/oom_solr.sh 8983"...
> /home/hossman/lucene/5x_dev/solr/bin/oom_solr.sh: 20: [: 14305: unexpected operator
> Running OOM killer script for process 14305 for Solr on port 8983
> Killed process 14305
> {noformat}
> steps to reproduce: {{bin/solr -e techproducts -m 10m}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org