Continuously growing allocated memory
Hi,
We realized that the memory used on our server is constantly growing, up to the maximum of the allocated memory, adding more allocated memory, and then drastically decreasing, and it repeats continuously until all the memory is used up.
We ran our server on another machine so we had 0 users, and the result in 30 minutes is this:
I wanted to ask if this is normal behavior, or is it given by my server code, and if so how do I find out which class is causing this illegal memory allocation?
EDIT:
I used visualVM to analyze the memory, the result is this:
Thank you
Continuously growing allocated memory
Continuously growing allocated memory
Last edited by Ber4ber43 on 19 Apr 2021, 16:18, edited 1 time in total.
Re: Continuously growing allocated memory
Hi,
yes that's normal behavior.
Java uses Garbage Collection to manage memory, so it's expected to see memory allocation going up as new objects are created, then the GC will delete all the unreferenced objects when more memory is needed.
Cheers
We realized that the memory used on our server is constantly growing, up to the maximum of the allocated memory, adding more allocated memory, and then drastically decreasing, and it repeats continuously until all the memory is used up.
yes that's normal behavior.
Java uses Garbage Collection to manage memory, so it's expected to see memory allocation going up as new objects are created, then the GC will delete all the unreferenced objects when more memory is needed.
Cheers
Re: Continuously growing allocated memory
Ok thanks Lapo
Who is online
Users browsing this forum: No registered users and 54 guests