Hi, I’m new to scripting, I need to evaluate a script every time the application gets a http request and it increases metaspace and loaded classes. Does anybody know how to keep it under ** size?
n
Nikky
07/20/2020, 9:58 PM
what do you mean with that? memory consumption or such ?
h
H.An
07/20/2020, 11:15 PM
yes, I actually found the answer, to put Jvm options
i had the same issue. what i did was cache the class once it was compiled and reuse it. it also shaved a heap off the response times (from a few hundred ms to < 10)
h
H.An
07/24/2020, 4:13 AM
yes I believe cache reduces a lot of work. The option I mentioned above is necessary if evaluation of new script happens many times