Tuesday, March 7, 2017

php memory usage much higher on production server

I have a website built with Laravel and Postgresql. The website has debugbar installed for performance measurements. On my local development machine it shows around 4MB memory used, however, on the production server it uses much more - about 40 MB for the same page. That results in about 200 - 300 ms increased loading speed. The websites and their db contents are exactly the same.

My local machine runs Linux Mint 18 with Apache/2.4.18, PHP 7.0, Postgresql 9.5, and using Redis caching.

The production server runs CentOS 6.8 with Apache/2.2.15, PHP 7.0, Postgresql 9.5, and using Redis caching.

Any ideas where should I look for such memory usage difference? Could the OS/Apache version differences provide such increased memory usage?



via Deez

Advertisement