You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Justin Echternach <ju...@hescorp.com> on 2005/02/25 02:58:23 UTC

Axis client OutOfMemoryError

I am getting an OutOfMemoryError when passing an xml string to a web service
using axis.  The xml string is 5 Mb long. 

I read many different threads with the same error, but didn't come across a
resolution.  Is there a way to make this work with Axis without using SOAP
w/ attachments?

I am in a bind and need to be able to pass large strings to this web
service.

Thanks in advance.

Justin


Re: Axis client OutOfMemoryError

Posted by Yves Langisch <li...@langisch.ch>.
This won't make any difference to the amount of data which has to be
serialized. The process of serializing/deserializing is memory
intensive.

Yves

On Fri, 2005-02-25 at 13:14 +0100, Sebastien Mayemba Mbokoso wrote:
> I think the best way is u try to create a class which can make
> compression. So u're going
> to use the class both in the client side and the server side. The
> client side for the uncompression and the server for the compression.
> For the compression i think that u have
> two choices : hardware or software (Jax RPC Handler, Servlet filter).
> Bill don't keep in mind
>  i didn't try that before. It's just an idea i am giving you. 
> 
> -----------
> Sebastien
> 
> On Fri, 25 Feb 2005 11:12:06 +0900, Bill Keese
> <bi...@tech.beacon-it.co.jp> wrote:
> > Solving this problem for client and server are pretty similar.  You
> > probably need to bump up your client memory size to 128M instead of the
> > default 64M  (-Xmx128m option to "java").  And you should try the newest
> > Xerces, etc.  I am passing 4MB strings with no problem.
> > 
> > Justin Echternach wrote:
> > 
> > >I am getting an OutOfMemoryError when passing an xml string to a web service
> > >using axis.  The xml string is 5 Mb long.
> > >
> > >I read many different threads with the same error, but didn't come across a
> > >resolution.  Is there a way to make this work with Axis without using SOAP
> > >w/ attachments?
> > >
> > >I am in a bind and need to be able to pass large strings to this web
> > >service.
> > >
> > >Thanks in advance.
> > >
> > >Justin
> > >
> > >
> > >
> > >
> > >
> >
> 


Re: Axis client OutOfMemoryError

Posted by Sebastien Mayemba Mbokoso <se...@gmail.com>.
I think the best way is u try to create a class which can make
compression. So u're going
to use the class both in the client side and the server side. The
client side for the uncompression and the server for the compression.
For the compression i think that u have
two choices : hardware or software (Jax RPC Handler, Servlet filter).
Bill don't keep in mind
 i didn't try that before. It's just an idea i am giving you. 

-----------
Sebastien

On Fri, 25 Feb 2005 11:12:06 +0900, Bill Keese
<bi...@tech.beacon-it.co.jp> wrote:
> Solving this problem for client and server are pretty similar.  You
> probably need to bump up your client memory size to 128M instead of the
> default 64M  (-Xmx128m option to "java").  And you should try the newest
> Xerces, etc.  I am passing 4MB strings with no problem.
> 
> Justin Echternach wrote:
> 
> >I am getting an OutOfMemoryError when passing an xml string to a web service
> >using axis.  The xml string is 5 Mb long.
> >
> >I read many different threads with the same error, but didn't come across a
> >resolution.  Is there a way to make this work with Axis without using SOAP
> >w/ attachments?
> >
> >I am in a bind and need to be able to pass large strings to this web
> >service.
> >
> >Thanks in advance.
> >
> >Justin
> >
> >
> >
> >
> >
>

Re: Axis client OutOfMemoryError

Posted by Bill Keese <bi...@tech.beacon-it.co.jp>.

Justin Echternach wrote:

>Now I am getting "Connection reset by peer".  It only happens with the 5Mb
>file.  I imagine that is on the server end.  The server is a .net web
>service at a business partners location.
>  
>
Hmm, sounds like .NET is having problems with that big file also.  I 
remember hearing about a 4M limit, but I don't remember if that was Axis 
or .NET.  In any case you can probably configure it.  But I guess you 
will have to talk to the people hosting the service.

RE: Axis client OutOfMemoryError

Posted by Justin Echternach <ju...@hescorp.com>.
Thanks Bill!

That fixed my OutOfMemoryError.

Now I am getting "Connection reset by peer".  It only happens with the 5Mb
file.  I imagine that is on the server end.  The server is a .net web
service at a business partners location.

Thanks again,

Justin

------------------------------------
Harris Echternach Solutions Corporation
Justin Echternach
justin@hescorp.com
tel: 813-963-1076
fax: 813-963-0268
mobile: 813-205-7849
------------------------------------

-----Original Message-----
From: Bill Keese [mailto:billk@tech.beacon-it.co.jp] 
Sent: Thursday, February 24, 2005 9:12 PM
To: axis-user@ws.apache.org
Subject: Re: Axis client OutOfMemoryError

Solving this problem for client and server are pretty similar.  You 
probably need to bump up your client memory size to 128M instead of the 
default 64M  (-Xmx128m option to "java").  And you should try the newest 
Xerces, etc.  I am passing 4MB strings with no problem.

Justin Echternach wrote:

>I am getting an OutOfMemoryError when passing an xml string to a web
service
>using axis.  The xml string is 5 Mb long. 
>
>I read many different threads with the same error, but didn't come across a
>resolution.  Is there a way to make this work with Axis without using SOAP
>w/ attachments?
>
>I am in a bind and need to be able to pass large strings to this web
>service.
>
>Thanks in advance.
>
>Justin
>
>
>
>  
>


Re: Axis client OutOfMemoryError

Posted by Bill Keese <bi...@tech.beacon-it.co.jp>.
Solving this problem for client and server are pretty similar.  You 
probably need to bump up your client memory size to 128M instead of the 
default 64M  (-Xmx128m option to "java").  And you should try the newest 
Xerces, etc.  I am passing 4MB strings with no problem.

Justin Echternach wrote:

>I am getting an OutOfMemoryError when passing an xml string to a web service
>using axis.  The xml string is 5 Mb long. 
>
>I read many different threads with the same error, but didn't come across a
>resolution.  Is there a way to make this work with Axis without using SOAP
>w/ attachments?
>
>I am in a bind and need to be able to pass large strings to this web
>service.
>
>Thanks in advance.
>
>Justin
>
>
>
>  
>

RE: How to integrate Axis with Spring MVC?

Posted by John Menke <jo...@eagleinfosystems.com>.
See

http://opensource.atlassian.com/projects/spring/browse/SPR-371

-----Original Message-----
From: Kevin Duffey [mailto:supreme_java_guru_1@yahoo.com]
Sent: Friday, February 25, 2005 1:28 AM
To: axis-user@ws.apache.org
Subject: How to integrate Axis with Spring MVC?


I am hoping I can make use of Spring MVC running
inside of JBoss/Tomcat so that I can cluster a larger
number of servers to expand our needs as we grow. We
want to support web services for all our client-side
traffic to the server side. Is it possible to use Axis
for this directly within Spring? Or is there a better
api for web services within Spring?

Thanks.



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

How to integrate Axis with Spring MVC?

Posted by Kevin Duffey <su...@yahoo.com>.
I am hoping I can make use of Spring MVC running
inside of JBoss/Tomcat so that I can cluster a larger
number of servers to expand our needs as we grow. We
want to support web services for all our client-side
traffic to the server side. Is it possible to use Axis
for this directly within Spring? Or is there a better
api for web services within Spring?

Thanks.



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250