paan paan - 3 months ago 44
PHP Question

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 concern for me.


Most of the memory overhead will come from the opcode cache size. Each opcode cacher has their own default(e.g. 30MB for APC) which you can change through the config file.

Other than the cache size, the actual memory overhead of the cacher itself is negligible.