Re: [INTERNALS-WIN] Limit of opened files under PHP ?
Bonsoir,
On Wed, Sep 24, 2014 at 7:30 PM, Jean Louis <[email protected]> wrote:
> Hi Php Team,
>
> I use PHP on many projects (under Linux, Windows, ...), on many
> systems (Linux shared or dedicated
> servers, Windows desktop or server) and use this great software as
> much as posible ^^
>
> On one of these projects, I use PHP as a windows service (or command
> line process with php page)
> that works about 1000 remotes sites.
>
> I use curl_multi_exec with a process on these 1000 sites and haven't
> any problem with the process.
>
> I recently decided to trace logs of process per site.
>
> The problem is I have 509 files on 1000 which are wrote correctly
> (each about 10 Kb) but the 491 other
> files stay at 0 Kb.
>
> After google searches, it's a limit of maximum opened files per
> process on Windows (seems 512 - stdin, stdout, stderr = 509).
>
> See :
>
> _getmaxstdio: http://msdn.microsoft.com/fr-fr/library/xt874334(v=vs.80).aspx
> _setmaxstdio: http://msdn.microsoft.com/fr-fr/library/6e3b887c(v=vs.80).aspx
>
> Is there a way that php set (per exemple via ini_set) this limit to
> another value before I launch my
> curl_multi_exec process (I don't find it in the source code of PHP)?
Everything you said is correct. While PHP uses mostly only Win32 APIs
(not POSIX-like) the limit could be higher but then all libraries do
not, which makes the 512 limits valid.
A ini settings could make sense. I will see when we can do it, will
most likely be 5.7 or 7.
May I ask you to open a feature request at bugs.php.net so I do not forget pls?
Cheers,
--
Pierre
@pierrejoye | http://www.libgd.org
Thread (3 messages)