Re: TCP connection left in CLOSE_WAIT state after downloading report

2014-02-18 Thread Josh Radcliff (AdWords API Team)
Hi Chris, A few things that might help me track down the source of this issue are: 1. Do you have the stack trace from *every* exception that your process threw before you encountered the 'too many files' error? That should help us pinpoint which input or output stream is not getting

Re: TCP connection left in CLOSE_WAIT state after downloading report

2014-02-14 Thread Chris
I should also point out that each account runs in a separate thread, with a thread pool size of 6. An AdWordsUser object is created once per account, and re-used for each call to ReportUtils.downloadReport for that account. On Friday, 14 February 2014 17:43:01 UTC-2, Chris wrote: > > Hi Guys, >

TCP connection left in CLOSE_WAIT state after downloading report

2014-02-14 Thread Chris
Hi Guys, I have a script which goes through lots of AdWords accounts, and pulls around 30 reports for each. Recently (around 10 days ago) we started having some problems. Sometimes the process will die, and looking at the errors, the operating system is reporting 'too many open files'. Running