问题
Given a java application running in flexible environment, how is it possible to get a heap dump to see the heavy objects? I would ideally import this into a tool like eclipse mat and analyze the heap dump. Another great option would be for stackdriver profiler showing it but i just see there cpu profiling but not memory profiling
回答1:
You can connect to a Flex instance with ssh in a similar fashion that you connect to GCE VM instances. Read more about it here. Once connected you can get the heap dump like you usually do.
来源:https://stackoverflow.com/questions/51874290/how-do-i-get-the-heap-dump-of-a-java-application-running-in-flexible-environment