0

Basic Info:

APC Version     3.1.13
PHP Version     5.4.7-1~dotdeb.0
APC Host        pcgamingwiki.com (li263-94) (173.255.253.94)
Server Software nginx/1.2.4

In my config, I have apc.stat = 0 and apc.Canonicalize = 1

apc.php: http://pcgamingwiki.com/apc.php

I've got several mediawiki installs that have a lot of common files, since I'm limited on ram I was looking for ways to use APC to its fullest, I discovered that in theory if I symlinked common files (Like /var/www/includes/ to /var/www2/includes) it should realpath to the same path /var/www/includes but apc.php is showing differntly then the expected output (Have a ton more hits on /var/www/includes/.php and not show any /var/www2/includes/.php)

Here is a screenshot of what apc.php is reporting: http://i.imgur.com/pOMoL.png

as you can see that is not the expected output, am I just doing it wrong? or is it a bug?

0

It looks to be a apc.php bug, the number of files in the cache that apc is reporting is about what it should be, this graph should help

http://pcgamingwiki.com/munin/localdomain/localhost.localdomain/php_apc_files.html

as you can see, there is a big spike (Thats me upping the ram it can use) then it starts to level out into the lower area, so you can see that it wanted to cache about 5k files before, now with proper symlinking its caching about 1.5k files

  • Might be a PHP bug - does realpath() dereference the symbolic links? – symcbean Oct 2 '12 at 14:54
  • its libc's (I checked the source of APC) version of realpath(), I should test that and take a look – user554005 Oct 2 '12 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.