Tag Archives: memory

PHP memory_limit – a *per-script* setting

What happens when your web host blames PHP memory_limit setting for memory usage issues on a Linux web server. This happened recently and although PHP’s memory limit was set to 1GB (very high) that does not mean that scripts were using 1GB. Let’s take a quick look at understanding PHP’s memory_limit setting. PHP memory_limit is a per-script […]

Does your Linux server need a RAM upgrade? Lets check with free, top, vmstat and sar.

Based on the output of ‘free -m’ on a 1GB VPS and taking into consideration the amount of swap space in use – details below – a RAM upgrade was necessary. Required was a minimum of 3GB of RAM multiplied by 2 = 6GB. This ensures that there’s adequate memory available for buffers/cache. There’s  This article will walk you though […]