« Return to Thread: memory perm gen space .... (grails 1.1.1)

Re: memory perm gen space .... (grails 1.1.1)

by Dean Del Ponte-2 :: Rate this Message:

Reply to Author | View in Thread

Another option would be to try running your app with the Grails 1.2 M1 release.  One of the enhancements to the milestone release is that it precompiles GSP pages when generating a war file, thus avoiding a lot of permgen issues.

http://www.grails.org/1.2-M1+Release+Notes

~~ Dean Del Ponte

On Sat, Jul 4, 2009 at 12:18 PM, Moe <mohamed5432154321@...> wrote:
perhaps a little.. but its not the ultimate factor.. thats for max total memoery allocation including young gen and more.
you could also run jconsole (found in the java folder) and look at how big the perm gen size is and increase it using the parameter Ricardo mentioned.

Moe




On Sat, Jul 4, 2009 at 8:15 AM, adwin grails <callmeblessed.grails@...> wrote:
so set JAVA_OPTS=-Xmx512m  will not increase Perm Gem space ?
i will try your recommendation


On Sat, Jul 4, 2009 at 9:09 AM, Ricardo
Merizalde<ricardo.merizalde@...> wrote:
> I meant
>
> $ jstat -gcpermcapacity 445
>
> On Fri, Jul 3, 2009 at 8:08 PM, Ricardo Merizalde
> <ricardo.merizalde@...> wrote:
>>
>> Adwin,
>>
>> PermGen is used to store the code executed by the JVM and not the memory
>> used by your program. You can check it by:
>>
>> $ jps
>>   220
>>   445 YourApp
>>   446 Jps
>>
>> then
>>
>> $ jstat -gcpermcapacity 336
>>
>> You can increase you perm size with the following option:
>>
>> -XX:MaxPermSize=256m
>>
>> --Ricardo
>>
>> On Fri, Jul 3, 2009 at 6:34 PM, adwin grails
>> <callmeblessed.grails@...> wrote:
>>>
>>> Hi.
>>>
>>> I have a view / template that contains lots of domain (around 10) and
>>> I got memory perm gen space error ... (sometimes not everytime) but
>>> when I refresh, it comeback to normal again.
>>>
>>> I checked on the my memory usage it still using 270mb while I
>>> allocated for java memory about 512mb.
>>>
>>> I am using grails 1.1.1 anyway ...
>>>
>>>
>>> anyone knows why it happens ?
>>>
>>> thank you
>>>
>>>
>>> regards
>>> adwin
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>    http://xircles.codehaus.org/manage_email
>>>
>>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




 « Return to Thread: memory perm gen space .... (grails 1.1.1)