Questions tagged [apc]

The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

963 questions
11
votes
3 answers

Using PHP APC cache in CLI mode using dumpfiles

I've recently started using APC cache on our servers. One of the most important parts of our product is a CLI (Cron/scheduled) process, whose performance is critical. Typically the batchjob consists of running some 16-32 processes in parallel for…
Martijn
  • 3,696
  • 2
  • 38
  • 64
10
votes
1 answer

nginx php5-fpm upstream timed out (110: Connection timed out) while connecting to upstream

We have a web server running with nginx php5-fpm apc setup. However we experienced upstream connection timeout errors and slow downs during page rendering recently. A quick php5-fpm restart fixed the problem but we could not find the cause. We…
faraklit
  • 143
  • 2
  • 4
  • 16
10
votes
2 answers

Why is APC incrementing "Cache full count" for User Cache even though it has plenty of memory available?

I've played with this for quite a while but am at a bit of a loss as to what to do. I'm using APC 3.1.3p1 on CentOs 5 with PHP 5.2.5. APC is acting as both the opcode cache and user cache. Mostly this server runs Drupal 6 sites using the…
Aaron
  • 2,659
  • 2
  • 22
  • 23
9
votes
4 answers

"No acceptable C compiler found" when installing APC

What do I need to do to get APC to work correctly, it seems I dont have a c compiler in the correct place or something similar to that? Also once it is install how do I verify that it is running correctly? [root@ec2-user]# pecl install…
user1179295
  • 706
  • 3
  • 10
  • 21
9
votes
4 answers

NGINX + PHP5-FPM segfaults under high load

I have been dealing with this problem all day and it is driving me insane. All Google results and searches here lead to dead ends. I hope someone can work with me to provide a solution for myself and future victims. Here we go. I am running a…
Aco
  • 183
  • 1
  • 3
  • 7
9
votes
3 answers

APC and Varnish

I am using varnish for reverse proxy and apc for op-code caching. Have anyone used both for same site ? Is there an overhead between compatibility between both ? My personal opinion is that both are not into each other domain but wanted a quick…
rahijain
  • 885
  • 1
  • 8
  • 10
9
votes
1 answer

Locating memory leak in Apache httpd process, PHP/Doctrine-based application

I have a PHP application using these components: Apache 2.2.3-31 on Centos 5.4 PHP 5.2.10 Xdebug 2.0.5 with Remote Debugging enabled APC 3.0.19 Doctrine ORM for PHP 1.2.1 using Query Caching and Results Caching via APC MySQL 5.0.77 using Query…
Sam
  • 2,620
  • 2
  • 26
  • 28
9
votes
2 answers

PHP APC installation failed on Ubuntu

I have done this sudo apt-get install php-pear php5-dev make libpcre3-dev and then sudo pecl install apc But I'm getting this error: ^ make: *** [apc_compile.lo] Error 1 ERROR: `make' failed Do you have idea what can be…
Nikola
  • 133
  • 1
  • 1
  • 6
9
votes
2 answers

Where does APC store its opcode and user variable cache?

The reason I ask is because when using top I don't see a process for anything like APC. So I assume that the memory usage would be accounted for in an apache process. Is that the case, and does that mean that the memory APC is using is replicated…
Charlie
9
votes
2 answers

Doctrine 2 result cache invalidation

I'm using Doctrine 2's result cache on a query retrieving the number of new messages of a user (messaging app): $query->useResultCache(true, 500, 'messaging.nb_new_messages.'.$userId); I tried to invalidate this cache like this (in my entity…
Nanocom
  • 3,696
  • 4
  • 31
  • 46
9
votes
4 answers

php apc_fetch all ids

Is there a way to fetch and print, all the data stored in apc's storage? I need to do so for testing and debugging purposes. I know I can retrieve a specific data by doing apc_fetch(id), but I don't know any way to retrieve all the data by passing…
Alex
  • 7,538
  • 23
  • 84
  • 152
8
votes
3 answers

APC Cache use only 32M memory

Here my config extension = apc.so apc.enabled = 1 apc.shm_size = 128M apc.shm_segments = 1 apc.gc_ttl = 7200 apc.ttl = 0 apc.num_files_hint = 1024 apc.file_update_protection = 2 apc.max_file_size = 5M apc.stat_ctime =…
tarlyun
  • 83
  • 1
  • 1
  • 3
8
votes
4 answers

PHP5 performance comparison, Windows and Linux

I have a question about Symfony2 performance. I have been developing with Symfony2 under Ubuntu 11.04 for a few weeks now, Apache 2.2.17, PHP 5.3.5, APC 3.1.9, no xDebug On the dev environment, the time given on the Symfony2 toolbar was never above…
Nanocom
  • 3,696
  • 4
  • 31
  • 46
8
votes
6 answers

How do I upgrade APC on Zend Community Server (needed for Symfony2)?

I am running latest Zend Community Server and want to learn Symfony2 but the config.php gives me an error that my APC (alternative php cache) is deprecated and I have to upgrade it. I'm running OS X Lion and already found the zend folder in: …
user986408
8
votes
6 answers

APC for windows alternative download

I am trying to install APC on windows but the site http://pecl4win.php.net/ is down for a while now with the message: The pecl4win build box is temporarily out of service. We're preparing a new build system. Is there an alternative download for…
Gabriel Solomon
  • 29,065
  • 15
  • 57
  • 79