Re: [google-appengine] Re: Bug in Cloud Console

2018-03-25 Thread 'Jordan (Cloud Platform Support)' via Google App Engine
I completely agree and the engineering team is working hard on providing 
better Stackdriver metrics to report container level resource usage 
(currently no ETA for the release). For clarity, currently it is the '
bytes_used 
' 
metric that is being recorded.   

As for the pricing, depending on the resource settings you specify in your 
app.yaml configuration file, App Engine will pick a Compute Engine machine 
type  
that
 
most closely matches your settings. You are then charged per hour for those 
resources 
(even
 
if you are not using them and they are idle, for example like a car 
rental), just like the Standard Environment 
 and 
normal Compute Engine pricing 
. 

- Therefore it is recommended to keep your instance count to a minimal to 
save costs by stopping previous versions, limiting max instances in your 
scaling settings, using minimal resource settings, and optimizing your code 
to respond quickly to concurrent requests as to fit as much traffic as 
possible onto a single instance.

- Note that Google Groups is for generic product discussions and not for 
reporting Google-end issues and feature requests. To receive updates on the 
work  being done for container level resource monitoring it is recommended 
to open a feature request in the Public Issue Tracker. 
  

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/7a4bea7f-ed92-4a11-8964-5b149373ba82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Bug in Cloud Console

2018-03-25 Thread Joshua Fox
On Sun, Mar 25, 2018 at 12:24 AM, 'Jordan (Cloud Platform Support)' via
Google App Engine  wrote:

>
> For an example of how to analyze the JVM heap usage you can review this 
> third-party
> code snippet
> .
> You can then log this with Stackdriver to keep track of your actual
> application memory usage.
>

Yes, we use that.


You are correct, that is indeed the memory usage of the entire instance.


OK, I understand the situation now, but just out of curiosity-- what is the
use case in which understanding the memory consumption of Docker is
useful?  After all, there is nothing contending for those resources from
our perspective. When we pay for all that memory,  whether we are using all
of that or  temporarily using less doesn't seem to matter.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/CAD%3DB7cN0Qkht_RTi3afANUb2_z%2BGUgsobcRHYXTeQY_fm30CbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Bug in Cloud Console

2018-03-24 Thread 'Jordan (Cloud Platform Support)' via Google App Engine
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 
 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 
.
 
You can then log this with Stackdriver to keep track of your actual 
application memory usage. As per the Java Flex Docker image 
, 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 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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.


Re: [google-appengine] Re: Bug in Cloud Console

2018-03-22 Thread Joshua Fox
On Thu, Mar 22, 2018 at 7:49 AM, Attila-Mihaly Balazs 
wrote:

> If I had to take a guess, I would say that this is because the JVM doesn't
> really give back "free" ram to the OS (but it's still available for reuse
> from within the JVM). So the console is showing the "OS" level metric while
> querying it directly shows the view from "inside" the JVM.
>
> Attila
>




['Jordan (Cloud Platform Support)' via Google App Engine 12:40 AM]
> Instead of checking the memory usage of your application's runtime (aka
> the Docker container that is running your application) you should log into
> your GAE instance (via ssh) and check the memory usage of the actual
> running processes.




So, that metric on the Console is really about RAM taken from the OS by the
JVM.

But since a Flex Env image uses the entire GCE instance, it seems that that
is not the metric of interest. In other words, if we pay for  100GB Flex
Env, then that is a constant from our perspective.

What we are interested in is how well our Java application is avoiding
leaks in our code and dealing with GC. How  would you recommend we track
that?

-- 
> 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 google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> 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/32a632ab-acaa-4c76-9c4d-
> 88d5770d37e1%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 


*JOSHUA FOX*
Director, Software Architecture | Freightos



*T (Israel): *+972-545691165 | *T (US)*:  +1-3123400953
Smooth shipping.

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/CAD%3DB7cN5dmTja%2B%2BmnHnmtQ1mKZkS1sc57Wr-fOTyCVNGn-YWOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Bug in Cloud Console

2018-03-21 Thread Attila-Mihaly Balazs
If I had to take a guess, I would say that this is because the JVM doesn't 
really give back "free" ram to the OS (but it's still available for reuse 
from within the JVM). So the console is showing the "OS" level metric while 
querying it directly shows the view from "inside" the JVM.

Attila

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/32a632ab-acaa-4c76-9c4d-88d5770d37e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Bug in Cloud Console

2018-03-21 Thread 'Jordan (Cloud Platform Support)' via Google App Engine
Instead of checking the memory usage of your application's runtime (aka the 
Docker container that is running your application) you should log into your 
GAE  instance (via ssh) 
 
and check the memory usage of the actual running processes. 

You may be running an older Docker image that was affected by a Fluentd 
Stackdriver logging memory leak which was fixed by the stackdriver team 
 
and updated in the latest GAE flex images 
.
 
If you find that it is the stackdriver fluentd process that is consuming 
the memory and redeploying does not resolve the issue, it is recommended to 
report your findings on the open Public Issue Tracker report 
(or open a new report 
if it is a different 
process as this may be a different memory leak).  

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/11fa2a76-484a-45fb-8cdd-92165690266d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.