You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by bongosdude <bo...@gmail.com> on 2008/12/13 05:27:32 UTC

GEP Out Of Memory

Hi,

I got HEAP out of memory problem when I try to deploy a Tapestry web app
from GEP (eclipse). I created the $GERONIMO_HOME/bin/setenv.sh to set these
options:

#!/bin/sh
export JAVA_HOME=/Library/Java/Home
echo JAVA_HOME=${JAVA_HOME}
export JAVA_OPTS="-Xms512m -Xmx1024m"
echo JAVA_OPTS=${JAVA_OPTS}
export GERONIMO_ENV_INFO=on

But startup the server in Eclipse using GEP/WTP still cause this problem:

How can I set heap option for geronimo local server in eclipse?


Exception in thread "RMI TCP
Connection(9)-0:0:0:0:ab2b:4a00:c124:4a00%16973712"
java.lang.OutOfMemoryError: Java heap space
	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:596)
	at java.lang.Thread.run(Thread.java:613)
Exception in thread "RMI TCP Connection(10)-0:0:0:0:0:0:f4a9:5803%267"
java.lang.OutOfMemoryError: Java heap space
	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:596)
	at java.lang.Thread.run(Thread.java:613)
Exception in thread "RMI TCP
Connection(11)-0:0:0:0:ab2b:4a00:c124:4a00%16973712"
java.lang.OutOfMemoryError: Java heap space
	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:596)
	at java.lang.Thread.run(Thread.java:613)
Exception in thread "RMI TCP
Connection(13)-0:0:0:0:ab2b:4a00:c124:4a00%16973712"
java.lang.OutOfMemoryError: Java heap space
Exception in thread "RMI TCP
Connection(14)-0:0:0:0:ab2b:4a00:c124:4a00%16956448"
java.lang.OutOfMemoryError: Java heap space
23:22:19,019 ERROR [Deployer] Deployment failed due to 
java.lang.OutOfMemoryError: Java heap space



-----
B Amigo:super:
-- 
View this message in context: http://www.nabble.com/GEP-Out-Of-Memory-tp20987368s134p20987368.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: GEP Out Of Memory

Posted by bongosdude <bo...@gmail.com>.
Tim,

Again thank for your help. It works. 

-B

Tim McConnell wrote:
> 
> Hi bongosdude, keep in mind that when using the GEP there really are two
> JVM's 
> running: one for Eclipse and another one for the Geronimo server. And 
> unfortunately, the JVM arguments you establish for Eclipse do not apply to
> the 
> Geronimo server. To adjust the JVM arguments for the Geronimo server
> running in 
> Eclipse do the following:
> 
> 1.  In Eclipse make sure the server is stopped
> 
> 2.  Go to the Servers view in Eclipse (i.e., the same view that you use to 
> start/stop the server), and double-click on the server. This will bring up
> the 
> Overview panel for the server, which is essentially the properties editor
> for the 
> Geronimo server adapter.
> 
> 3.  Page down and on the right side you'll see the section title "Server
> VM 
> Arguments"
> 
> 4.  Page down in that section and append your VM arguments at the end --
> please 
> don't delete those that are already there. For example, you might want to
> use 
> what you're using for your JAVA_OPTS. This is what I use when using the
> Sun JVM 
> on Windows:
> 
>      -Xmx512m -XX:MaxPermSize=256m
> 
> 5. Close the editor and save your changes. Now the server will pick up
> these new 
> VM arguments when you restart it.
> 
> Please try this and let me know what happens. I've already opened a JIRA
> to 
> investigate if we can programmatically determine and set the Geronimo
> server VM 
> arguments (using either those already established for Eclipse -- since
> obviously 
> the default values for the server are not always sufficient, or reading
> the 
> setting already established via JAVA_OPTS). Thanks much.
> 
> 
> bongosdude wrote:
>> Hi,
>> 
>> I got HEAP out of memory problem when I try to deploy a Tapestry web app
>> from GEP (eclipse). I created the $GERONIMO_HOME/bin/setenv.sh to set
>> these
>> options:
>> 
>> #!/bin/sh
>> export JAVA_HOME=/Library/Java/Home
>> echo JAVA_HOME=${JAVA_HOME}
>> export JAVA_OPTS="-Xms512m -Xmx1024m"
>> echo JAVA_OPTS=${JAVA_OPTS}
>> export GERONIMO_ENV_INFO=on
>> 
>> But startup the server in Eclipse using GEP/WTP still cause this problem:
>> 
>> How can I set heap option for geronimo local server in eclipse?
>> 
>> 
>> Exception in thread "RMI TCP
>> Connection(9)-0:0:0:0:ab2b:4a00:c124:4a00%16973712"
>> java.lang.OutOfMemoryError: Java heap space
>> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
>> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
>> 	at
>> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:596)
>> 	at java.lang.Thread.run(Thread.java:613)
>> Exception in thread "RMI TCP Connection(10)-0:0:0:0:0:0:f4a9:5803%267"
>> java.lang.OutOfMemoryError: Java heap space
>> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
>> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
>> 	at
>> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:596)
>> 	at java.lang.Thread.run(Thread.java:613)
>> Exception in thread "RMI TCP
>> Connection(11)-0:0:0:0:ab2b:4a00:c124:4a00%16973712"
>> java.lang.OutOfMemoryError: Java heap space
>> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
>> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
>> 	at
>> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:596)
>> 	at java.lang.Thread.run(Thread.java:613)
>> Exception in thread "RMI TCP
>> Connection(13)-0:0:0:0:ab2b:4a00:c124:4a00%16973712"
>> java.lang.OutOfMemoryError: Java heap space
>> Exception in thread "RMI TCP
>> Connection(14)-0:0:0:0:ab2b:4a00:c124:4a00%16956448"
>> java.lang.OutOfMemoryError: Java heap space
>> 23:22:19,019 ERROR [Deployer] Deployment failed due to 
>> java.lang.OutOfMemoryError: Java heap space
>> 
>> 
>> 
>> -----
>> B Amigo:super:
> 
> 


-----
B Amigo:super:
-- 
View this message in context: http://www.nabble.com/GEP-Out-Of-Memory-tp20987368s134p20994390.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: GEP Out Of Memory

Posted by Tim McConnell <ti...@gmail.com>.
Hi bongosdude, keep in mind that when using the GEP there really are two JVM's 
running: one for Eclipse and another one for the Geronimo server. And 
unfortunately, the JVM arguments you establish for Eclipse do not apply to the 
Geronimo server. To adjust the JVM arguments for the Geronimo server running in 
Eclipse do the following:

1.  In Eclipse make sure the server is stopped

2.  Go to the Servers view in Eclipse (i.e., the same view that you use to 
start/stop the server), and double-click on the server. This will bring up the 
Overview panel for the server, which is essentially the properties editor for the 
Geronimo server adapter.

3.  Page down and on the right side you'll see the section title "Server VM 
Arguments"

4.  Page down in that section and append your VM arguments at the end -- please 
don't delete those that are already there. For example, you might want to use 
what you're using for your JAVA_OPTS. This is what I use when using the Sun JVM 
on Windows:

     -Xmx512m -XX:MaxPermSize=256m

5. Close the editor and save your changes. Now the server will pick up these new 
VM arguments when you restart it.

Please try this and let me know what happens. I've already opened a JIRA to 
investigate if we can programmatically determine and set the Geronimo server VM 
arguments (using either those already established for Eclipse -- since obviously 
the default values for the server are not always sufficient, or reading the 
setting already established via JAVA_OPTS). Thanks much.


bongosdude wrote:
> Hi,
> 
> I got HEAP out of memory problem when I try to deploy a Tapestry web app
> from GEP (eclipse). I created the $GERONIMO_HOME/bin/setenv.sh to set these
> options:
> 
> #!/bin/sh
> export JAVA_HOME=/Library/Java/Home
> echo JAVA_HOME=${JAVA_HOME}
> export JAVA_OPTS="-Xms512m -Xmx1024m"
> echo JAVA_OPTS=${JAVA_OPTS}
> export GERONIMO_ENV_INFO=on
> 
> But startup the server in Eclipse using GEP/WTP still cause this problem:
> 
> How can I set heap option for geronimo local server in eclipse?
> 
> 
> Exception in thread "RMI TCP
> Connection(9)-0:0:0:0:ab2b:4a00:c124:4a00%16973712"
> java.lang.OutOfMemoryError: Java heap space
> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
> 	at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:596)
> 	at java.lang.Thread.run(Thread.java:613)
> Exception in thread "RMI TCP Connection(10)-0:0:0:0:0:0:f4a9:5803%267"
> java.lang.OutOfMemoryError: Java heap space
> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
> 	at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:596)
> 	at java.lang.Thread.run(Thread.java:613)
> Exception in thread "RMI TCP
> Connection(11)-0:0:0:0:ab2b:4a00:c124:4a00%16973712"
> java.lang.OutOfMemoryError: Java heap space
> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:178)
> 	at java.io.BufferedInputStream.<init>(BufferedInputStream.java:158)
> 	at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:596)
> 	at java.lang.Thread.run(Thread.java:613)
> Exception in thread "RMI TCP
> Connection(13)-0:0:0:0:ab2b:4a00:c124:4a00%16973712"
> java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP
> Connection(14)-0:0:0:0:ab2b:4a00:c124:4a00%16956448"
> java.lang.OutOfMemoryError: Java heap space
> 23:22:19,019 ERROR [Deployer] Deployment failed due to 
> java.lang.OutOfMemoryError: Java heap space
> 
> 
> 
> -----
> B Amigo:super: