Return-Path: X-Original-To: apmail-ace-commits-archive@www.apache.org Delivered-To: apmail-ace-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C2EFD289 for ; Mon, 27 May 2013 07:40:37 +0000 (UTC) Received: (qmail 29782 invoked by uid 500); 27 May 2013 07:40:36 -0000 Delivered-To: apmail-ace-commits-archive@ace.apache.org Received: (qmail 29531 invoked by uid 500); 27 May 2013 07:40:34 -0000 Mailing-List: contact commits-help@ace.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ace.apache.org Delivered-To: mailing list commits@ace.apache.org Received: (qmail 28652 invoked by uid 99); 27 May 2013 07:40:31 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 May 2013 07:40:31 +0000 Date: Mon, 27 May 2013 07:40:30 +0000 (UTC) From: "Bram de Kruijff (JIRA)" To: commits@ace.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (ACE-294) Possible heap space problems when storing large repositories 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/ACE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bram de Kruijff reopened ACE-294: --------------------------------- > Possible heap space problems when storing large repositories > ------------------------------------------------------------ > > Key: ACE-294 > URL: https://issues.apache.org/jira/browse/ACE-294 > Project: ACE > Issue Type: Bug > Affects Versions: 0.8.0-incubator > Reporter: J.W. Janssen > Assignee: J.W. Janssen > > When storing repositories, a HTTP POST is performed to upload the new repository to the server. This is *not* done in streaming mode, causing the used HttpURLConnection to buffer the entire repository in memory prior to posting it to the server. When a large repository is used it could lead to heap space problems. > The solution is to enable "streaming" HttpURLConnection by setting its chunk length property to a non-zero value (HttpURLConnection#setChunkedStreamingMode()). -- 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