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/maxpermsizeAndHowItRelatesToTheOverallHeap.html
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_at_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_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>