One of our service has a function written with Java.
And some loop call this function many times.
Unfortunately that service sometimes crashed by memory leak.
So I reviewed the source code and found the memory leak point - already fixed it.
But I am not sure gabage collector activate after java function ended.
The Java function use so many variables with ‘new’ operator, but there were no place to clean up.
Please let me know when is gabage collector called?
After Java fuction is ended? or the service is ended?
PS. Thanks for your reading. this is my first time to ask a question with English.