Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 59BDE9649 for ; Tue, 12 Mar 2013 17:37:33 +0000 (UTC) Received: (qmail 67384 invoked by uid 500); 12 Mar 2013 17:28:11 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 93018 invoked by uid 500); 12 Mar 2013 17:25:45 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 45762 invoked by uid 99); 12 Mar 2013 17:05:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2013 17:05:12 +0000 Date: Tue, 12 Mar 2013 17:05:12 +0000 (UTC) From: "Aki Yoshida (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CXF-4867) Extensive memory usage when reading from CRM 2011 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/CXF-4867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aki Yoshida resolved CXF-4867. ------------------------------ Resolution: Invalid refer to my comment from 03/12 and one before by the reporter. > Extensive memory usage when reading from CRM 2011 > ------------------------------------------------- > > Key: CXF-4867 > URL: https://issues.apache.org/jira/browse/CXF-4867 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 2.7.3 > Environment: Windows 7 Enterprise SP1, Java 1.6.0_37 (32 bit) > Reporter: Ulrich Kaiser > Assignee: Aki Yoshida > Attachments: Connection.txt, Instances.png, krb5.conf, LivePaths.png, login.conf, Memory2.png, Prompt.png, TestCXF.zip, VisualVM.jpg > > > Hi there! > I have written a test program that reads entities from a Microsoft Dynamics CRM 2011 using CXF 2.7.3. The program was compiled and run as a runnable jar with Java 1.6.0_37 (32 bit). > Now, when I run the program (in my case with the command line 'java.exe -Xmx1600m -jar TestCXF.jar contact 2013-02-25') and look at the memory usage, I do not understand why it needs so much memory (about 1.6 GB) for only 4 * 3099 records, even though the records are minimal (no attributes). The consequence is that when I have to read more records (e. g. the target CRM has more than 50'000 contacts), I will get an OutOfMemoryError. > Furthermore, the test program finishes after four loops and releases its memory. The actual productive program on the other hand is meant to run for hours, so it would be very helpful to know how to free the memory, but calling System.gc() or re-connecting to the CRM did not work. > Do you perhaps have an explanation for this behavior and can you give me a hint how to lower the memory usage? > I have attached two screen-shots and a zip file with the runnable jar and the main source files. If you need any further information please do not hesitate to send a mail. > Thank you and kind regards > Ulrich -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira