-
1. 3829757
dhillipa Oct 12, 2002 4:57 AM (in response to respinola)Try increasing the heap size of JVM
-
2. Re: OutOfMemoryError
dhillipa Oct 14, 2002 12:43 AM (in response to respinola)increase the heap size by setting the java options ..........
-
3. Re: OutOfMemoryError
respinola Oct 14, 2002 12:38 PM (in response to respinola)I was running it with -Xms1024m -Xmx1024m and I was still receiving the error, any other ideas?
Thanks. -
4. Re: OutOfMemoryError
joelvogt Oct 15, 2002 12:25 AM (in response to respinola)*shrug* buy more memory? Short of this, see how you go with smaller images, and then try to bump up the size until it breaks. That way should be able to see if it is jboss or app problem
-
5. Re: OutOfMemoryError
juha Oct 15, 2002 8:55 AM (in response to respinola)also use something like OptimizeIT to track down the memory usage, runtime.getFreeMem() isn't that reliable.
-
6. Re: OutOfMemoryError
respinola Oct 21, 2002 12:37 PM (in response to respinola)Here is the error I get:
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
...
This happens right at the code that returns to the client from the server. Right before I send the object back, I check the free memory and I have over 8Gigs left (-Xms8G -Xmx10G) The object being sent is about 300 megs. I also have a try catch block for OutOfMemoryError's on the server side code, wrapped around the return, and I get no errors on the JBoss console. I am using JBoss3.0.0.
Therefore, I am thinking there is something happening from the time it leaves the server and the time it reaches the client.
Any ideas?? -
7. Re: OutOfMemoryError
respinola Oct 21, 2002 12:39 PM (in response to respinola)This is the error I get:
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
...
This happens right at the code that returns to the client from the server. Right before I send the object back, I check the free memory and I have over 8Gigs left (-Xms8G -Xmx10G) The object being sent is about 300 megs. I also have a try catch block for OutOfMemoryError's on the server side code, wrapped around the return, and I get no errors on the JBoss console. I am using JBoss3.0.0.
Therefore Im thinking somethign is happening from the time it leaves the serer to the time the client gets the object.
Any ideas?? -
8. Re: OutOfMemoryError
sieroka Nov 2, 2002 4:12 PM (in response to respinola)One thing that usually helps Java is using -Xincgc
-
9. Re: OutOfMemoryError
tushars Nov 27, 2002 3:56 AM (in response to respinola)I think I am little bit late. But you can try one thing. Check number of processes created by Java. If your JBoss server is running on Linux then there might be problem to create a new thread. You can shift your JBoss application server to WindowsNT and check once again. Because thread management is much better in WindowsNT than LInux.
Regards
Tushar