You are correct, that is indeed the memory usage of the entire instance. As 
previously mentioned, the best way to confirm what exactly is using all of 
that memory is to SSH into the instance and list the stats of each process. 
If it is Docker that is consuming the memory (which it most likely is) you 
can then use docker stats 
<https://docs.docker.com/engine/reference/commandline/stats/#examples> to 
list the exact resource usage of each Docker container. 

For an example of how to analyze the JVM heap usage you can review this 
third-party 
code snippet 
<http://viralpatel.net/blogs/getting-jvm-heap-size-used-memory-total-memory-using-java-runtime/>.
 
You can then log this with Stackdriver to keep track of your actual 
application memory usage. As per the Java Flex Docker image 
<https://github.com/GoogleCloudPlatform/openjdk-runtime/pull/13>, the heap 
size it allocated to 80% of your instance memory size. For any issues with 
the JVM it is recommended to report them directly in the GitHub Issue 
tracker 
<https://cloud.google.com/appengine/docs/flexible/custom-runtimes/build#configuring_the_dockerfile>for
 
the Docker image you are using. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a718b0d5-316a-4a70-9a52-243cc45154f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to