Hi Евгений,
I chatted with some of the PHP coders on my team, and it sounds like that
is not a known common issue with that library. I'll need to ask a few
questions to help you find a solution.
- The only file I know that the library opens is the config file. Do you
have a separate process running in the background for each thing that
you're doing? That could potentially open the file multiple times.
- Follow-up: If you're not doing multiple processes, are you doing
multi-threading?
- Are you retrieving a lot of reports in parallel? That could also max
the number of files that you have open.
- What is the maximum number of open files that you have set on your
system?
Since this is directly related to the library rather than the API, I would
recommend filing a GitHub issue.
<https://github.com/googleads/googleads-php-lib/issues> They may be able to
help you faster, since they are the PHP experts.
Cheers,
Nadine, AdWords API Team
On Friday, April 15, 2016 at 3:07:35 PM UTC-4, Евгений Лебедев wrote:
>
> Hello.
> I'm using the latest php library to work with Adwords API.
> I have some background processes which can run for a long time. They use
> different services (Campaign, AdGroup, AdGroupAd, etc.).
> Process unexpectedly die after some period of time with error 'too many
> open files'.
> At first I increased the limit of open files in the system and users, but
> error wasn't fixed.
> Then I watched with 'lsof' all opened files and found out that the number
> of file descriptors with TCP connection to Google servers always increasing
> without being closed.
> Help me fix this problem please.
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/864f5df0-3ec6-4ac9-aa7e-b98bd163a448%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.