Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6851

Scripts to help install and run Solr as a service on Linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0, 6.0
    • None
    • None

    Description

      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...

      #
      # 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
      

      steps to reproduce: bin/solr -e techproducts -m 10m

      Attachments

        1. SOLR-6851.patch
          26 kB
          Timothy Potter
        2. SOLR-6851.patch
          37 kB
          Timothy Potter
        3. SOLR-6851.patch
          38 kB
          Timothy Potter

        Issue Links

          Activity

            People

              thelabdude Timothy Potter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: