Hi,

My application calls Java API via different services ( 
CampaignServiceInterface,CampaignCriterionServiceInterface etc),using -

 Credential oAuth2Credential = new OfflineCredentials.Builder()
        .forApi(Api.ADWORDS)
        .fromFile()
        .build()
        .generateCredential();

// Construct an AdWordsSession.
AdWordsSession session = new AdWordsSession.Builder()
        .fromFile()
        .withOAuth2Credential(oAuth2Credential)
        .build();
        
session.setClientCustomerId(pClientID);
    
AdWordsServices adwordsServices = new AdWordsServices();
CampaignServiceInterface campaignService = adwordsServices.get(session, 
CampaignServiceInterface.class);

This is done every hour for several dozen clients.
I am using Java application running on Tomcat using API version v201309.

What I see is 2 issues:

1. The Tomcat process memory consumption grows with time.
2. The consumed physical memory of the C drive of the server grows very 
quickly and uses all the free space. I can't really locate where
    all the storage going but I suspect some kind of tmp file or log file 
that is being written by the API.
Once I restart the Tomcat all the memory and storage is released.

My questions:
1. Is there a known issue with memory leaks?
2. Are there better ways for using the API than how I am implementing my 
needs?

   - 
*   Perhaps have only 1 session per client created and used every hour 
   rather than re-creating it? *
   -    *Perhaps creating the AdwordsServices object every hour is not 
   correct and I should have 1 instance for the entire application or 1 per 
   service?*
   
I appreciate any feedback and help in the matter.

Many thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to