APC has been running for 1 sec. Currently caching 4 entries (150 kbytes).
This is the message I receive in status. Why 1 sec and why 4 entries and how can I solve this?
APC has been running for 1 sec. Currently caching 4 entries (150 kbytes).
This is the message I receive in status. Why 1 sec and why 4 entries and how can I solve this?
Comments
Comment #1
keva commentedIt's not clear exactly what the issue is, but I suspect you find APC is restarting regularly, and the opcode cache is wiped out.
The solution for me was here:
http://forums.cpanel.net/f5/why-apache-restarting-every-two-hours-254022...
in WHM > Apache Configuration > Piped Log Configuration > check to enable Piped Log Configuration
Comment #2
CPJS commentedDoesn't seem to be the root of the problem. Still 1 sec and still 4 entries.
Also in Drupal's performance logs:
Showing all 0 paths.
Average memory per page: n/a MB
Average duration per page: n/a ms
Total number of page accesses: 0
First access: Fri, 06/22/2012 - 11:04.
Last access: Thu, 01/01/1970 - 02:00.
Data source: APC (switch to database)
No statistics available yet.
Comment #3
heine commentedWhat entries are cached? Do you happen to clear caches on all requests?
(See the APC.php app that comes with the APC install to easily check cache entries)
Comment #4
CPJS commentedI'll check apc.php. Meanwhile this is from phpinfo();
apc
Comment #5
zambrey commentedI had this kind of thing on one of my installations.
Seems that APC is not working properly on some of PHP instances.
In my case I had to switch to mod_fastcgi.
Following article helped me understand this problem:
http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/
Hope it helps.
Comment #6
CPJS commentedIn "User Cache Entries" there is no file cached.
In "Pre-directory Entries" there is the public_html folder
In "System Cache Entries" there is only apc.php
Also in "View Host Stats" there is 1 cached files with 1 hit and 1 miss.
99.7 MBytes free and 346KB used.
Comment #7
heine commentedThis means your server configuration is the problem, not the APC drupal module.
Check whether your server is using the "CGI" server method via the status report ("more information" on PHP, see the field Server API). If it's not CGI check whether your server processes are crashing on each request.
Comment #8
CPJS commentedThanks for your help. I'll look into it further. I didn't know where to start looking.
Comment #9
R.Muilwijk commented