find in startup script may run for long time

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

it will take part of a second.

Environment

linux server

Status

Assignee

Andrea Aime

Reporter

Simon Hofer

Triage

Fix versions

Affects versions

Priority

Medium
Configure