Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8A9980FF for ; Thu, 18 Aug 2011 10:13:57 +0000 (UTC) Received: (qmail 42790 invoked by uid 500); 18 Aug 2011 10:13:56 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 42586 invoked by uid 500); 18 Aug 2011 10:13:50 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 42555 invoked by uid 99); 18 Aug 2011 10:13:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2011 10:13:48 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,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, 18 Aug 2011 10:13:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 38AB4C11E9 for ; Thu, 18 Aug 2011 10:13:27 +0000 (UTC) Date: Thu, 18 Aug 2011 10:13:27 +0000 (UTC) From: "Thomas Mueller (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1357236685.48574.1313662407227.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1716239465.7881.1312461687428.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-3040) JMX Stats for the Session 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/JCR-3040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086929#comment-13086929 ] Thomas Mueller commented on JCR-3040: ------------------------------------- > - 10% slower? I compared the 50% times. Example: test 4 no changes, ConcurrentReadWriteTest: 1902; with changes: 2317. Well, I don't even know if the numbers are "ms" or "op/s" - you tell me :-) > premature optimization My comments are about simplicity and not that much about performance. Simplifying the code almost always makes sense. Simplifying early makes a lot of sense, because people tend to be afraid to simplify 'working' code later on. Using double instead of BigDecimal just simpler. Avoiding divisions in methods that are called very often also seems logical, specially if the resulting code is actually simpler and better (that is: always correct, which it's not currently). Using volatile versus locks is also about simplicity, plus it avoids nasty deadlocks. The rest of my comments are also not really about performance. > JMX Stats for the Session > ------------------------- > > Key: JCR-3040 > URL: https://issues.apache.org/jira/browse/JCR-3040 > Project: Jackrabbit Content Repository > Issue Type: Sub-task > Components: jackrabbit-core > Reporter: Alex Parvulescu > Assignee: Alex Parvulescu > Attachments: JCR-3040.patch, jr-test.log > > > I've named them Core stats. This will include: > - number of sessions currently opened > - session read / write operations per second > The stats refresh once a minute. > This is disabled by default, so it will not affect performance. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira