Re: [xwiki-users] groovy and PermGen space exception

2014-06-04 Thread Thomas Mortagne
There is also some old APIs like $xwiki.parseGroovyFromPage and also the way to insert groovy in xwiki/1.0 syntax but I doubt it's going to help you much here anyway. AFAIK yes the way groovy work is by creating a new class each time its asked to execute a script. Now in the case of groovy macro

Re: [xwiki-users] groovy and PermGen space exception

2014-06-04 Thread lequan.moon
OK Thanks Thomas. Temporary I tried not to use closures in script. Closure themself make the loaded classes increased. And maybe I should call System.gc() each time the request is done?? And about the issue on jira, well I must say that I not quite familiar with JIRA. Sorry about that. Maybe

[xwiki-users] groovy and PermGen space exception

2014-06-03 Thread lequan.moon
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

Re: [xwiki-users] groovy and PermGen space exception

2014-06-03 Thread Thomas Mortagne
How do you use groovy script exactly ? {{groovy}} macro is using the standard JSR 223 implementation provided by Groovy, we don't have much control on what is happening. On Tue, Jun 3, 2014 at 1:31 PM, lequan.moon lequan.m...@gmail.com wrote: Hello, I'm having a problem with xwiki + groovy

Re: [xwiki-users] groovy and PermGen space exception

2014-06-03 Thread lequan.moon
Yes, i use the tag {{groovy}} for groovy script. Is there anyway else?? -- View this message in context: http://xwiki.475771.n2.nabble.com/groovy-and-PermGen-space-exception-tp7590836p7590849.html Sent from the XWiki- Users mailing list archive at Nabble.com.