Hello Nguyen,
>From your given description, as your application code does not properly release memory, you need to find out why it is not releasing the memory when needed. To do that I would recommend to use this Java Stackdriver Profiler <https://cloud.google.com/profiler/docs/profiling-java>, consists of the profiling agent, which collects the data, and a console interface on Google Cloud Platform, which lets you view and analyze the data collected by the agent. Profiling heap(memory) consumption helps you find potential inefficiencies and memory leaks in your programs. If you see from the Profiler Interface <https://cloud.google.com/profiler/docs/using-profiler>, your application’s memory usage doesn’t go up with your instance’s memory usage, then this would be a sign of bug which should report in issue tracker as discussed earlier. Otherwise if only the application memory goes up, then you need to fix the code. On Friday, October 26, 2018 at 1:30:47 AM UTC-4, Ky Nguyen wrote: > > Hi Amit, > > After investigated on my application I found out the reason make memory > increase. > We had enable google monitoring on Stackdriver with Uptime check. so > uptime check request from stack driver will call to our endpoint every 5 > minute. > It make application high traffic than before, and the memory also increase > steadily on every stack diver run uptime check service. > On the endpoint that Uptime check will call, We just implement rest client > (by spring Resttemplate) to call 3rd party service. > But look like the memory not release on each time endpoint called. I run > application on my local with jetty embedded server but memory not increase > too much like on GAE. > > Do you have any idea to help. > > Thanks. > > > On Thu, Oct 25, 2018 at 10:19 PM 'Amit (Google Cloud Support)' via Google > App Engine <[email protected]> wrote: > >> Hello Nguyễn >> >> >> High memory utilization could happen due to your application handling >> more traffic than before or higher workloads than before. If you believe >> your issue is not related to any of this and nothing has changed in your >> code yet, then I would suggest to open a private issue in issue tracker >> <https://issuetracker.google.com/issues/new?component=491299&template=1161102> >> and >> share all the details of you issue including your project ID, exact >> timeframe when you observed the issue and any changes you made in your >> configuration so that we can look into your issue and understand its scope. >> >> >> On Wednesday, October 24, 2018 at 7:19:33 AM UTC-4, Ky Nguyen wrote: >>> >>> I sure the problem not come from application. >>> because it had been deployed it for long time ago and it just use memory >>> around 800MB until Oct 07. >>> After OOM occurred, we just change config on app.yaml to increase from >>> memory_gb: >>> 1 to memory_gb: 4. >>> >>> After add allocated memory on GAE I saw memory usage increase steadily. >>> Do you have any idea to update? >>> >>> On Tue, Oct 23, 2018 at 10:47 PM 'Aref Amiri (Cloud Platform Support)' >>> via Google App Engine <[email protected]> wrote: >>> >>>> Hello, >>>> >>>> This could be a memory leak since you got an Out Of Memory error or >>>> possibly related to an update on App Engine. There are many possibilities >>>> that could lead to memory leak. All the causes mainly are related to the >>>> application itself. These include and not limited to resource memory >>>> allocation, as they might not be allocated properly in the application. In >>>> addition, I noticed some spikes on the graph provided that could possibly >>>> be related to the workload. As the workload increases, it creates more >>>> instances and hence causing memory leak. I would suggest to post the issue >>>> on Stackoverflow <https://stackoverflow.com/>and the community can >>>> definitely be a great help and propose effective solutions.There are some >>>> examples that you can refer to as they are similar cases to yours: >>>> >>>> 1: >>>> https://stackoverflow.com/questions/46359298/how-to-fix-memory-leak-in-my-application >>>> >>>> 2: >>>> https://stackoverflow.com/questions/40119/how-to-find-a-java-memory-leak?rq=1 >>>> >>>> You can also use the Google Stackdriver Debugger >>>> <https://cloud.google.com/debugger/docs/using/snapshots>which could be >>>> very useful in this case. >>>> >>>> After checking the solutions, if you believe the issue is related to >>>> App Engine, you could post the issue on Google Issue Tracker >>>> <https://issuetracker.google.com>, which would allow us to investigate >>>> the issue further and if necessary, route it to a specialized team. >>>> >>>> Carl, I have double checked here on my end and could not find any >>>> troublesome updates released on the specified dates. To get information >>>> about current and past outages you can use the Google Cloud Status >>>> Dashboard <https://status.cloud.google.com/summary>page. Regarding >>>> your issue, it has been routed to the specialized team and you will be >>>> notified once there is an update. >>>> >>>> -- >>>> 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/5a8c3e3f-029f-4d44-811a-7052dfd3389f%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/google-appengine/5a8c3e3f-029f-4d44-811a-7052dfd3389f%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> -- >>> *Nguyễn Lương Kỳ * >>> >>> *-------------------------------------------------------------------------* >>> >>> >>> * Phone:* 0975 072 768 >>> * Skype: *luongky06 >>> * Email:* [email protected] >>> * Yahoo:* luo <[email protected]>[email protected] >>> <[email protected]> >>> ------------------------------------------------------------------------- >>> >> -- >> 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/bd88cdc4-cb49-4f0c-a16c-501c5a4d4f4a%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-appengine/bd88cdc4-cb49-4f0c-a16c-501c5a4d4f4a%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > *Nguyễn Lương Kỳ * > *-------------------------------------------------------------------------* > > * Phone:* 0975 072 768 > * Skype: *luongky06 > * Email:* [email protected] > * Yahoo:* luo <[email protected]>[email protected] > <[email protected]> > ------------------------------------------------------------------------- > -- 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/d542b586-c4e4-4449-82be-47a0f7017baa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
