Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

java.lang.OutOfMemoryError: PermGen space

View: New views
7 Messages — Rating Filter:   Alert me  

Re: java.lang.OutOfMemoryError: PermGen space

by Jay D. McHugh-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Which version of Geronimo are you using and what command are you using
to start it?

Jay

filosofisto wrote:

> Hi all,
>
> we are developing an application using these tecnologies:
>
> - JSF1.2 (MyFaces)
> - EJB3
> - JPA
> - RichFaces 3.2
>
> Well, frequentally we are receiving an OutOfMemoryError (PermGen space), and
> must restart geronimo.
>
> Anybody can help us?
>
> Thanks a lot

java.lang.OutOfMemoryError: PermGen space

by filosofisto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

we are developing an application using these tecnologies:

- JSF1.2 (MyFaces)
- EJB3
- JPA
- RichFaces 3.2

Well, frequentally we are receiving an OutOfMemoryError (PermGen space), and must restart geronimo.

Anybody can help us?

Thanks a lot

Re: java.lang.OutOfMemoryError: PermGen space

by Kevan Miller :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On May 2, 2008, at 10:45 AM, filosofisto wrote:

>
> Hi all,
>
> we are developing an application using these tecnologies:
>
> - JSF1.2 (MyFaces)
> - EJB3
> - JPA
> - RichFaces 3.2
>
> Well, frequentally we are receiving an OutOfMemoryError (PermGen  
> space), and
> must restart geronimo.
>
> Anybody can help us?

Are you running with default memory settings? First step is to bump  
your PermGen size? For example:

export JAVA_OPTS="-Xmx512m -XX:MaxPermSize=256m"
./geronimo.sh run

Adding " -verbose:gc -XX:+PrintGCDetails" will give you an idea on how  
much memory your application requires. If you see increasing permgen  
space utilization over time (during multiple deploy/undeploy  
operations), let us know specifics of your app, or provide us a sample  
that can recreate the problem.

--kevan

Re: java.lang.OutOfMemoryError: PermGen space

by filosofisto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm starting "geronimo-tomcat6-jee5-2.0.1" from Eclipse 3.3.1.1, and I did not any aditional configuration.

Jay D. McHugh-3 wrote:
Which version of Geronimo are you using and what command are you using
to start it?

Jay

filosofisto wrote:
> Hi all,
>
> we are developing an application using these tecnologies:
>
> - JSF1.2 (MyFaces)
> - EJB3
> - JPA
> - RichFaces 3.2
>
> Well, frequentally we are receiving an OutOfMemoryError (PermGen space), and
> must restart geronimo.
>
> Anybody can help us?
>
> Thanks a lot

Re: java.lang.OutOfMemoryError: PermGen space

by filosofisto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem is resolved.

Kevan Miller wrote:
On May 2, 2008, at 10:45 AM, filosofisto wrote:

>
> Hi all,
>
> we are developing an application using these tecnologies:
>
> - JSF1.2 (MyFaces)
> - EJB3
> - JPA
> - RichFaces 3.2
>
> Well, frequentally we are receiving an OutOfMemoryError (PermGen  
> space), and
> must restart geronimo.
>
> Anybody can help us?

Are you running with default memory settings? First step is to bump  
your PermGen size? For example:

export JAVA_OPTS="-Xmx512m -XX:MaxPermSize=256m"
./geronimo.sh run

Adding " -verbose:gc -XX:+PrintGCDetails" will give you an idea on how  
much memory your application requires. If you see increasing permgen  
space utilization over time (during multiple deploy/undeploy  
operations), let us know specifics of your app, or provide us a sample  
that can recreate the problem.

--kevan

Re: java.lang.OutOfMemoryError: PermGen space

by Jay D. McHugh-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The default JVM parameters that are set up in the eclipse.ini file are:

-showsplash
org.eclipse.platform
-vmargs
-Xms40m
-Xmx256m

Those are too small for working with Geronimo and don't specify a
permgen space at all.  Because of that, I think the permgen size that
gets set up is only 64 meg.

There are not really 'recommended' sizes because requirements vary
depending on whether you are in development or production and the
size/type of applications you are running.

But, if you increase the heap size (-Xmx512m and -Xmx1024m are the two
sizes I usually pick between) and specify a permgen size
(-XX:MaxPermSize=256m is what I use) then that should take care of your
errors.

Others on the list wil be able to give you better hints on how to tune
your memory.

Hope that helps,


Jay

filosofisto wrote:

> I'm starting "geronimo-tomcat6-jee5-2.0.1" from Eclipse 3.3.1.1, and I did
> not any aditional configuration.
>
>
> Jay D. McHugh-3 wrote:
>> Which version of Geronimo are you using and what command are you using
>> to start it?
>>
>> Jay
>>
>> filosofisto wrote:
>>> Hi all,
>>>
>>> we are developing an application using these tecnologies:
>>>
>>> - JSF1.2 (MyFaces)
>>> - EJB3
>>> - JPA
>>> - RichFaces 3.2
>>>
>>> Well, frequentally we are receiving an OutOfMemoryError (PermGen space),
>>> and
>>> must restart geronimo.
>>>
>>> Anybody can help us?
>>>
>>> Thanks a lot
>>
>

Re: java.lang.OutOfMemoryError: PermGen space

by Jay D. McHugh-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oops,

I should have read all of Kevan's email before sending mine.

Glad things are working for you.

Jay

Jay D. McHugh wrote:

> The default JVM parameters that are set up in the eclipse.ini file are:
>
> -showsplash
> org.eclipse.platform
> -vmargs
> -Xms40m
> -Xmx256m
>
> Those are too small for working with Geronimo and don't specify a
> permgen space at all.  Because of that, I think the permgen size that
> gets set up is only 64 meg.
>
> There are not really 'recommended' sizes because requirements vary
> depending on whether you are in development or production and the
> size/type of applications you are running.
>
> But, if you increase the heap size (-Xmx512m and -Xmx1024m are the two
> sizes I usually pick between) and specify a permgen size
> (-XX:MaxPermSize=256m is what I use) then that should take care of your
> errors.
>
> Others on the list wil be able to give you better hints on how to tune
> your memory.
>
> Hope that helps,
>
>
> Jay
>
> filosofisto wrote:
>> I'm starting "geronimo-tomcat6-jee5-2.0.1" from Eclipse 3.3.1.1, and I
>> did
>> not any aditional configuration.
>>
>>
>> Jay D. McHugh-3 wrote:
>>> Which version of Geronimo are you using and what command are you
>>> using to start it?
>>>
>>> Jay
>>>
>>> filosofisto wrote:
>>>> Hi all,
>>>> we are developing an application using these tecnologies:
>>>>
>>>> - JSF1.2 (MyFaces)
>>>> - EJB3
>>>> - JPA
>>>> - RichFaces 3.2
>>>>
>>>> Well, frequentally we are receiving an OutOfMemoryError (PermGen
>>>> space),
>>>> and
>>>> must restart geronimo.
>>>>
>>>> Anybody can help us?
>>>>
>>>> Thanks a lot
>>>
>>
LightInTheBox - Buy quality products at wholesale price