SOLR 7.4.0

We recently encountered an issue on Windows where the cleanup/uninstall
processes for our product were having difficulties deleting "hsperf"
directories created in SOLR's data directory. Somehow, these directories
ended up with permissions preventing anyone from deleting them. Further
investigation revealed that they are actually created by a JVM feature,
jvmstat, which can be disabled via "-XX:-UsePerfData".

Unfortunately, adding that to SOLR_OPTS is insufficient, because that
variable is only passed to the start command.  At least in solr.cmd, there
are other java calls that apparently result in the creation of these hsperf
directories.

For now, we have simply added "-XX:-UsePerfData" to all java calls in
solr.cmd to work around the problem. But that is not great, as we would need
to make the same changes to solr.cmd every time we upgraded SOLR. It would
be nice if there was some way to pass JVM options to all java calls launched
by solr.cmd (and the linux solr script).  Would this be worth a
lower-priority bug?



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to