Skip to main content

OutOfMemory Error with Glassfish

1 reply [Last post]
russ205
Offline
Joined: 2008-02-13
Points: 0

Okay I trying to figure out the standard setup for glassfish because I am getting an OutOfMemory Error when I attempt to retrieve information from the database. I am running glassfish (latest version) and I have added the JVM command line arguments -Xms32 -Xmx512m to the JVM Settings for the server. I am still getting the OutOfMemory error. I am doing a JPA/ EJB 3.0 application. The data set is small, so I don't think that's an issue.

<br />
WARNING: javax.ejb.EJBException: nested exception is: java.rmi.ServerError: Error occurred in server thread; nested exception is: </p>
<p>      java.lang.OutOfMemoryError: Java heap space</p>
<p>java.rmi.ServerError: Error occurred in server thread; nested exception is: </p>
<p>      java.lang.OutOfMemoryError: Java heap space<br />

Any suggestions we be greatly appreciated.

Russ

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Chris Fleischmann

Hrm, sounds to me like you may need to increase your MaxPermSize limit
(a.k.a. -XX:MaxPermSize=XXXm), see:
http://www.unixville.com/~moazam/stories/2004/05/17/maxpermsizeAndHowItR...
for a summary of the variable.

Lastly, you did set -Xms32 to megabytes right, ie., -Xms32m

How much physical RAM do you have on the machine? What type of OS is it
etc. etc.?

Regards,

Chris

glassfish@javadesktop.org wrote:
> Okay I trying to figure out the standard setup for glassfish because I am getting an OutOfMemory Error when I attempt to retrieve information from the database. I am running glassfish (latest version) and I have added the JVM command line arguments -Xms32 -Xmx512m to the JVM Settings for the server. I am still getting the OutOfMemory error. I am doing a JPA/ EJB 3.0 application. The data set is small, so I don't think that's an issue.
>
> [code]
> WARNING: javax.ejb.EJBException: nested exception is: java.rmi.ServerError: Error occurred in server thread; nested exception is:
>
> java.lang.OutOfMemoryError: Java heap space
>
> java.rmi.ServerError: Error occurred in server thread; nested exception is:
>
> java.lang.OutOfMemoryError: Java heap space
> [/code]
>
>
> Any suggestions we be greatly appreciated.
>
> Russ
> [Message sent by forum member 'russ205' (russ205)]
>
> http://forums.java.net/jive/thread.jspa?messageID=263718
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net