axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse D. Sightler" <jsight...@eximtechnologies.com>
Subject RE: Memory Problems
Date Fri, 06 Sep 2002 19:34:45 GMT
Are you sure that the heap size settings (-Xms and -Xmx) are being setup
on the client end as well?

-- 
=======================================
Jess Sightler
Programmer
Exim Technologies
131 Falls Street
Greenville SC 29601
Phone: 864-679-4651
=======================================


On Fri, 2002-09-06 at 15:37, Jason D. Lee wrote:
> For what it's worth, it looks like it's cratering after the return from the
> function.  In the function, it loads a 5MB XML document into a string, then
> returns that to the client.  Somewhere between the end of the method and the
> client it's getting the out of memory error.  The top of the stack trace on
> the server looks like this:
> 
> - java.io.IOException:
> java.net.SocketException: Software caused connection abort: socket write
> error
>         at java.net.SocketOutputStream.socketWrite0(Native Method)
>         at
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
>         at java.net.SocketOutputStream.write(SocketOutputStream.java:126)
>         at
> org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWri
> te(InternalOutputBuffer.java:652)
>         at
> org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.j
> ava:521)
>         at org.apache.coyote.Response.doWrite(Response.java:508)
>         at
> org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:380)
> 
> the client tells me
> 
> Exception in thread "main" java.lang.OutOfMemoryError
> 
> -- 
> Jason Lee - Programmer
> 405.745.1789
> Hobby Lobby Stores, Inc.
> 
> 
> 
> -----Original Message-----
> From: Jason D. Lee 
> Sent: Friday, September 06, 2002 2:18 PM
> To: 'axis-user@xml.apache.org'
> Subject: RE: Memory Problems
> 
> 
> That's kind of what I was thinking, but I wasn't sure what to set or where.
> I added -Xms260m -Xmx260m to JAVA_OPTS and restarted Tomcat.  Is that what I
> need to do?  I hope not, because it's still broken. :\  I'm in Win2K, JDK
> 1.4, Tomcat 4.1.9, and Axis 1.0rc1 in case that matters.  
> 
> Here's what catalina.bat runs:
> 
> start "Tomcat" "c:\java\j2sdk1.4.0_01\bin\java" -server -Xms256m -Xmx256m
> -Djava.endorsed.dirs=".\bin;.\common\endorsed" -classpath
> "c:\java\j2sdk1.4.0_01\lib\tools.jar;.\bin\bootstrap.jar"
> -Dcatalina.base="." -Dcatalina.home="." -Djava.io.tmpdir=".\temp"
> org.apache.catalina.startup.Bootstrap  start
> 
> Thanks for your help.
> 
> -- 
> Jason Lee - Programmer
> 405.745.1789
> Hobby Lobby Stores, Inc.
> 
> 
> 
> -----Original Message-----
> From: Allegar Robert [mailto:allegar_robert@bah.com]
> Sent: Friday, September 06, 2002 12:34 PM
> To: axis-user@xml.apache.org
> Subject: RE: Memory Problems
> 
> 
> Jason,
> 	In the one that's failing you have 2 JVMs running. Check the heap
> size for
> the JVM on the server and make sure it's enough to handle what you're trying
> to do. Use the -Xms -Xms parameters on the server VM (the one with the
> remote Axis running) to set the value higher. If you're sure the exact same
> code is working locally and not working remotely, it's likely an
> environment/configuration issue.
> 
> Regards,
> 	Rob
> 
> -----Original Message-----
> From: Jason D. Lee [mailto:jason.lee@hobbylobby.com]
> Sent: Friday, September 06, 2002 11:36 AM
> To: Axis (E-mail)
> Subject: Memory Problems
> 
> 
> I'm running into memory issues that I don't think I should be seeing.  My
> web service has a method that queries our item master and returns the
> inventory as an XML document, which happens to be about 5MB.  If I run my
> test application, which loads the web service's class locally (as opposed to
> making the SOAP call to Axis), everything runs fine.  If I run my web
> service test client (which makes the SOAP call to Axis), I get an out of
> memory error.  Any thoughts on why that's different, and how I can fix it?
> Thanks...
> 
> --
> Jason Lee - Programmer
> 405.745.1789
> Hobby Lobby Stores, Inc.



Mime
View raw message