Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7CB66597 for ; Thu, 23 Jun 2011 01:21:10 +0000 (UTC) Received: (qmail 52235 invoked by uid 500); 23 Jun 2011 01:21:09 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 52150 invoked by uid 500); 23 Jun 2011 01:21:09 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 51923 invoked by uid 99); 23 Jun 2011 01:21:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 01:21:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 01:21:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C6FE842A780 for ; Thu, 23 Jun 2011 01:20:47 +0000 (UTC) Date: Thu, 23 Jun 2011 01:20:47 +0000 (UTC) From: "Hudson (JIRA)" To: commits@cassandra.apache.org Message-ID: <297016584.31208.1308792047811.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1632668864.27640.1308727067804.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-2808) add java vendor/versoin to cassandra startup logging MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-2808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053582#comment-13053582 ] Hudson commented on CASSANDRA-2808: ----------------------------------- Integrated in Cassandra-0.8 #185 (See [https://builds.apache.org/job/Cassandra-0.8/185/]) > add java vendor/versoin to cassandra startup logging > ---------------------------------------------------- > > Key: CASSANDRA-2808 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2808 > Project: Cassandra > Issue Type: Improvement > Reporter: Jackson Chung > Assignee: Jackson Chung > Priority: Minor > Fix For: 0.8.2 > > Attachments: 2808.patch > > > currently to determine which exact java is being used by the CassandraDaemon jvm could be difficult. Some may have use rpm/deb java package, other may have used tarbar and set JAVA_HOME, PATH, etc etc. > It "could be" done, but may take some iteration to get the true answer if one's setup is complicated (user is root/cassandra and contains difference env settings between cassandra startup user vs the login user) > It would be very helpful to have this information simply logged in the log file, right at the beginning. This helps identifying the java type/version quickly without much operation overhead, and easily done in 1-liner: > logger.info("Java vendor/version: {}/{}", System.getProperty("java.vm.name"), System.getProperty("java.version") ); > In OpenJDK java, you will something similar to: > INFO [main] 2011-06-22 07:08:16,610 AbstractCassandraDaemon.java (line 95) Java vendor/version: OpenJDK 64-Bit Server VM/1.6.0_20 > In Java(TM), you will get something like: > INFO [main] 2011-06-22 00:15:34,936 AbstractCassandraDaemon.java (line 96) Java vendor/version: Java HotSpot(TM) 64-Bit Server VM/1.6.0_24 > this little edition will go a long way. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira