Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-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 73F6DD346 for ; Tue, 3 Jul 2012 18:31:22 +0000 (UTC) Received: (qmail 17802 invoked by uid 500); 3 Jul 2012 18:31:22 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 17084 invoked by uid 500); 3 Jul 2012 18:31:21 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 16720 invoked by uid 99); 3 Jul 2012 18:31:20 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 18:31:20 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id D2570142852 for ; Tue, 3 Jul 2012 18:31:20 +0000 (UTC) Date: Tue, 3 Jul 2012 18:31:20 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Message-ID: <890264687.551.1341340280864.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1103254345.56697.1340722424906.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (OPENJPA-2220) Persistent field fetching statistic tool 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/OPENJPA-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405972#comment-13405972 ] Rick Curtis commented on OPENJPA-2220: -------------------------------------- I committed revision 1356860 to trunk. This first iteration of this tool is limited in usage. Currently it is not configurable. Once it is on the classpath, it starts running. When you take it off the classpath, it stops running. It is also depended upon runtime (ie: javaagent or container enhancement) enhancement. I modified a number of things from the original patch to make it more usable... When the code first gets loaded up you'll see this message[1] so a user is notified when it is running. Also, when the statistics are dumped you'll see a message along these lines[2]. I'll also note that I modified the pom to spit out another jar file that allows this tool to work in a WebSphere environment. [1] 3094 fetchStatisticPU INFO [main] openjpa.Runtime - The FetchStatisticsAuxEnhancer has been loaded and is tracking persistent field usage. [2] 4226 fetchStatisticPU INFO [Thread-5] openjpa.Runtime - Successfully collected fetch statistics from Entities [org.apache.openjpa.enhance.stats.AEntity,..., org.apache.openjpa.enhance.stats.EEntity]. The following fields are FetchType.EAGER and were never fetched [ total 10 ] : org.apache.openjpa.enhance.stats.AEntity.checked org.apache.openjpa.enhance.stats.AEntity.desc org.apache.openjpa.enhance.stats.AEntity.extraInfo org.apache.openjpa.enhance.stats.AEntity.name ... > Persistent field fetching statistic tool > ---------------------------------------- > > Key: OPENJPA-2220 > URL: https://issues.apache.org/jira/browse/OPENJPA-2220 > Project: OpenJPA > Issue Type: Improvement > Components: tooling > Affects Versions: 2.3.0, 2.2.1 > Reporter: Helen Xu > Assignee: Rick Curtis > Attachments: OPENJPA-2220Patch.txt, statisticToolDocPatch.txt > > > This task is to create a statistic tool which monitors the persistent fields fetching and finds out the fields which are never accessed. Based on the statistic data, user can set the field access type to LAZY to improve the performance by eliminating the data loading and processing time. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira