Does the transitional nature have to do anything with the collected garbage?
There is nothing.
The transient keyword indicates that it should not be serialized, so if something means that the deserialized objects are smaller than otherwise.
We found that the class that caused the memory leak trend.
You will have a memory leak because you store such an object in the collection when you do not need it. You must make sure that the objects you save in this way are deleted when you do not need them.
Just because you save data does not mean that you have a leak. You may need this data, so you need more memory than you expected. In this case, you need to increase the maximum memory by setting the command line -Xmx or -mx .
source share