From solr-user-return-143778-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Sun Sep 16 15:43:28 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 314A1180652 for ; Sun, 16 Sep 2018 15:43:28 +0200 (CEST) Received: (qmail 16715 invoked by uid 500); 16 Sep 2018 13:43:26 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 16703 invoked by uid 99); 16 Sep 2018 13:43:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2018 13:43:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A2CA5180ABE for ; Sun, 16 Sep 2018 13:43:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.111 X-Spam-Level: X-Spam-Status: No, score=-0.111 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=centrum.cz Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 5qYzhxOnglyU for ; Sun, 16 Sep 2018 13:43:23 +0000 (UTC) Received: from gmmr3.centrum.cz (gmmr3.centrum.cz [46.255.225.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DE5805F3EE for ; Sun, 16 Sep 2018 13:43:22 +0000 (UTC) Received: from mail1007.cent (unknown [10.255.254.11]) by gmmr3.centrum.cz (Postfix) with ESMTP id 0085F1800B225 for ; Sun, 16 Sep 2018 15:43:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=centrum.cz; s=mail; t=1537105396; bh=cczxxNITaz2kUxgLstpvaObwy3YbAxVSRJ9pNO2Uc9E=; h=To:Subject:Date:From:References:In-Reply-To:From; b=kF2h3wJKKUPNWEleasnvWnawucyoPRGfmh9EGVHCBiguddSRJffTyKIJwJH+XYdya PdFzEemWmmq0jlV/hVXcoHQnuPznFuOFG2WnpZjZjoOB2sgOJPayn2Gv472QZF8v4B msrN1EKysD2gPdc/00zJWKFVE/WmXvKSPP8911vU= Received: by mail1007.cent (Postfix, from userid 33) id ED5FB60000204; Sun, 16 Sep 2018 15:43:15 +0200 (CEST) To: Subject: =?utf-8?q?Re=3A_Setting_of_TMP_in_solr=2Ecmd_=28for_Windows=29_causes_invisibility_of_the_Solr_to_JDK_monitoring_tools?= Received: from 62.24.82.107 by mail1007.centrum.cz (centrum.cz multimail) with HTTP Date: Sun, 16 Sep 2018 15:43:15 +0200 From: References: <20180902224742.A356C76E@centrum.cz> 000a0000001000001b10044646a5 In-Reply-To: 000a0000001000001b10044646a5 X-Mailer: Centrum Email 5.3 X-Priority: 3 X-Original-From: p.bodnar@centrum.cz MIME-Version: 1.0 Message-Id: <20180916154315.0922A29C@centrum.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Erick, thanks for your feedback, so I've created a corresponding issue in here: https://issues.apache.org/jira/browse/SOLR-12776 Hopefully that will suffice :) Regards Petr ______________________________________________________________ > Od: "Erick Erickson" > Komu: "solr-user" > Datum: 03.09.2018 01:38 > Předmět: Re: Setting of TMP in solr.cmd (for Windows) causes invisibility of the Solr to JDK monitoring tools > >Hmmm, please raise a JIRA and, if possible, attach a patch that works >for you. Most of us don't have Windows machines readily available >which hobbles testing, so it's very helpful of someone can test in a >real environment. > >Best, >Erick >On Sun, Sep 2, 2018 at 1:47 PM wrote: >> >> Hi, >> >> please notice the following lines added (among others) to "solr.cmd" by commit https://github.com/apache/lucene-solr/commit/b36c68b16e67ae701cefce052a4fdbaac88fb65c for https://issues.apache.org/jira/browse/SOLR-6833 about 4 years ago: >> >> set TMP=!SOLR_HOME:%EXAMPLE_DIR%=! >> IF NOT "%TMP%"=="%SOLR_HOME%" ( >> set "SOLR_LOGS_DIR=%SOLR_HOME%\..\logs" >> set "LOG4J_CONFIG=file:%EXAMPLE_DIR%\resources\log4j.properties" >> ) >> >> 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_" directory for storing applications' monitoring data should be located. And if this is changed, JDK tools like JVisualVM and others won't locally see the given Java application, because they search in a different default location. Tested with Java 8u152 and Solr 6.3.0. >> >> So Solr authors, could you please rename that "TMP" variable to something else, or maybe remove it completely (not sure about the latter alternative)? Hopefully it is as easy as described above and I haven't overlooked some special meaning of that problematic lines... >> >> Best regards >> >> Petr B. > >