Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 33927 invoked from network); 23 Jul 2008 12:48:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2008 12:48:24 -0000 Received: (qmail 97285 invoked by uid 500); 23 Jul 2008 12:48:23 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 97202 invoked by uid 500); 23 Jul 2008 12:48:23 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 97169 invoked by uid 99); 23 Jul 2008 12:48:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 05:48:23 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 12:47:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 67C91234C17F for ; Wed, 23 Jul 2008 05:47:32 -0700 (PDT) Message-ID: <1819604792.1216817252424.JavaMail.jira@brutus> Date: Wed, 23 Jul 2008 05:47:32 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3731) Improve calculation of refSize in ClassSize.java In-Reply-To: <1481704965.1213911705179.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615999#action_12615999 ] Kristian Waagan commented on DERBY-3731: ---------------------------------------- Thanks for looking at the patch, Knut Anders. Your comments are all valid, I'll incorporate them in the next revision. I investigated a little more regarding the permissions. Seems Derby isn't allowed to read sun.arch.data.model with the current policy file, but it is allowed to read os.arch for some reason. Adding code to print the current permissions shows that reading the property os.arch is indeed granted, but it is not in our default policy file. Since I don't know if this is specific for the Sun JVM or not, maybe we should document and add both permissions to the default policy file? > Improve calculation of refSize in ClassSize.java > ------------------------------------------------- > > Key: DERBY-3731 > URL: https://issues.apache.org/jira/browse/DERBY-3731 > Project: Derby > Issue Type: Bug > Components: SQL > Reporter: Kathey Marsden > Priority: Minor > Attachments: derby-3731-1a-refsize_from_properties.diff, DERBY-3731_diff.txt > > > java/engine/org/apache/derby/iapi/services/cache/ClassSize.java has a static code block which calculates the size of a reference for the architecture. This code could be improved by adding garbage collection before measuring memory, to give a consistent reading. Also there have been suggestions that we use os.arch or sun.arch.data.model to make the measurement more reliable, especially on 64bit machines. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.