Hi,

You should set JVM's memory options. I have used 1.3.1 with Xms and Xmx
options and it worked.
If you are using tomcat 3.3.x as the app server, go into bin folder and edit
tomcat.bat or tomcat.sh file. Add

-Xms256m -Xmx512m after the %_STARTJAVA% command

Regards,


> Uzay Takaoglu
> Prouct Engineering
> 


-----Original Message-----
From: ashish ranjan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 26, 2001 2:50 PM
To: Abhinav Gupta
Cc: [EMAIL PROTECTED]
Subject: RE: SOAP client giving outofmemoryerror


Hi,
Thanks for the response. The outofmemory error is due to the JVM
limitation. I need to send 5-10 MB of image data to an applet.

i have following options:
1.plain cgi
2.Com/dcom
3.Corba

I wanted the things to be simple and hence chose SOAP.
I think we should be able to send large chunks of data over soap.
should i abandon SOAP??

ashish



On Wed, 26 Dec 2001, Abhinav Gupta wrote:

> Hi Ashish,
>
>       You will probably need to implement soap over ftp (Just kidding). If
you
> are sending that kind of data in a RPC call than there is something
> fundamentally wrong with your design.
>
> Abhinav Gupta
> FirstRain Inc. NY
>
>
> -----Original Message-----
> From: ashish ranjan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 25, 2001 6:12 PM
> To: [EMAIL PROTECTED]
> Subject: SOAP client giving outofmemoryerror
>
>
> Hi,
>    I am trying to send > 10MB of data using soap. At the client side i am
> getting outofmemoryerror when the call object is invoked.
> How to build a client which can receive huge data??? The error message is
> given below.
> Any help will be appreciated....
>
> Thanks,
> Ashish
>
> Exception in xhiead "main" java.lang.OutOfMtmoryError
>         ajava.lang.StringBuffer.expandCapacity(StringBuffer.java:204,
> Compiled
>  Code)
>         at java.lang.StringBuffer.append(StringBuffer.java:396, Compiled
> Code)
>         at java.io.StringWriter.write(StringWriter.java:96)
>         at java.io.PrintWriter.newLine(PrintWriter.java:240)
>         at java.io.PrintWriter.println(PrintWriter.java:391)
>         at java.io.PrintWriter.println(PrintWriter.java:486)
>         at
> org.apache.soap.util.IOUtils.getStringFromReader(IOUtils.java:81, Com
> piled Code)
>         at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:169)
>         at org.apache.soap.rpc.Call.invoke(Call.java:212)
>         at soapclient1.main(soapclient1.java:66)
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>

Reply via email to