Contrary to suggestion https://community.jaspersoft.com/wiki/setting-maxmetaspacesize-java-8 max metaspace size was set to 512Mb, and product regularly crashes. Having analyzed heap dumps, conclusion was made that jasper reports are main suspects, beacuse OutOfMemoryError had always been thrown while generating JasperReports.
Metaspace was monitored in test environments - there is steady increase in used memory when generating many reports and the memory is not freed what probably resulted in crash.
Could you give any suggestion how the problem shuold be resolved? By now I tried to change language from 'groovy' to 'java' but it did not help. Many other advices concern earlier versions of Java (currently used is Java 8, templates of Jasper reports format is 'jrxml').
Thanks in advance!