PDA

View Full Version : PHP optimization tips ?


pr0team.net
17 Jan 2007, 15:55
Hello,


last pid: 58790; load averages: 2.38, 3.58, 4.14 up 1+21:13:01 16:53:47
83 processes: 1 running, 82 sleeping
CPU states: 79.3% user, 0.0% nice, 4.1% system, 0.4% interrupt, 16.2% idle
Mem: 327M Active, 1369M Inact, 198M Wired, 69M Cache, 112M Buf, 38M Free
Swap: 4069M Total, 268K Used, 4068M Free

PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
58534 www 1 4 0 54256K 26408K accept 2:37 3.71% php-cgi
58618 www 1 4 0 54248K 26688K accept 1:51 3.27% php-cgi
57654 www 1 4 0 55640K 29828K accept 10:25 3.12% php-cgi
57695 www 1 4 0 55552K 29172K accept 10:11 2.44% php-cgi
58453 www 1 4 0 55500K 28508K accept 3:29 2.44% php-cgi
58302 www 1 4 0 53132K 25952K accept 5:12 2.39% php-cgi
58655 www 1 4 0 54240K 26276K accept 1:12 2.39% php-cgi
56881 www 1 4 0 55776K 30128K accept 15:04 2.34% php-cgi
58723 www 1 4 0 52872K 22956K accept 0:26 2.29% php-cgi
58776 www 1 4 0 55404K 24744K accept 0:07 2.29% php-cgi
56532 www 1 4 0 54236K 28752K accept 15:50 2.25% php-cgi
58691 www 1 4 0 55756K 27424K accept 0:51 2.20% php-cgi
57359 www 1 4 0 55904K 30360K accept 12:38 1.95% php-cgi
58480 www 1 4 0 55624K 27748K accept 3:12 1.90% php-cgi
56729 www 1 4 0 55500K 29760K accept 15:35 1.86% php-cgi
58077 www 1 4 0 55736K 29436K accept 6:42 1.81% php-cgi

^ 260 online effect!

I use zend (Encode scripts), eaccelerator, lighttd
In :
Freebsd
Dual xeon 2.6
2 gb ram

Any tips ?