Anyone maybe know is there Linux (debian) tool for testing PHP application performance? I want to check in witch places my PHP/MySQL script need optimization.
If you want to profile your scripts and tweak performance under test conditions, have a look at xdebug.
For HTTP optimization, you could do a lot worse than firebug.
However that does not replace the need to tune the application as a whole – if you’ve got a script taking 30 seconds to complete which only gets run once a month – then its less of a priority then one which takes 5 seconds and is fired of 1000 times per hour.
AFAIK there’s no free off-the-shelf solution – I added %D to my apache logs and use some custom code around that to identify problems areas (prioritized based on product of frequency and duration for each URL). I also use a modified version of this mysql log parser for my SQL code.
There are commercial offerings – but
- PHP support is limited
- they are usually very expensive.
- Server speed: sharing one script.php or using many copies the same script.php
- PHP Script Won’t Run – Apache2/MySQL Servers Running, PHP Installed – Ubuntu 10.04
- Is there any server performance monitor php script?
- Nginx + php-fpm “504 Gateway Time-out” error with almost zero load (on a test-server)
- running a bash script as root to change the date, when called by a php script
Leave a comment
- SCP transfer only modified files
- How can I automate clearing and resetting a Linux user’s home directory to a default?
- Cron expression that runs every 5 minutes from 1:30 am – 6:00 am [duplicate]
- Understanding redundant power supplies
- Is there a way for administrators to disable users from installing Firefox extensions?