You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Hongda Lin <hl...@visualanalytics.com> on 2002/12/05 18:38:10 UTC

Please help: SOAP 2.3 out of memory error

Hi,
	I am using SOAP 2.3 with Tomcat 4.0.4 (Coyote as HTTP
connector). I am using RPC calls. It normally runs ok, except it gives
me java.lang.OutOfMemoryError on the client side sometimes(probably
working with large strings). The complete error message is:


Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Server]
[faultString=Exception from service object: null]
[faultActorURI]/soap/servlet/rpcrouter]
[DetailEntries=[<0>=<stackTrace>java.lang.OutOfMemoryError
	&amp;lt;&amp;lt;no stack trace available&amp;gt;&amp;gt;
</stackTrace>]
] [FaultEntries = ]


Thank you in advance,


Hongda

Re: Please help: SOAP 2.3 out of memory error

Posted by Scott Nichol <sn...@scottnichol.com>.
Although the client displays the error, the error actually occurs on the
server.  You *may* be able to get around the problem by increasing the
JVM max heap size for your servlet container, but only if your payloads
are small enough to fit into that amount of memory.  Of course, if the
server is able to send a larger payload, the client will also have to
have enough memory to read it and parse it into a DOM (well, it does not
need to parse into a DOM if you send the data as an attachment).

The next version of Apache SOAP will lower the memory requirement
relative to payload size and *may* even get to the point where it
streams the result without first writing it to memory.

Scott Nichol

----- Original Message -----
From: "Hongda Lin" <hl...@visualanalytics.com>
To: <so...@xml.apache.org>
Sent: Thursday, December 05, 2002 12:38 PM
Subject: Please help: SOAP 2.3 out of memory error


Hi,
I am using SOAP 2.3 with Tomcat 4.0.4 (Coyote as HTTP
connector). I am using RPC calls. It normally runs ok, except it gives
me java.lang.OutOfMemoryError on the client side sometimes(probably
working with large strings). The complete error message is:


Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Server]
[faultString=Exception from service object: null]
[faultActorURI]/soap/servlet/rpcrouter]
[DetailEntries=[<0>=<stackTrace>java.lang.OutOfMemoryError
&amp;lt;&amp;lt;no stack trace available&amp;gt;&amp;gt;
</stackTrace>]
] [FaultEntries = ]


Thank you in advance,


Hongda

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>



Re: Please help: SOAP 2.3 out of memory error

Posted by Scott Nichol <sn...@scottnichol.com>.
Although the client displays the error, the error actually occurs on the
server.  You *may* be able to get around the problem by increasing the
JVM max heap size for your servlet container, but only if your payloads
are small enough to fit into that amount of memory.  Of course, if the
server is able to send a larger payload, the client will also have to
have enough memory to read it and parse it into a DOM (well, it does not
need to parse into a DOM if you send the data as an attachment).

The next version of Apache SOAP will lower the memory requirement
relative to payload size and *may* even get to the point where it
streams the result without first writing it to memory.

Scott Nichol

----- Original Message -----
From: "Hongda Lin" <hl...@visualanalytics.com>
To: <so...@xml.apache.org>
Sent: Thursday, December 05, 2002 12:38 PM
Subject: Please help: SOAP 2.3 out of memory error


Hi,
I am using SOAP 2.3 with Tomcat 4.0.4 (Coyote as HTTP
connector). I am using RPC calls. It normally runs ok, except it gives
me java.lang.OutOfMemoryError on the client side sometimes(probably
working with large strings). The complete error message is:


Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Server]
[faultString=Exception from service object: null]
[faultActorURI]/soap/servlet/rpcrouter]
[DetailEntries=[<0>=<stackTrace>java.lang.OutOfMemoryError
&amp;lt;&amp;lt;no stack trace available&amp;gt;&amp;gt;
</stackTrace>]
] [FaultEntries = ]


Thank you in advance,


Hongda

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>



AW: Please help: SOAP 2.3 out of memory error

Posted by Malte Kempff <ke...@medicalcolumbus.de>.
Hi Hongda,
I am working with large Vectors and got also such error.
My solution is to seperate the vector into blocks, having a soap-rpc-service
somthing like int giveHandle() and Vector giveNextBlock(int handle). The
handle in my case is a DB-Sequence, so I am sure it is unique.
maybe you need to devide your String when you suppose it is to large and do
somthing like this I did.

Malte

-----Ursprungliche Nachricht-----
Von: Hongda Lin [mailto:hlin@visualanalytics.com]
Gesendet: Donnerstag, 5. Dezember 2002 18:38
An: soap-user@xml.apache.org
Betreff: Please help: SOAP 2.3 out of memory error


Hi,
	I am using SOAP 2.3 with Tomcat 4.0.4 (Coyote as HTTP
connector). I am using RPC calls. It normally runs ok, except it gives
me java.lang.OutOfMemoryError on the client side sometimes(probably
working with large strings). The complete error message is:


Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Server]
[faultString=Exception from service object: null]
[faultActorURI]/soap/servlet/rpcrouter]
[DetailEntries=[<0>=<stackTrace>java.lang.OutOfMemoryError
	&amp;lt;&amp;lt;no stack trace available&amp;gt;&amp;gt;
</stackTrace>]
] [FaultEntries = ]


Thank you in advance,


Hongda

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>



AW: Please help: SOAP 2.3 out of memory error

Posted by Malte Kempff <ke...@medicalcolumbus.de>.
Hi Hongda,
I am working with large Vectors and got also such error.
My solution is to seperate the vector into blocks, having a soap-rpc-service
somthing like int giveHandle() and Vector giveNextBlock(int handle). The
handle in my case is a DB-Sequence, so I am sure it is unique.
maybe you need to devide your String when you suppose it is to large and do
somthing like this I did.

Malte

-----Ursprungliche Nachricht-----
Von: Hongda Lin [mailto:hlin@visualanalytics.com]
Gesendet: Donnerstag, 5. Dezember 2002 18:38
An: soap-user@xml.apache.org
Betreff: Please help: SOAP 2.3 out of memory error


Hi,
	I am using SOAP 2.3 with Tomcat 4.0.4 (Coyote as HTTP
connector). I am using RPC calls. It normally runs ok, except it gives
me java.lang.OutOfMemoryError on the client side sometimes(probably
working with large strings). The complete error message is:


Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Server]
[faultString=Exception from service object: null]
[faultActorURI]/soap/servlet/rpcrouter]
[DetailEntries=[<0>=<stackTrace>java.lang.OutOfMemoryError
	&amp;lt;&amp;lt;no stack trace available&amp;gt;&amp;gt;
</stackTrace>]
] [FaultEntries = ]


Thank you in advance,


Hongda

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>