You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2007/06/01 11:30:16 UTC

[jira] Assigned: (AXIS2-2743) OutOfMemory error returning large xml

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

Deepal Jayasinghe reassigned AXIS2-2743:
----------------------------------------

    Assignee: Deepal Jayasinghe

> OutOfMemory error returning large xml
> -------------------------------------
>
>                 Key: AXIS2-2743
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2743
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP
>            Reporter: Tammy Dugan
>            Assignee: Deepal Jayasinghe
>         Attachments: services.xml, TestAxis2ReturnDataset.java
>
>
> When I try to return 270 MB of xml from an axis2 service, I get an OutOfMemory error. I wrote my own CustomDataSource and the error occurs in the following serialize method:
> public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
> 	{
> 		XMLStreamReader reader = null;
> 		StreamingOMSerializer serializer = new StreamingOMSerializer();
> 		reader = getReader();
> 		System.out.println("before out of memory error");
> 		serializer.serialize(reader, xmlWriter);// OutOfMemory error here
> 		System.out.println("after out of memory error");
> 		xmlWriter.flush();
> 	}
> If I run the serialize locally and create my own xmlWriter, there is no error. However, if the serialize gets called from an axis2 service, an OutOfMemory error occurs. Because of this, I really think that axis2 is using a writer as input to XMLStreamWriter that is buffering all the data. It shouldn't be doing that.

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org