lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (JIRA)" <>
Subject [jira] [Resolved] (SOLR-12776) Setting of TMP in solr.cmd causes invisibility of Solr to JDK tools
Date Mon, 24 Sep 2018 04:48:00 GMT


Erick Erickson resolved SOLR-12776.
       Resolution: Fixed
    Fix Version/s: master (8.0)

Thanks Petr!

> Setting of TMP in solr.cmd causes invisibility of Solr to JDK tools
> -------------------------------------------------------------------
>                 Key: SOLR-12776
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>    Affects Versions: 5.0
>         Environment: Windows. Tested with Java 8u152 and Solr 6.3.0.
>            Reporter: Petr Bodnar
>            Assignee: Erick Erickson
>            Priority: Major
>             Fix For: 7.6, master (8.0)
>         Attachments: SOLR-12776.patch, SOLR-12776.patch, SOLR-12776.patch, simple-rename-fix.patch
> (issue firstly discussed in here:
> Please notice the following lines added (among others) to "solr.cmd" by commit []
for about 4 years ago (v5.0):
> {code:java}
> IF NOT "%TMP%"=="%SOLR_HOME%" (
>   set "SOLR_LOGS_DIR=%SOLR_HOME%\..\logs"
>   set "LOG4J_CONFIG=file:%EXAMPLE_DIR%\resources\"
> ){code}
> Apparently, the new variable "TMP" is just a temporary one, but by coincidence, this
variable is also important for JVM. As this system variable tells where the "hsperfdata_<username>"
directory for storing applications' monitoring data should be located. And if this is changed,
JDK tools like JVisualVM, jps and others won't locally see the given Java application, because
they search in a different default location.
> h3. Proposed solution
> A working solution seems to be just to *rename the TMP variable* to for example TMP1
as in the attached [^simple-rename-fix.patch]. Maybe even a simple "==" comparison of SOLR_HOME
and EXAMPLE_DIR could (should?) be made, but I don't have enough time to study and test this

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message