Trouble with memory in jira

I added event listener to my app and after this i bacame troubles with metaspace:

Now i can’t enable my plugin. Mb someone have encountered such a problem before and know how to fix it.
Thanks

What does your even listener do? Does it have any interesting classes it might be loading?
How much memory is allocated to your instance?

Sorry, I’m not particularly competent in the matter of memory.

I copied listener from this page and slightly changed onIssueEvent method:

(all actions have an empty method execute)

Maybe there is an opportunity to somehow increase memory limit.

Thanks

And i got these warnings when i started jira with atlas-run command