Out Of Memory caused by Script Runner

Hi Jamie Echlin,

I encountered an Out Of Memery issue at our JIRA instance with Script Runner plugin. I analyze the heap dump by Eclipse Memory Analyzer, and the result is that:
One object nearly (class name is com.atlassian.jira.jql.operand.registty.LazyResettableJqlFunctionHandlerRegistry )retained all the PS Old Gen heap and can't be recovered by GC.
You can refer to following image for the details.

I want to know that what operation will call this class and why this memory was not been recovered?

JVM Input Arguments:
-Dcatalina.base=/data/tomcat/jira -Dcatalina.home=/data/tomcat/jira/software/tomcat -Djava.io.tmpdir=/data/tomcat/jira/tmp -Djavax.net.ssl.keyStore=/data/tomcat/jira/SSL/jiracerts -Djavax.net.ssl.trustStore=/data/tomcat/jira/SSL/jiracerts -Djavax.net.ssl.keyStorePassword=changeit -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dfile.encoding=utf-8 -Dmail.mime.decodeparameters=true -Dnon.admin.upgrade=true -XX:MaxPermSize=1024m -Djira.jelly.on=true -Xms7072m -Xmx7072m -verbose -Dcommons.daemon.process.id=17664 -Dcommons.daemon.process.parent=17663 -Dcommons.daemon.version=1.0.10 abort

1 answer

0 vote

What script is your code running?

The script runner itself does not run out of memory. The problem is caused by writing scripts that do, and that's where you need to start.

Hi Nic,

Thanks for your reply.

I don't find any service include script runner, but only some filter or workflow condition. Could you please tell me which type code will cause this issue?


It could be any type of code. The images you have above seem to imply the script runner is running some JQL which is leaking memory. What JQL it is running is up to you and your scripts or the built in functions - you've issued a JQL query somewhere that is not suitable. If it's happening regularly, it's probably a saved filter that someone keeps using. Or a script you've written.

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

189 views 12 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot