Hi Peter,

Obviously the max request size for a GET request is about 256 characters, and that's 
really short xD

My error was to think the method getContentLength was going to read the http header 
content-length with a low memory cost, but i miss... so i was surprised when i got the 
OOM :S

Yes, i thought to send data in the atachments, but i haven't probe it.  I've only want 
to refuse too big request, don't process them, so my filter solution isn't good for 
you :(

Well, thank you Peter :)

-----Mensaje original-----
De: Peter Molettiere [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 14 de mayo de 2004 0:38
Para: [EMAIL PROTECTED]
Asunto: Re: SOAP message size limit with Axis



We've been having possibly similar problems, and traced it into axis. 
Apparently, axis does a lot of short-term object creation during 
serialization, which can result in OutOfMemoryExceptions for reasonably 
large data sets (30M), even with -Xmx set to values up to 1.5G. In a 
profiler we can see that axis has a major sawtooth profile for its 
memory usage while it serializes, which results in the 
OutOfMemoryException.

We're planning to fix the issue by sending our data as an attachment, 
avoiding the overhead of the axis serialization code.

I don't know whether message.getContentLength() actually tries to 
deserialize the stream or not -- you'd think it would just read the 
header. (I'm assuming you're using POST, as GET probably wouldn't give 
you enough data to cause the OOM.)

--Peter

On May 13, 2004, at 3:08 PM, Nelson Minar wrote:

>> When the request comes into the Handler (i'm using the axis stable
>> version 1.1), when i try to do an Long length =
>> message.getContentLength(), my Tomcat3 server prints out a nice
>> OutOfMemoryException, so i can't discard the long messages.
>
> Do you know about the -Xmx flag to the JVM to increase the amount of
> memory it is allowed to access? This is not specific to Tomcat or
> Axis, but more a general Java thing.



---------------------------------------------------------------------------
Este mensaje se dirige exclusivamente a su destinatario y puede contener
informacion privilegiada o confidencial. Si no es vd. el destinatario 
indicado, queda notificado de que la utilizacion, divulgacion y/o copia sin 
autorizacion esta prohibida en virtud de la legislacion vigente. Si ha
recibido este mensaje por error, le rogamos que nos lo comunique. 
 
This message is intended exclusively for its addressee and may contain 
information that is CONFIDENTIAL and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly
prohibited by law. If this message has been received in error, please
immediately notify us via e-mail and delete it. 
---------------------------------------------------------------------------

Reply via email to