Return-Path: Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: (qmail 86366 invoked from network); 28 Jul 2008 06:06:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jul 2008 06:06:23 -0000 Received: (qmail 31410 invoked by uid 500); 28 Jul 2008 06:06:22 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 31363 invoked by uid 500); 28 Jul 2008 06:06:22 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 31352 invoked by uid 99); 28 Jul 2008 06:06:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jul 2008 23:06:22 -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; Mon, 28 Jul 2008 06:05:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C866B234C18A for ; Sun, 27 Jul 2008 23:05:31 -0700 (PDT) Message-ID: <1461088843.1217225131819.JavaMail.jira@brutus> Date: Sun, 27 Jul 2008 23:05:31 -0700 (PDT) From: "Saliya Ekanayake (JIRA)" To: dev@synapse.apache.org Subject: [jira] Updated: (SYNAPSE-408) Improve Synapse Memory Footprint under HTTP 1.0 In-Reply-To: <1055684482.1217225131767.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/SYNAPSE-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Saliya Ekanayake updated SYNAPSE-408: ------------------------------------- Priority: Minor (was: Major) > Improve Synapse Memory Footprint under HTTP 1.0 > ----------------------------------------------- > > Key: SYNAPSE-408 > URL: https://issues.apache.org/jira/browse/SYNAPSE-408 > Project: Synapse > Issue Type: Improvement > Reporter: Saliya Ekanayake > Priority: Minor > > Synapse serializes the SOAP envelope in order to calculate the content length of the message under HTTP 1.0. This serialization is done inside the class Axis2HttpRequest which is inside the transports module. The serialized bytes are then stored in the message context for future use by the streamMessageContents() method inside the same class. > Thus, the entire content of the SOAP envelope is stored inside the memory leading to a possible out of memory situation when the XML data is large. A solution to this would be to write some of the data to a permanent storage (like hard disk) based on a threshold value. The TemporaryData class inside the core module is a good solution to this kind of work. It would, however, incur a cyclic dependency if used inside the Axis2HttpRequest class. > If we can resolve this issue (probably by moving the TemporaryData class to a utility module and then making the core too depend on that) it will of great use in improving the memory footprint of Synapse. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org For additional commands, e-mail: dev-help@synapse.apache.org