php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62850 APC 3.1.12, corrupted stat
Submitted: 2012-08-18 06:00 UTC Modified: 2016-08-31 16:09 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: remi@php.net Assigned: cmb (profile)
Status: Wont fix Package: APC (PECL)
PHP Version: 5.4.6 OS: GNU/Linux
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: remi@php.net
New email:
PHP Version: OS:

 

 [2012-08-18 06:00 UTC] remi@php.net
Description:
------------
After some time running on a web server, I notice strange results (using control panel)


apc.shm_size	128M
Cached Files 312 ( 16.1 MBytes)
Cached Variables 0 ( 0.0 Bytes)

But :
Free: 155.8 MBytes (121.7%)
Used: -29145544.0 Bytes (-21.7%)




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-18 06:10 UTC] remi@php.net
apc_sma_info:
Array
(
    [num_seg] => 1
    [seg_size] => 134217592
    [avail_mem] => 163363136
    [block_lists] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [size] => 4280
                            [offset] => 13384584
                        )
                )
        )
)
 [2012-08-19 12:09 UTC] remi@php.net
After a few time, calling apc.php make apache hangs.
And then all php pages (/server-info, or /server-status still responds)
 [2012-08-21 16:15 UTC] arhimede at gmail dot com
I noteiced same strange behaviour. Also i got error : "apc_store(): Unable to allocate memory for pool." 
Using the file apc.php, i got negative values for usage .
PHP 5.4.6 , APC 3.1.12
 [2012-08-27 09:06 UTC] remi@php.net
I'm currently running latest SVN version (3.1.12 + rev327233 and rev327244).

After a few hours (and 200k cache request) I don't encounter this issue.

apc_sma_info:
(
    [num_seg] => 1
    [seg_size] => 134217592
    [avail_mem] => 94959904
    [block_lists] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [size] => 3032
                            [offset] => 31149648
                        )
                    [1] => Array
                        (
                            [size] => 648
                            [offset] => 20677400
                        )
                    [2] => Array
                        (
                            [size] => 3000
                            [offset] => 20342888
                        )
                    [3] => Array
                        (
                            [size] => 94953184
                            [offset] => 39264464
                        )
                )
        )
)

Just notice that sum of block size is not exactly avail_mem.
 [2016-08-31 16:09 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2016-08-31 16:09 UTC] cmb@php.net
According to <https://bugs.php.net/69618>, APC support has been
discontinued in favor of OPcache, APCu, the session upload
progress API and WinCache. Therefore this issue won't get fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 03:01:28 2024 UTC