axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "benjamin lefevre (JIRA)" <>
Subject [jira] Commented: (AXIS2-2285) MTOM sample fails with large files (e.g. 37MB)
Date Sat, 03 Mar 2007 08:24:50 GMT


benjamin lefevre commented on AXIS2-2285:

Dear Thilina,

Actually after my post, I tried to enable file caching after having read this user-guide at: .

And it does not solve my issue. Worse, I get another one.:
-with small files (<1MB), the process on server side is never ending (running endless);
but I can see that the file has correctly been received and dumped into the file system.
-with very large file(~600MB), I always got the same error: java.lang.OutOfMemoryError.

I've the same issue on two different computer (Windows OS: XP (1GB) and Vista (2GB)).

> MTOM sample fails with large files (e.g. 37MB)
> ----------------------------------------------
>                 Key: AXIS2-2285
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: samples
>    Affects Versions: 1.1.1
>         Environment: Windows XP, Tomcat 5.5, JRE sun 1.5.0_06
>            Reporter: benjamin lefevre
> The MTOM sample works fine with files from 0 to 10MB, until I tried to work with a large
file (37MB).
> I get an OutOfMemoryException on both side (client and server):
> client side: 
> Exception in thread "main" org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java
heap space
> 	at org.apache.axis2.description.OutInAxisOperationClient.send(
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(
> 	at sample.mtom.service.MTOMSampleStub.attachment(
> 	at sample.mtom.client.Client.transferFile(
> 	at sample.mtom.client.Client.main(
> server side:
> 2 mars 2007 18:52:28 org.apache.axis2.transport.http.AxisServlet doPost
> GRAVE: java.lang.OutOfMemoryError: Java heap space
> I am a bit disapointed, since I was thinking that MTOM would permit to upload large file
over SOAP/HTTP streaming without requiring extra-memory. I set the JVM's (tomcat and client)
with large heap size (using -Xmx1024m option). Do I miss something ?

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:
For additional commands, e-mail:

View raw message