Hi Vincent, Yes, I'd appreciate it if you could put this on the project issue tracker.
- Kevin Winter AdWords API Team On Tuesday, March 6, 2012 11:14:24 AM UTC-5, Vincent wrote: > > Kevin, > > Thank you for your response and your help on this issue. > I have made further tests and narrowed down the problem. > > This simple code reproduces the issue. > It has to be run as a task (longer than 60 seconds) on a F1 instance, in > the GAE production environment (SDK 1.6.3) > > String customerId = "VALID PRODUCTION CUSTOMER ID"; > String developperToken = "VALID PRODUCTION DEVELOPPER TOKEN"; > String clientToken = "VALID PRODUCTION CLIENT TOKEN GOT FROM CLIENT LOGIN"; > Builder builder = new AdWordsSession.Builder() > .withDeveloperToken(developperToken) > .withClientCustomerId(customerId) > .withClientLoginToken(clientToken) > .withEnvironment(Environment.PRODUCTION); > AdWordsSession session = builder.build(); > AdWordsServices adWordsServices = new AdWordsServices(); > > int n = "PARAMETER TO PLAY WITH"; > long start = System.currentTimeMillis(); > System.err.println("Before calling AdGroupService"); > for (int i = 1; i <= n; ++i) { > adWordsServices.get(session, AdGroupServiceInterface.class); > long duration = (System.currentTimeMillis() - start) / 1000; > String msg = "AdGroupService call n " + i + " after " + duration + " > seconds"; > System.err.println(msg); > // simple helper to send an email with given subject and body > Email.send("Adwords API test", msg); > } > > Results: > > 1) if n = 2 > 2 emails are sent after 20 and 50 seconds. > Task takes about 60 seconds to complete and ends properly. > Logs are properly written and visible in the admin console. > > 2) if n = 3 > 3 emails are sent after 20, 50 and 70 seconds. > Task runs for 20 minutes (!!) and until the instance finally crashes > (after exactly 20 minutes). > Logs are : "The process handling this request unexpectedly died. This is > likely to cause a new process to be used for the next request to your > application. (Error code 203)" > No other log is visible in the admin console. > > This is really strange for 2 reasons: > - the task runs for 20 minutes instead of the maximum limit which is 10 > minutes > - the task continues to run after the last line of code (the last email is > sent after 70 seconds). > > I get the same behaviour on a bigger instance but the crash appears after > more calls to AdWordsServices.get(). > > This makes me think that calling AdWordsServices.get() consumes memory but > does not release all of it. > > What do you think ? Should I post this in the issue tracker ? > > Best, > > Vincent > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en