Hello,
I'm having a problem with xwiki + groovy which throw PermGen exception a
lot.
I built a page(page A) which send ajax continuously to another page(page B)
At page B, it use groovy to process the request.
The problem as I checked is : It seem like each request, the engine compile
and load groovy script => many Script classes, objects are created that
stress out the memory.
I use jconsole to check and see something like this as Loaded classes:
[Loaded Script2523$_getData_closure6 from file:/groovy/script]
[Loaded Script2524$_getData_closure6 from file:/groovy/script]
[Loaded Script2525$_getData_closure6 from file:/groovy/script]
[Loaded Script2526$_getData_closure6 from file:/groovy/script]
I look like Xwiki engine use something like GroovyShell to evaluate the
groovy script each time it's loaded so it create a lot of Script classes
(something like that, i'm not sure)
How can I fix this? or anyway to work around?
Note that I have already set environment variables
-Xmx512m -XX:MaxPermSize=512m -XX+CMSClassUnloadingEnabled
--
View this message in context:
http://xwiki.475771.n2.nabble.com/groovy-and-PermGen-space-exception-tp7590…
Sent from the XWiki- Users mailing list archive at
Nabble.com.