linux - Show full list of php scripts on server -


how show full list of running php sripts on linux server? see httpd service, or pid not specific php file source, need analyze script take more memory , fixed it. thanks

you have 2 options:

  1. log urls requested server , end in php scripts being executed can use php feature, allows add php script apache request sent php. enable adding root .htaccess:

    php_value auto_prepend_file append.php

in append.php add logging feature, can insert url requested, time took generate response , max memory used. if add tab separated file, import in db table , see happening on server.

more info here: http://www.electrictoolbox.com/php-automatically-append-prepend/

  1. debug apache doing, using strace start apache strace. debug operations apache , subsequently php doing. watch out, there lot of noise in debug output.

more info here: http://bobcares.com/blog/?p=103


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -