paan paan - 1 year ago 137
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.

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download