You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Yogesh Salunke <yo...@arrkgroup.com> on 2006/09/13 11:30:47 UTC

Permgen space

Hi,

 

I get the permgen space error and my portlets get vanished .This is the
problem of memory.

 

One workaround is in web.xml of every application, I have changed the
param-value to client instead of server

 

<context-param>

 

      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

 

      <param-value>client</param-value>

 

      </context-param>

 

 <context-param>

 

 

 

Is there anything which I can do more or any other trick or only option is
to increase the memory of server.

 

Thanks

 


Re: Permgen space

Posted by Raj Saini <ra...@gmail.com>.
John Langley wrote:
> Another trick I've used is to set the PermGen space in the catalina.sh
> script (I run on linux; it would be catalina.bat on windows of course)
> with the following JAVA_OPTS
>
>
> JAVA_OPTS="$JAVA_OPTS "-Xmx512m" "-XX:PermSize=128m" \
>  "-XX:MaxPermSize=256m"
>   
Which JDK you are using?

AFAIK  -XX:PermSize is not documented in the Sun JDK 1.5_7 on Linux 
platform.  You can try this by 'java -X' command.

Regards,

Rajbir
> (Note: the '\' is just to make it readable above) 
>
> Langley 
>
>
> On Wed, 2006-09-13 at 15:00 +0530, Yogesh Salunke wrote:
>   
>> Hi,
>>
>>  
>>
>> I get the permgen space error and my portlets get vanished .This is the
>> problem of memory.
>>
>>  
>>
>> One workaround is in web.xml of every application, I have changed the
>> param-value to client instead of server
>>
>>  
>>
>> <context-param>
>>
>>  
>>
>>       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>>
>>  
>>
>>       <param-value>client</param-value>
>>
>>  
>>
>>       </context-param>
>>
>>  
>>
>>  <context-param>
>>
>>  
>>
>>
>>
>>
>>
>> Is there anything which I can do more or any other trick or only option is
>> to increase the memory of server.
>>
>>  
>>
>> Thanks
>>
>>  
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Permgen space

Posted by John Langley <la...@telcordia.com>.
Another trick I've used is to set the PermGen space in the catalina.sh
script (I run on linux; it would be catalina.bat on windows of course)
with the following JAVA_OPTS


JAVA_OPTS="$JAVA_OPTS "-Xmx512m" "-XX:PermSize=128m" \
 "-XX:MaxPermSize=256m"

(Note: the '\' is just to make it readable above) 

Langley 


On Wed, 2006-09-13 at 15:00 +0530, Yogesh Salunke wrote:
> Hi,
> 
>  
> 
> I get the permgen space error and my portlets get vanished .This is the
> problem of memory.
> 
>  
> 
> One workaround is in web.xml of every application, I have changed the
> param-value to client instead of server
> 
>  
> 
> <context-param>
> 
>  
> 
>       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> 
>  
> 
>       <param-value>client</param-value>
> 
>  
> 
>       </context-param>
> 
>  
> 
>  <context-param>
> 
>  
> 
> 
> 
> 
> 
> Is there anything which I can do more or any other trick or only option is
> to increase the memory of server.
> 
>  
> 
> Thanks
> 
>  
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Permgen space

Posted by Jacek Wiślicki <ja...@gmail.com>.
Wiadomosc od Yogesh Salunke z 2006-09-13 11:30 brzmiala:

> Is there anything which I can do more or any other trick or only option is
> to increase the memory of server.
This error frequently occurs after many redeployments and AFAIK this is 
a "feature" of Tomcat (a documented memory leakage). Of course, you can 
increase Java heaps for Catalina (JAVA_OPTS in catalina.sh/bat), but I 
don't think it helps.

-- 
pozdrawiam,
     Jacek Wislicki

jacek.wislicki@gmail.com
http://www.nauka-biznes.org.pl/jetspeed/portal/
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Permgen space

Posted by b....@valbosoft.com.



Hello,

I've seen this problem when using hibernate, when you reload the web app
with the manager. Is that you case? It's a case of not cleaned up class
references.

Saludos,

Bo van Weert
tel. 902 014 180
(00 34) 96 393 19 77
fax. 96 360 69 13
http://www.valbosoft.com
soporte técnico: soporte@valbosoft.com



                                                                           
             "Yogesh Salunke"                                              
             <yogesh.salunke@a                                             
             rrkgroup.com>                                              To 
                                       <je...@portals.apache.org>  
             13/09/2006 11:30                                           cc 
                                                                           
                                                                   Subject 
             Please respond to         Permgen space                       
              "Jetspeed Users                                              
                   List"                                                   
             <jetspeed-user@po                                             
             rtals.apache.org>                                             
                                                                           
                                                                           




Hi,



I get the permgen space error and my portlets get vanished .This is the
problem of memory.



One workaround is in web.xml of every application, I have changed the
param-value to client instead of server



<context-param>



      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>



      <param-value>client</param-value>



      </context-param>



 <context-param>







Is there anything which I can do more or any other trick or only option is
to increase the memory of server.



Thanks






---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org