You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Ricky Nguyen (Resolved) (JIRA)" <ji...@apache.org> on 2012/02/21 06:09:34 UTC

[jira] [Resolved] (OODT-341) XMLPS should be able to stream large results

     [ https://issues.apache.org/jira/browse/OODT-341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ricky Nguyen resolved OODT-341.
-------------------------------

    Resolution: Fixed

https://reviews.apache.org/r/3543/

CDEResultInputStream allows XMLPS to stream responses via chunked Transfer-Encoding
                
> XMLPS should be able to stream large results
> --------------------------------------------
>
>                 Key: OODT-341
>                 URL: https://issues.apache.org/jira/browse/OODT-341
>             Project: OODT
>          Issue Type: Improvement
>          Components: xmlps
>    Affects Versions: 0.4
>            Reporter: Ricky Nguyen
>            Assignee: Chris A. Mattmann
>             Fix For: 0.4
>
>         Attachments: rickdn-grid-oodt-341.patch, rickdn-xmlps-oodt-341.patch, rickdn-xmlps-oodt-341_1.patch
>
>
> Currently, XMLPS stores *ALL* the rows of a ResultSet in a CDEResult object.  In addition, this CDEResult is converted to a String for the HTTPResponse, nearly doubling the memory usage.  With large results, heap space can easily run out, despite increasing max heap space for the servlet container (e.g. -Xmx1024m).  XMLPS should be able to stream/chunk its results, taking into consideration the following:
> # ResultSets _represent_ an iterable collection of rows without actually _storing_ all the rows in memory
> # HTTPResponse#getOutputStream() offers a streaming response, where chunked transfer-encoding and content-length headers are managed automatically by the servlet container (such as Tomcat)

--
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