Uploaded image for project: 'GeoServer'
  1. GEOS-8358

find in startup script may run for long time

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.12.0
    • Fix Version/s: 2.12.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      linux server

      Description

      I saw one of my new geoserver hang on startup for minutes on a `find` command spawned from startup.sh script.

      I found the find call in https://github.com/geoserver/geoserver/blob/master/src/release/bin/startup.sh#L74

      In my case there are several folders in data directory wich contains mass of files. So the find through the whole $GEOSERVER_HOME takes up to 10 minutes.

      with

      export MARLIN_JAR=`find \`pwd\` -mindepth 1 -maxdepth 1 -type d -not -path "\`pwd\`/data*" -not -path "\`pwd\`/logs" -exec find "{}" -name "marlin*.jar"  \; | head -1`
      
      

      it will take part of a second.

        Attachments

          Activity

            People

            • Assignee:
              aaime Andrea Aime
              Reporter:
              simon.hofer Simon Hofer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: