ps -axo “%C %p” |sort -nr |head -5 |while read i p; do echo -n $i; /usr/local/apache/bin/apachectl fullstatus |grep -A 1 $p; done

 

there is also a python script for that : apache-top.py . you can donwload it from: http://www.fr3nd.net/projects/apache-top/. it’s a nice tool but still need some customization.