I suspect a "leak" in my Java application on App Engine Flexible Environment and I'd like to trace memory, as I would do with JProfiler, YourKit, or VisualVM on my local machine. Heroku
has some functionality for this.
I'd like to trace the classes, allocation point, and path to GC root for objects allocated during a certain action, for which I set checkpoints. Or if that is not possible, I'd like a heap dump of the (enormous) memory of my instance.
How can this be done in App Engine Flex Environment?