Search code examples
app-engine-flexible

how do i get the heap dump of a java application running in flexible environment


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


Solution

  • 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.