php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64621 APCu extension incompatible with multiple application pools and FCGI instances
Submitted: 2013-04-10 08:35 UTC Modified: 2013-10-15 11:54 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: julientld at free dot fr Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 5.4.13 OS: Windows Server 2012
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: julientld at free dot fr
New email:
PHP Version: OS:

 

 [2013-04-10 08:35 UTC] julientld at free dot fr
Description:
------------
Hello,

The APCu extension for user caching seems to be incompatible with Windows servers using IIS, PHP as FastCGI and multiple application pools.

Configuration:

Windows Server 2012
IIS 8.0
FastCGI
PHP 5.4.13 x86 NTS VC9
APCu extension 4.0.0 x86 NTS VC9 for PHP 5.4 (php_apcu-4.0.0-5.4-nts-vc9-x86.zip)
One IIS application pool per website
One FastCGI application (php-cgi.exe) per website

Test script:
---------------
APCu runs very well if you use it with only one website but if you use it with multiple application pools an HTTP 500 error is returned by IIS.

I think that when multiple application pools or multiple FastCGI applications are used, multiple simultaneous instances of APCu can't be created.

Original APC extension has probably the same problem (not tested).

With PHP 5.5 and integration of OPcache extension, the Microsoft WinCache extension will be probably stopped. So please, offer also to Windows users a solution for user caching.

Thanks.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-10 10:58 UTC] ab@php.net
Could you please post some error log, backtrace or similar you get?
 [2013-04-10 10:58 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-10-15 11:54 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2023-11-03 08:18 UTC] nikolai dot essel at maxworx dot com
The issue still exists.

- Windows Server 2019 Datacenter
- IIS 10
- FastCGI
- PHP 7.2.34 NTS VC15 x64
- APCu 5.1.19 7.2 NTS VC16 x64

Using default apc.php
When using multiple application pools, the first one started after an "iisreset" works normally. The second creates a EventLog Entry:

php[5580]
PHP Fatal error: apc_shm_create: shmget(0, 33554432, 658) failed: No such file or directory. It is possible that the chosen SHM segment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC