Export of issues with many scripted fields shoots up CPU load

keval.doshi January 3, 2019

Hello everyone,

We have many scripted fields (~20) which are associated to a particular issuetype configured using the ScriptRunner plugin. Now, while doing a CSV export of such issues (~400) through JIRA the CPU load just shoots up dramatically (from .62 to 6.5). 

Has anyone else faced this? Also, is there something that can be done to fix this?

Thanks,

Keval

1 answer

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 9, 2019

This is because ScriptRunner recalculates all field values during the export to have the most up-to-date in those. In your case, it triggers 20*400=8000 script executions, imposing quite some load on your CPU.

If I were you, I'd check if it is possible to use the "last known value" (aka the value in the cache) and save the recalculations. It may or may not be possible in ScriptRunner, contact the authors!

Suggest an answer

Log in or Sign up to answer