You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by "J.W. Janssen (JIRA)" <ji...@apache.org> on 2012/10/17 16:52:03 UTC

[jira] [Created] (ACE-294) Possible heap space problems when storing large repositories

J.W. Janssen created ACE-294:
--------------------------------

             Summary: 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
            Reporter: J.W. Janssen
            Assignee: J.W. Janssen
             Fix For: 1.0.0


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

[jira] [Resolved] (ACE-294) Possible heap space problems when storing large repositories

Posted by "J.W. Janssen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

J.W. Janssen resolved ACE-294.
------------------------------

    Resolution: Fixed

Committed a fix in rev #1399299.
                
> 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
>            Reporter: J.W. Janssen
>            Assignee: J.W. Janssen
>             Fix For: 1.0.0
>
>
> 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