Questions tagged [opcode-cache]

An opcode cache is a system to cache the result of the PHP code compilation to bytecode. This allows to use the bytecode instead of compiling on every request. Different opcode cache systems are available, mostly depending on used PHP version.

32 questions
2
votes
1 answer

Disable APC Cache for cached files?

I have a quite large website, in which there is a forum powered by phpBB. I have APC enabled with 1Gb of RAM. phpBB generates a lot of php files of cache (60 000-70 000 in my case), and they rapidly fill up APC memory. I was thinking to disable apc…
Nicolò Martini
  • 5,182
  • 4
  • 32
  • 38
2
votes
3 answers

Python doesn't have opcode cacher?

I'm currently using PHP. I plan to start using Django for some of my next project. But I don't have any experience with Python. After some searching, I still can't find a Python opcode cacher. (There are lots of opcode cacher for PHP: APC,…
Geert Wildert
  • 21
  • 1
  • 2
2
votes
1 answer

Opcache is Enabled, but Opcode Caching says Disabled?

I've attached a screenshot. Any ideas of what I'm missing? I've enabled it via php.ini, it shows in phpinfo as enabled, but says opcode caching is disabled. Using PHP 5.5.
DxMonkey
  • 31
  • 1
  • 4
2
votes
1 answer

Why PHP APC cache miss in increasing all the time

I am using apc.php to check the PHP APC's stats (http://svn.php.net/viewvc/pecl/apc/trunk/apc.php) I have the following stats on a fairly busy server Cached Files 317 ( 26.3 MBytes) Hits 51483 Misses 6814 The problem is the Misses is always…
Ryan
  • 10,041
  • 27
  • 91
  • 156
1
vote
1 answer

Apc extension not working on php 5.3.3

opcode caching talk.I have WAMP server 2.1 running PHP 5.3.3.I'm using apache benchmark to test the improvement APC adds when applied to my php scripts. ab -n 10 -c 5 http://localhost/mysite/index/index/ I installed APC 3.1.6 for PHP 5.3 vc6 with…
luca
  • 36,606
  • 27
  • 86
  • 125
1
vote
2 answers

Does APC opcode cache work with PHP-FPM?

How well does APC (latest version 3.1.5) work with PHP FastCGI (especially PHP-FPM)? There are a lot of articles stating that they don't work together pretty well but these references are also very old (like 2009). Also, can the opcode cache be…
Calin Don
  • 865
  • 2
  • 11
  • 19
1
vote
3 answers

Opcode cache impact on memory usage

Can anyone tell me what is the memory usage overhead associated with PHP opcode cache? I've seen a lot of reviews of opcode cache but all of them only concentrate on the performance increase. I have a small entry level VPS and memory limits are a…
paan
  • 7,054
  • 8
  • 38
  • 44
1
vote
1 answer

Store Zend OpCache as files in PHP 5.6?

I'm trying to obfuscate and speed up my code using Zend OpCache, but OpCache doesn't seem to have the usual functions to store bytecode in a file like other older caching systems did. As OpCache is the native method of caching files in memory in…
Rick Mac Gillis
  • 754
  • 8
  • 16
1
vote
5 answers

What are the advantages/disadvantages of monolithic PHP coding versus small specialized php scripts?

I have historically used a monolithic approach to PHP coding. That is, I write one index.php, with an average size of 70k-250k, and use mod_rewrite to turn the rest of the REQUEST_URI into parameters passed into the index.php to control what is…
Daren Schwenke
  • 5,428
  • 3
  • 29
  • 34
1
vote
3 answers

Do I pay a performance penalty as PHP recompiles my source code for every request?

I know PHP is mostly an interpreted language. Does the PHP interpreter (php.exe in Windows and php file in Linux) do interpretation every time my script executes or only when I change the source? To put it another way, does the PHP interpreter cache…
IVIR3zaM
  • 567
  • 9
  • 23
0
votes
2 answers

APC, PHP and two classes which require each other

I'm managing an PHP application and we want to enable APC now. The problem is that we have two classes which require_once each other. A very basic example would look like: in class_a.php require_once('path/to/class_b.php)'; class a extends…
ciscocert
  • 255
  • 4
  • 10
0
votes
2 answers

mod_fcgid with php opcode caching

I have been using apache web server with mpm-worker and mod_fcgid. I have read about mod_fcgid that it can not make use of opcode caching. http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/ apc cache module seems to be enabled…
faraklit
  • 143
  • 2
  • 4
  • 16
0
votes
1 answer

APC: opcode cache vs. user cache - set separate limits

I am trying to move from the typical combination of APC (for opcode) and Memcache (for my userdata) to a purely apc based cache. Given my usage structure it makes sense and performance is higher. But unlike before, where the apc cache was limited…
Martin
  • 243
  • 3
  • 16
0
votes
0 answers

is there an accelerator for ruby as those for php

I've been looking for accelerators for ruby like those for php(zend,xcache,...) but I couldn't find one, except this github repo : ruby_accelerator which seems unmaintained(and I don't know if it's an opcode cacher or a code analysis tool). I saw…
niceman
  • 2,653
  • 29
  • 57
0
votes
2 answers

Nginx php-fpm clogs up with writing connections under high load

we have nginx/1.6.2 running with php5-fpm (5.6) on a debian 8 system. In the past days we got higher load than usual due to more users hitting our servers. With most visitors coming in the evening hours between 6pm and midnight. Since a couple of…
Christopher Lörken
  • 2,740
  • 18
  • 17