users@glassfish.java.net

Re: MTOM with large files

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Fri, 24 Aug 2007 17:21:52 -0700

Drinkwater, GJ (Glen) wrote:
> Hi
>
> Whats the largest file anyone has transferred using MTOM? I cannot
> get anything over ~60M to work without OutOfMemoryError with Glassfish v2.
It depends on the heap size of your VM. You can send and receive larger
files by increasing the heap size(-Xmx option). In JAX-WS 2.1.2(that's
in V2), all the attachment data is kept in memory and you are going to
hit the wall for large attachments.
>
> I have seen this bug
> https://jax-ws.dev.java.net/issues/show_bug.cgi?id=29 , has this been
> fixed in version 2.1?, what version of JAXWS does v2 RC4 use??
It is getting fixed in 2.1.3. I updated the bug : 29 with more details.
Unfortunately, it's not going to be available in v2 (may be in an update
release).
But you can always configure JAX-WS 2.1.3 on any container.

Jitu
>
> Glen