Questions tagged [alternative-php-cache]

Alternative PHP Cache is a free, open source framework that caches the output of the PHP bytecode compiler in shared memory.

128 questions
2
votes
1 answer

Intermittent error 404 during higher loads. (nginx/php/apc/mysql)

I have a 4 cpu core VPS with 4GB ram. It is running Ubuntu 10.04 with nginx/0.7.65, PHP 5.3.2, and MySQL. I use php5-fpm for the communication to nginx. I also have php5-apc complimenting with php caching. This system runs four sites and shows…
user101613
1
vote
2 answers

Can APC and OpCache co-exist in PHP5.4

We are generally running php 5.4.x with APC enabled on CENTOS for our production sites. We have a new app that is segfaulting and the development team thinks it is because we've got APC. The app is complicated and really needs an opcode cache. We…
Wyatt Barnett
  • 725
  • 5
  • 14
1
vote
0 answers

opcache causing errors: Allowed memory size, and malloc: *** error for object 0x10b4cbaf8: pointer being freed was not allocated

Since I installed opcache I am getting these errors: [Thu Jun 04 17:31:02 2015] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4485046248 bytes) in Unknown on line 0 [Thu Jun 04…
jnbdz
  • 927
  • 5
  • 24
  • 46
1
vote
1 answer

APC - tuning apc.mmap_file_mask

When configuring APC as an opcode cache for PHP, there's a configuration setting called apc.mmap_file_mask. From what I've read there are three ways you can configure it but I don't really understand the implications of each. /tmp/apc.XXXXXX -…
sa289
  • 1,318
  • 2
  • 18
  • 44
1
vote
0 answers

PHP APC Using 2.7MB RAM for file that normally uses 16K

I had a PHP application that was performing poorly. I investigated the situation and determined that APC cache will filling up constantly. I increased the size of the apc cache so that I don't get any full cache events, and the app is performing…
Steakfest
  • 51
  • 1
  • 5
1
vote
0 answers

Using APC with HHVM / Nginx

I've been using APC for object caching with a PHP / Apache setup for a year or so and it's been working. Recently I've been playing around with HHVM and Nginx and installed APC. It seems to be working as it looks like DB queries are being cached in…
Steven Jones
  • 111
  • 3
1
vote
0 answers

Enabling APC cache takes down website

I have a VPS running on centos 5 with 2 GB ram. I run a IP.Board forum on that server. Recently my server was hacked and I had to format the disk and start again. I was using APC cache before and it was running fine. But now when I enable it the…
1
vote
1 answer

APCu - NO HIT and / or MISS. What am I missing?

I just installed php-pecl-apcu: # yum info php-pecl-apcu Loaded plugins: amazon-id, priorities, rhui-lb 4 packages excluded due to repository priority protections Installed Packages Name : php-pecl-apcu Arch : x86_64 Version :…
alexus
  • 13,112
  • 32
  • 117
  • 174
1
vote
1 answer

APC has no system cache entries

I have 2 web servers to provide PHP websites. One server is : Apache + PHP-FPM + APC The other : Apache with MPM-itk + APC. For both of these servers, APC has no cache system entries but only users cache entries as you can see on the screenshot. APC…
lazzio
  • 306
  • 1
  • 2
  • 11
1
vote
1 answer

APC resets after a few seconds

Got a new server and the host installed APC for me. Reloading apc.php shows that ACP resets itself every 4-6 seconds. Uptime is always 0 and hits never go above 3000. The site runs smoothly but if APC really starts over again & again, I'd like to…
Martin
  • 220
  • 3
  • 9
1
vote
1 answer

PHP APC configuration - cache filling and being dumped every 5 minutes

We've just installed APC on our server, and after looking at the stats for APC it appears that APC's cache takes around 5 - 10 minutes to fill up, and is then completely emptied. Current settings include: apc.shm_segments 1 apc.shm_size…
kinglozzer
  • 111
  • 1
1
vote
2 answers

How to reduce I/O on EC2 micro instance running wordpress

I have been running a very small wordpress site on Amazon EC2 for about 2 months, using the free tier micro instance. I have been getting billed a few dollars each month for going over the disk I/O allowance. I have looked into how I can reduce the…
z c
  • 55
  • 1
  • 5
1
vote
1 answer

PHP APC - is 100% fragmentation a bad thing?

APC.PHP tells me: Uptime 2 days, 15 hours and 13 minutes File Upload Support 1 File Cache Information Cached Files 375 ( 53.5 MBytes) Hits 377684 Misses 376 Request Rate (hits, misses) 1.66 cache requests/second Hit Rate 1.66 cache…
z c
  • 55
  • 1
  • 5
1
vote
2 answers

Memory adjustments for magento with php5-fpm , Nginx, APC, Mysql

I am using magento with php5-fpm , Nginx, APC, and Varnish. When there is varnish hit, the load time is very good. But on varnish miss, the site takes toomuch time to load. I have seen through htop that CPU goes under a lot of load and Ram and swap…
MJQ
  • 111
  • 3
1
vote
2 answers

php-fpm taking too much memory

I am using Nginx+PHP-FPM with php 5.3.6 and it was working well for weeks. A few days before I found out that most of the PHP-FPM children take 3MB but a few children are taking 700MB. The web application is busy with 1000 requests/second. PHP-FPM…
1 2 3
8 9