[Geoserver-devel] [JIRA] (GEOS-8358) find in startup script may run for long time

Simon Hofer created an issue

GeoServer / BugGEOS-8358

find in startup script may run for long time

Issue Type:

BugBug

Affects Versions:

2.12.0

Assignee:

Unassigned

Created:

21/Oct/17 11:19 AM

Environment:

linux server

Priority:

MediumMedium

Reporter:

Simon Hofer

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.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100066-sha1:072db08)

Atlassian logo