一、简介
strace是一个工具,用来跟踪进程执行时的系统调用及所接收的信号。可以打印出系统调用过程中的参数、返回值、执行消时等。
二、常用系统调用函数
fork 创建进程
三、常用参数
四、实践
一次HTTP POST请求,fpm设置为单个进程。
curl -x '10.235.25.242:80' 'http://energy.tv.weibo.cn/ssvote?aid=1' -d 't=debugqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq' PHP recive: t = debugqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq param t lens = 345
strace跟踪
ps -ef | grep energy www 6873 6850 0 May25 ? 00:00:00 php-fpm: pool energy.tv.weibo.cn www 6884 6850 0 May25 ? 00:00:00 php-fpm: pool chuanbo7.energy.tv.weibo.cn
strace -o output.txt -T -tt -e trace=all -p 6873 Process 6873 attached - interrupt to quit ^CProcess 6873 detached
注:需要Command + C 手动中断
结果
11:43:40.365223 accept(0, {sa_family=AF_INET, sin_port=htons(46637), sin_addr=inet_addr("127.0.0.1")}, [16]) = 3 <4.150081> 11:43:44.515596 times({tms_utime=67, tms_stime=7, tms_cutime=0, tms_cstime=0}) = 487411300 <0.000079> 11:43:44.515858 poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}]) <0.000089> 11:43:44.516132 read(3, "\1\1\0\1\0\10\0\0", 8) = 8 <0.000079> 11:43:44.516366 read(3, "\0\1\0\0\0\0\0\0", 8) = 8 <0.000078> 11:43:44.516560 read(3, "\1\4\0\1\2\320\0\0", 8) = 8 <0.000048> 11:43:44.516691 read(3, "\n\0REQUEST_ID\f\5QUERY_STRINGaid=1\16"..., 720) = 720 <0.000032> 11:43:44.516793 read(3, "\1\4\0\1\0\0\0\0", 8) = 8 <0.000028> 11:43:44.516874 lstat("/data1/www/htdocs/energy.tv.weibo.cn/public/index.php", {st_mode=S_IFREG|0644, st_size=1768, ...}) = 0 <0.000021> 11:43:44.516968 lstat("/data1/www/htdocs/energy.tv.weibo.cn/public", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000013> 11:43:44.517038 lstat("/data1/www/htdocs/energy.tv.weibo.cn", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.517105 lstat("/data1/www/htdocs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 <0.000013> 11:43:44.517169 lstat("/data1/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.517231 lstat("/data1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.517309 read(3, "\1\5\0\1\1[\5\0", 8) = 8 <0.000012> 11:43:44.517358 read(3, "t=debugqqqqqqqqqqqqqqqqqqqqqqqqq"..., 347) = 347 <0.000011> 11:43:44.517407 read(3, "\0\0\0\0\0", 5) = 5 <0.000011> 11:43:44.517461 stat("/data1/www/htdocs/energy.tv.weibo.cn/public/.user.ini", 0x7fffd2691540) = -1 ENOENT (No such file or directory) <0.000014> 11:43:44.517528 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={60, 0}}, NULL) = 0 <0.000012> 11:43:44.517582 rt_sigaction(SIGPROF, {0x5e4520, [PROF], SA_RESTORER|SA_RESTART, 0x397d2329a0}, {0x5e4520, [PROF], SA_RESTORER|SA_RESTART, 0x397d2329a0}, 8) = 0 <0.000012> 11:43:44.517668 rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 <0.000010> 11:43:44.517744 stat("/data1/www/htdocs/v5.weibo.com/conf/", 0x7fffd26915b0) = -1 ENOENT (No such file or directory) <0.000014> 11:43:44.517812 open("/data1/www/htdocs/energy.tv.weibo.cn/public/index.php", O_RDONLY) = 5 <0.000016> 11:43:44.517871 fstat(5, {st_mode=S_IFREG|0644, st_size=1768, ...}) = 0 <0.000011> 11:43:44.517934 fstat(5, {st_mode=S_IFREG|0644, st_size=1768, ...}) = 0 <0.000011> 11:43:44.517993 fstat(5, {st_mode=S_IFREG|0644, st_size=1768, ...}) = 0 <0.000011> 11:43:44.518054 mmap(NULL, 1768, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000024> 11:43:44.518117 getcwd("/home/chuanbo7", 4095) = 15 <0.000015> 11:43:44.518169 chdir("/data1/www/htdocs/energy.tv.weibo.cn/public") = 0 <0.000013> 11:43:44.518222 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={86400, 0}}, NULL) = 0 <0.000011> 11:43:44.518498 munmap(0x7ffce39ba000, 1768) = 0 <0.000018> 11:43:44.518551 close(5) = 0 <0.000015> 11:43:44.518671 stat("/data1/www/htdocs/energy.tv.weibo.cn/application/config/application.ini", {st_mode=S_IFREG|0644, st_size=300, ...}) = 0 <0.000016> 11:43:44.518811 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/Bootstrap.php", {st_mode=S_IFREG|0644, st_size=3055, ...}) = 0 <0.000014> 11:43:44.518882 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.518957 open("/data1/www/htdocs/energy.tv.weibo.cn/application/Bootstrap.php", O_RDONLY) = 5 <0.000014> 11:43:44.519013 fstat(5, {st_mode=S_IFREG|0644, st_size=3055, ...}) = 0 <0.000011> 11:43:44.519074 fstat(5, {st_mode=S_IFREG|0644, st_size=3055, ...}) = 0 <0.000010> 11:43:44.519132 fstat(5, {st_mode=S_IFREG|0644, st_size=3055, ...}) = 0 <0.000010> 11:43:44.519192 mmap(NULL, 3055, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000012> 11:43:44.519471 munmap(0x7ffce39ba000, 3055) = 0 <0.000014> 11:43:44.519519 close(5) = 0 <0.000011> 11:43:44.519613 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Context.php", {st_mode=S_IFREG|0644, st_size=8721, ...}) = 0 <0.000017> 11:43:44.519697 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.519767 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000013> 11:43:44.519844 open("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Context.php", O_RDONLY) = 5 <0.000016> 11:43:44.519903 fstat(5, {st_mode=S_IFREG|0644, st_size=8721, ...}) = 0 <0.000010> 11:43:44.519963 fstat(5, {st_mode=S_IFREG|0644, st_size=8721, ...}) = 0 <0.000010> 11:43:44.520021 fstat(5, {st_mode=S_IFREG|0644, st_size=8721, ...}) = 0 <0.000011> 11:43:44.520080 mmap(NULL, 8721, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b8000 <0.000013> 11:43:44.520636 munmap(0x7ffce39b8000, 8721) = 0 <0.000015> 11:43:44.520685 close(5) = 0 <0.000011> 11:43:44.520763 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Cache.php", {st_mode=S_IFREG|0644, st_size=3405, ...}) = 0 <0.000016> 11:43:44.520851 open("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Cache.php", O_RDONLY) = 5 <0.000015> 11:43:44.520908 fstat(5, {st_mode=S_IFREG|0644, st_size=3405, ...}) = 0 <0.000011> 11:43:44.520968 fstat(5, {st_mode=S_IFREG|0644, st_size=3405, ...}) = 0 <0.000009> 11:43:44.521042 fstat(5, {st_mode=S_IFREG|0644, st_size=3405, ...}) = 0 <0.000010> 11:43:44.521109 mmap(NULL, 3405, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000013> 11:43:44.521392 munmap(0x7ffce39ba000, 3405) = 0 <0.000014> 11:43:44.521439 close(5) = 0 <0.000012> 11:43:44.521499 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Tool/WeiboConf.php", {st_mode=S_IFREG|0644, st_size=2653, ...}) = 0 <0.000016> 11:43:44.521573 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Tool", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000017> 11:43:44.521654 open("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Tool/WeiboConf.php", O_RDONLY) = 5 <0.000015> 11:43:44.521713 fstat(5, {st_mode=S_IFREG|0644, st_size=2653, ...}) = 0 <0.000010> 11:43:44.521772 fstat(5, {st_mode=S_IFREG|0644, st_size=2653, ...}) = 0 <0.000010> 11:43:44.521829 fstat(5, {st_mode=S_IFREG|0644, st_size=2653, ...}) = 0 <0.000010> 11:43:44.521889 mmap(NULL, 2653, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000013> 11:43:44.522122 munmap(0x7ffce39ba000, 2653) = 0 <0.000014> 11:43:44.522168 close(5) = 0 <0.000011> 11:43:44.522227 access("/data1/www/htdocs/energy.tv.weibo.cn/application/config/cache_pool.ini", F_OK) = 0 <0.000016> 11:43:44.522289 stat("/data1/www/htdocs/energy.tv.weibo.cn/application/config/cache_pool.ini", {st_mode=S_IFREG|0644, st_size=2902, ...}) = 0 <0.000013> 11:43:44.522360 open("/data1/www/htdocs/energy.tv.weibo.cn/application/config/cache_pool.ini", O_RDONLY) = 5 <0.000014> 11:43:44.522416 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd268ec60) = -1 ENOTTY (Inappropriate ioctl for device) <0.000011> 11:43:44.522473 fstat(5, {st_mode=S_IFREG|0644, st_size=2902, ...}) = 0 <0.000011> 11:43:44.522533 mmap(NULL, 2934, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7ffce39ba000 <0.000012> 11:43:44.522578 fstat(5, {st_mode=S_IFREG|0644, st_size=2902, ...}) = 0 <0.000010> 11:43:44.522640 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffce39b9000 <0.000012> 11:43:44.522686 lseek(5, 0, SEEK_CUR) = 0 <0.000010> 11:43:44.522853 munmap(0x7ffce39ba000, 2934) = 0 <0.000013> 11:43:44.522899 close(5) = 0 <0.000011> 11:43:44.522940 munmap(0x7ffce39b9000, 4096) = 0 <0.000011> 11:43:44.523082 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Db.php", {st_mode=S_IFREG|0644, st_size=1603, ...}) = 0 <0.000015> 11:43:44.523162 open("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Db.php", O_RDONLY) = 5 <0.000015> 11:43:44.523218 fstat(5, {st_mode=S_IFREG|0644, st_size=1603, ...}) = 0 <0.000010> 11:43:44.523278 fstat(5, {st_mode=S_IFREG|0644, st_size=1603, ...}) = 0 <0.000010> 11:43:44.523337 fstat(5, {st_mode=S_IFREG|0644, st_size=1603, ...}) = 0 <0.000010> 11:43:44.523403 mmap(NULL, 1603, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000013> 11:43:44.523614 munmap(0x7ffce39ba000, 1603) = 0 <0.000013> 11:43:44.523661 close(5) = 0 <0.000012> 11:43:44.523719 access("/data1/www/htdocs/energy.tv.weibo.cn/application/config/db_pool.ini", F_OK) = 0 <0.000016> 11:43:44.523779 stat("/data1/www/htdocs/energy.tv.weibo.cn/application/config/db_pool.ini", {st_mode=S_IFREG|0644, st_size=901, ...}) = 0 <0.000013> 11:43:44.523850 open("/data1/www/htdocs/energy.tv.weibo.cn/application/config/db_pool.ini", O_RDONLY) = 5 <0.000015> 11:43:44.523906 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd268ec60) = -1 ENOTTY (Inappropriate ioctl for device) <0.000010> 11:43:44.523951 fstat(5, {st_mode=S_IFREG|0644, st_size=901, ...}) = 0 <0.000011> 11:43:44.524011 mmap(NULL, 933, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7ffce39ba000 <0.000012> 11:43:44.524056 fstat(5, {st_mode=S_IFREG|0644, st_size=901, ...}) = 0 <0.000011> 11:43:44.524115 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffce39b9000 <0.000011> 11:43:44.524159 lseek(5, 0, SEEK_CUR) = 0 <0.000010> 11:43:44.524251 munmap(0x7ffce39ba000, 933) = 0 <0.000013> 11:43:44.524296 close(5) = 0 <0.000011> 11:43:44.524338 munmap(0x7ffce39b9000, 4096) = 0 <0.000011> 11:43:44.524406 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Db/PdoMysql.php", {st_mode=S_IFREG|0644, st_size=9281, ...}) = 0 <0.000015> 11:43:44.524480 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Db", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000014> 11:43:44.524557 open("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Db/PdoMysql.php", O_RDONLY) = 5 <0.000015> 11:43:44.524612 fstat(5, {st_mode=S_IFREG|0644, st_size=9281, ...}) = 0 <0.000011> 11:43:44.524671 fstat(5, {st_mode=S_IFREG|0644, st_size=9281, ...}) = 0 <0.000009> 11:43:44.524728 fstat(5, {st_mode=S_IFREG|0644, st_size=9281, ...}) = 0 <0.000010> 11:43:44.524786 mmap(NULL, 9281, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b8000 <0.000012> 11:43:44.525559 munmap(0x7ffce39b8000, 9281) = 0 <0.000015> 11:43:44.525611 close(5) = 0 <0.000012> 11:43:44.525690 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Db/Interface.php", {st_mode=S_IFREG|0644, st_size=83, ...}) = 0 <0.000016> 11:43:44.525771 open("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Db/Interface.php", O_RDONLY) = 5 <0.000015> 11:43:44.525829 fstat(5, {st_mode=S_IFREG|0644, st_size=83, ...}) = 0 <0.000010> 11:43:44.525891 fstat(5, {st_mode=S_IFREG|0644, st_size=83, ...}) = 0 <0.000010> 11:43:44.525950 fstat(5, {st_mode=S_IFREG|0644, st_size=83, ...}) = 0 <0.000010> 11:43:44.526008 mmap(NULL, 83, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000013> 11:43:44.526082 munmap(0x7ffce39ba000, 83) = 0 <0.000013> 11:43:44.526127 close(5) = 0 <0.000011> 11:43:44.526293 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Redis.php", {st_mode=S_IFREG|0644, st_size=7142, ...}) = 0 <0.000015> 11:43:44.526373 open("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Redis.php", O_RDONLY) = 5 <0.000015> 11:43:44.526429 fstat(5, {st_mode=S_IFREG|0644, st_size=7142, ...}) = 0 <0.000010> 11:43:44.526489 fstat(5, {st_mode=S_IFREG|0644, st_size=7142, ...}) = 0 <0.000011> 11:43:44.526547 fstat(5, {st_mode=S_IFREG|0644, st_size=7142, ...}) = 0 <0.000009> 11:43:44.526617 mmap(NULL, 7142, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b9000 <0.000013> 11:43:44.526944 brk(0x12db000) = 0x12db000 <0.000014> 11:43:44.527435 munmap(0x7ffce39b9000, 7142) = 0 <0.000015> 11:43:44.527482 close(5) = 0 <0.000011> 11:43:44.527539 access("/data1/www/htdocs/energy.tv.weibo.cn/application/config/redis_pool.ini", F_OK) = 0 <0.000016> 11:43:44.527601 stat("/data1/www/htdocs/energy.tv.weibo.cn/application/config/redis_pool.ini", {st_mode=S_IFREG|0644, st_size=227, ...}) = 0 <0.000014> 11:43:44.527679 open("/data1/www/htdocs/energy.tv.weibo.cn/application/config/redis_pool.ini", O_RDONLY) = 5 <0.000015> 11:43:44.527743 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd268ec60) = -1 ENOTTY (Inappropriate ioctl for device) <0.000010> 11:43:44.527788 fstat(5, {st_mode=S_IFREG|0644, st_size=227, ...}) = 0 <0.000010> 11:43:44.527848 mmap(NULL, 259, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7ffce39ba000 <0.000013> 11:43:44.527894 fstat(5, {st_mode=S_IFREG|0644, st_size=227, ...}) = 0 <0.000010> 11:43:44.527952 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffce39b9000 <0.000012> 11:43:44.527996 lseek(5, 0, SEEK_CUR) = 0 <0.000010> 11:43:44.528059 munmap(0x7ffce39ba000, 259) = 0 <0.000013> 11:43:44.528104 close(5) = 0 <0.000011> 11:43:44.528147 munmap(0x7ffce39b9000, 4096) = 0 <0.000011> 11:43:44.528221 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Pika.php", {st_mode=S_IFREG|0644, st_size=6441, ...}) = 0 <0.000015> 11:43:44.528301 open("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Pika.php", O_RDONLY) = 5 <0.000015> 11:43:44.528357 fstat(5, {st_mode=S_IFREG|0644, st_size=6441, ...}) = 0 <0.000010> 11:43:44.528416 fstat(5, {st_mode=S_IFREG|0644, st_size=6441, ...}) = 0 <0.000010> 11:43:44.528472 fstat(5, {st_mode=S_IFREG|0644, st_size=6441, ...}) = 0 <0.000009> 11:43:44.528553 mmap(NULL, 6441, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b9000 <0.000014> 11:43:44.529296 munmap(0x7ffce39b9000, 6441) = 0 <0.000037> 11:43:44.529366 close(5) = 0 <0.000011> 11:43:44.529423 access("/data1/www/htdocs/energy.tv.weibo.cn/application/config/pika_pool.ini", F_OK) = 0 <0.000016> 11:43:44.529483 stat("/data1/www/htdocs/energy.tv.weibo.cn/application/config/pika_pool.ini", {st_mode=S_IFREG|0644, st_size=309, ...}) = 0 <0.000014> 11:43:44.529554 open("/data1/www/htdocs/energy.tv.weibo.cn/application/config/pika_pool.ini", O_RDONLY) = 5 <0.000014> 11:43:44.529613 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd268ec60) = -1 ENOTTY (Inappropriate ioctl for device) <0.000012> 11:43:44.529660 fstat(5, {st_mode=S_IFREG|0644, st_size=309, ...}) = 0 <0.000009> 11:43:44.529719 mmap(NULL, 341, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7ffce39ba000 <0.000012> 11:43:44.529764 fstat(5, {st_mode=S_IFREG|0644, st_size=309, ...}) = 0 <0.000009> 11:43:44.529820 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffce39b9000 <0.000011> 11:43:44.529876 lseek(5, 0, SEEK_CUR) = 0 <0.000011> 11:43:44.529948 munmap(0x7ffce39ba000, 341) = 0 <0.000013> 11:43:44.529992 close(5) = 0 <0.000011> 11:43:44.530033 munmap(0x7ffce39b9000, 4096) = 0 <0.000010> 11:43:44.530118 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/plugins/WapAuthorize.php", {st_mode=S_IFREG|0644, st_size=8075, ...}) = 0 <0.000016> 11:43:44.530192 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/plugins", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.530268 open("/data1/www/htdocs/energy.tv.weibo.cn/application/plugins/WapAuthorize.php", O_RDONLY) = 5 <0.000015> 11:43:44.530324 fstat(5, {st_mode=S_IFREG|0644, st_size=8075, ...}) = 0 <0.000011> 11:43:44.530384 fstat(5, {st_mode=S_IFREG|0644, st_size=8075, ...}) = 0 <0.000011> 11:43:44.530442 fstat(5, {st_mode=S_IFREG|0644, st_size=8075, ...}) = 0 <0.000009> 11:43:44.530500 mmap(NULL, 8075, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b9000 <0.000019> 11:43:44.531093 munmap(0x7ffce39b9000, 8075) = 0 <0.000017> 11:43:44.531144 close(5) = 0 <0.000011> 11:43:44.531207 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/plugins/Rewrite.php", {st_mode=S_IFREG|0644, st_size=1118, ...}) = 0 <0.000016> 11:43:44.531287 open("/data1/www/htdocs/energy.tv.weibo.cn/application/plugins/Rewrite.php", O_RDONLY) = 5 <0.000014> 11:43:44.531342 fstat(5, {st_mode=S_IFREG|0644, st_size=1118, ...}) = 0 <0.000011> 11:43:44.531402 fstat(5, {st_mode=S_IFREG|0644, st_size=1118, ...}) = 0 <0.000010> 11:43:44.531458 fstat(5, {st_mode=S_IFREG|0644, st_size=1118, ...}) = 0 <0.000010> 11:43:44.531516 mmap(NULL, 1118, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000013> 11:43:44.531690 munmap(0x7ffce39ba000, 1118) = 0 <0.000014> 11:43:44.531739 close(5) = 0 <0.000011> 11:43:44.531828 access("/data1/www/htdocs/energy.tv.weibo.cn/application/config/routers.ini", F_OK) = 0 <0.000022> 11:43:44.531893 stat("/data1/www/htdocs/energy.tv.weibo.cn/application/config/routers.ini", {st_mode=S_IFREG|0644, st_size=662, ...}) = 0 <0.000013> 11:43:44.531964 open("/data1/www/htdocs/energy.tv.weibo.cn/application/config/routers.ini", O_RDONLY) = 5 <0.000015> 11:43:44.532020 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd268ec30) = -1 ENOTTY (Inappropriate ioctl for device) <0.000011> 11:43:44.532064 fstat(5, {st_mode=S_IFREG|0644, st_size=662, ...}) = 0 <0.000010> 11:43:44.532124 mmap(NULL, 694, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7ffce39ba000 <0.000019> 11:43:44.532175 fstat(5, {st_mode=S_IFREG|0644, st_size=662, ...}) = 0 <0.000011> 11:43:44.532234 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffce39b9000 <0.000011> 11:43:44.532278 lseek(5, 0, SEEK_CUR) = 0 <0.000011> 11:43:44.532383 munmap(0x7ffce39ba000, 694) = 0 <0.000013> 11:43:44.532428 close(5) = 0 <0.000011> 11:43:44.532470 munmap(0x7ffce39b9000, 4096) = 0 <0.000011> 11:43:44.532595 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/controllers/Ssvote.php", {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 <0.000016> 11:43:44.532691 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/controllers", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000013> 11:43:44.532768 open("/data1/www/htdocs/energy.tv.weibo.cn/application/controllers/Ssvote.php", O_RDONLY) = 5 <0.000015> 11:43:44.532824 fstat(5, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 <0.000010> 11:43:44.532884 fstat(5, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 <0.000010> 11:43:44.532941 fstat(5, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 <0.000010> 11:43:44.533001 mmap(NULL, 405, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000012> 11:43:44.533113 munmap(0x7ffce39ba000, 405) = 0 <0.000015> 11:43:44.533160 close(5) = 0 <0.000011> 11:43:44.533213 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/controllers/Abstract.php", {st_mode=S_IFREG|0644, st_size=5580, ...}) = 0 <0.000015> 11:43:44.533293 open("/data1/www/htdocs/energy.tv.weibo.cn/application/controllers/Abstract.php", O_RDONLY) = 5 <0.000015> 11:43:44.533350 fstat(5, {st_mode=S_IFREG|0644, st_size=5580, ...}) = 0 <0.000010> 11:43:44.533409 fstat(5, {st_mode=S_IFREG|0644, st_size=5580, ...}) = 0 <0.000009> 11:43:44.533465 fstat(5, {st_mode=S_IFREG|0644, st_size=5580, ...}) = 0 <0.000009> 11:43:44.533522 mmap(NULL, 5580, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b9000 <0.000016> 11:43:44.534032 munmap(0x7ffce39b9000, 5580) = 0 <0.000016> 11:43:44.534081 close(5) = 0 <0.000011> 11:43:44.534171 lstat("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Ssom.php", {st_mode=S_IFREG|0644, st_size=1792, ...}) = 0 <0.000016> 11:43:44.534251 open("/data1/www/htdocs/energy.tv.weibo.cn/application/library/Comm/Ssom.php", O_RDONLY) = 5 <0.000015> 11:43:44.534307 fstat(5, {st_mode=S_IFREG|0644, st_size=1792, ...}) = 0 <0.000010> 11:43:44.534367 fstat(5, {st_mode=S_IFREG|0644, st_size=1792, ...}) = 0 <0.000010> 11:43:44.534423 fstat(5, {st_mode=S_IFREG|0644, st_size=1792, ...}) = 0 <0.000009> 11:43:44.534480 mmap(NULL, 1792, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000018> 11:43:44.534646 brk(0x131b000) = 0x131b000 <0.000012> 11:43:44.534735 munmap(0x7ffce39ba000, 1792) = 0 <0.000015> 11:43:44.534782 close(5) = 0 <0.000014> 11:43:44.534832 getcwd("/data1/www/htdocs/energy.tv.weibo.cn/public", 4096) = 44 <0.000012> 11:43:44.534884 lstat("/data1/www/htdocs/energy.tv.weibo.cn/public/./sso/sdk/client/0.6.23/client.php", 0x7fffd2689430) = -1 ENOENT (No such file or directory) <0.000014> 11:43:44.534944 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/client.php", {st_mode=S_IFREG|0644, st_size=23258, ...}) = 0 <0.000018> 11:43:44.535017 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000013> 11:43:44.535091 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000013> 11:43:44.535158 lstat("/usr/local/sinasrv2/lib/php/sso/sdk", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.535223 lstat("/usr/local/sinasrv2/lib/php/sso", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.535287 lstat("/usr/local/sinasrv2/lib/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.535350 lstat("/usr/local/sinasrv2/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0 <0.000011> 11:43:44.535413 lstat("/usr/local/sinasrv2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.535475 lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000011> 11:43:44.535536 lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000011> 11:43:44.535609 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/client.php", O_RDONLY) = 5 <0.000017> 11:43:44.535667 fstat(5, {st_mode=S_IFREG|0644, st_size=23258, ...}) = 0 <0.000010> 11:43:44.535727 fstat(5, {st_mode=S_IFREG|0644, st_size=23258, ...}) = 0 <0.000010> 11:43:44.535786 fstat(5, {st_mode=S_IFREG|0644, st_size=23258, ...}) = 0 <0.000010> 11:43:44.535845 mmap(NULL, 23258, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b5000 <0.000058> 11:43:44.536700 munmap(0x7ffce39b5000, 23258) = 0 <0.000045> 11:43:44.536763 close(5) = 0 <0.000068> 11:43:44.536898 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/autoload.php", {st_mode=S_IFREG|0644, st_size=3221, ...}) = 0 <0.000027> 11:43:44.537009 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000007> 11:43:44.537064 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/autoload.php", O_RDONLY) = 5 <0.000017> 11:43:44.537122 fstat(5, {st_mode=S_IFREG|0644, st_size=3221, ...}) = 0 <0.000011> 11:43:44.537182 fstat(5, {st_mode=S_IFREG|0644, st_size=3221, ...}) = 0 <0.000010> 11:43:44.537242 fstat(5, {st_mode=S_IFREG|0644, st_size=3221, ...}) = 0 <0.000011> 11:43:44.537302 mmap(NULL, 3221, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000021> 11:43:44.537467 munmap(0x7ffce39ba000, 3221) = 0 <0.000008> 11:43:44.537489 close(5) = 0 <0.000012> 11:43:44.537574 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/config.php", {st_mode=S_IFREG|0644, st_size=18008, ...}) = 0 <0.000018> 11:43:44.537685 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/config.php", O_RDONLY) = 5 <0.000016> 11:43:44.537754 fstat(5, {st_mode=S_IFREG|0644, st_size=18008, ...}) = 0 <0.000011> 11:43:44.537814 fstat(5, {st_mode=S_IFREG|0644, st_size=18008, ...}) = 0 <0.000010> 11:43:44.537872 fstat(5, {st_mode=S_IFREG|0644, st_size=18008, ...}) = 0 <0.000011> 11:43:44.537932 mmap(NULL, 18008, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b6000 <0.000017> 11:43:44.538489 munmap(0x7ffce39b6000, 18008) = 0 <0.000008> 11:43:44.538512 close(5) = 0 <0.000011> 11:43:44.538597 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/request.php", {st_mode=S_IFREG|0644, st_size=3421, ...}) = 0 <0.000018> 11:43:44.538697 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/request.php", O_RDONLY) = 5 <0.000015> 11:43:44.538759 fstat(5, {st_mode=S_IFREG|0644, st_size=3421, ...}) = 0 <0.000010> 11:43:44.538820 fstat(5, {st_mode=S_IFREG|0644, st_size=3421, ...}) = 0 <0.000010> 11:43:44.538878 fstat(5, {st_mode=S_IFREG|0644, st_size=3421, ...}) = 0 <0.000009> 11:43:44.538936 mmap(NULL, 3421, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000018> 11:43:44.539135 munmap(0x7ffce39ba000, 3421) = 0 <0.000007> 11:43:44.539158 close(5) = 0 <0.000011> 11:43:44.539233 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/util.php", {st_mode=S_IFREG|0644, st_size=6709, ...}) = 0 <0.000017> 11:43:44.539312 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/util.php", O_RDONLY) = 5 <0.000016> 11:43:44.539369 fstat(5, {st_mode=S_IFREG|0644, st_size=6709, ...}) = 0 <0.000010> 11:43:44.539433 fstat(5, {st_mode=S_IFREG|0644, st_size=6709, ...}) = 0 <0.000010> 11:43:44.539491 fstat(5, {st_mode=S_IFREG|0644, st_size=6709, ...}) = 0 <0.000010> 11:43:44.539551 mmap(NULL, 6709, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b9000 <0.000016> 11:43:44.539673 brk(0x135b000) = 0x135b000 <0.000006> 11:43:44.539932 munmap(0x7ffce39b9000, 6709) = 0 <0.000008> 11:43:44.539955 close(5) = 0 <0.000012> 11:43:44.540041 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/session/session.php", {st_mode=S_IFREG|0644, st_size=26494, ...}) = 0 <0.000017> 11:43:44.540128 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/session", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000014> 11:43:44.540204 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/session/session.php", O_RDONLY) = 5 <0.000015> 11:43:44.540260 fstat(5, {st_mode=S_IFREG|0644, st_size=26494, ...}) = 0 <0.000011> 11:43:44.540320 fstat(5, {st_mode=S_IFREG|0644, st_size=26494, ...}) = 0 <0.000010> 11:43:44.540378 fstat(5, {st_mode=S_IFREG|0644, st_size=26494, ...}) = 0 <0.000010> 11:43:44.540437 mmap(NULL, 26494, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b4000 <0.000019> 11:43:44.541381 munmap(0x7ffce39b4000, 26494) = 0 <0.000007> 11:43:44.541404 close(5) = 0 <0.000012> 11:43:44.541476 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/counter.php", {st_mode=S_IFREG|0644, st_size=3166, ...}) = 0 <0.000017> 11:43:44.541556 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/counter.php", O_RDONLY) = 5 <0.000016> 11:43:44.541613 fstat(5, {st_mode=S_IFREG|0644, st_size=3166, ...}) = 0 <0.000011> 11:43:44.541674 fstat(5, {st_mode=S_IFREG|0644, st_size=3166, ...}) = 0 <0.000010> 11:43:44.541732 fstat(5, {st_mode=S_IFREG|0644, st_size=3166, ...}) = 0 <0.000010> 11:43:44.541791 mmap(NULL, 3166, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000017> 11:43:44.542002 munmap(0x7ffce39ba000, 3166) = 0 <0.000007> 11:43:44.542024 close(5) = 0 <0.000012> 11:43:44.542153 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/user.php", {st_mode=S_IFREG|0644, st_size=3065, ...}) = 0 <0.000022> 11:43:44.542239 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/user.php", O_RDONLY) = 5 <0.000015> 11:43:44.542295 fstat(5, {st_mode=S_IFREG|0644, st_size=3065, ...}) = 0 <0.000011> 11:43:44.542354 fstat(5, {st_mode=S_IFREG|0644, st_size=3065, ...}) = 0 <0.000010> 11:43:44.542412 fstat(5, {st_mode=S_IFREG|0644, st_size=3065, ...}) = 0 <0.000011> 11:43:44.542472 mmap(NULL, 3065, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000017> 11:43:44.542654 brk(0x139b000) = 0x139b000 <0.000006> 11:43:44.542697 munmap(0x7ffce39ba000, 3065) = 0 <0.000007> 11:43:44.542719 close(5) = 0 <0.000016> 11:43:44.542794 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/log.php", {st_mode=S_IFREG|0644, st_size=5749, ...}) = 0 <0.000017> 11:43:44.542872 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/log.php", O_RDONLY) = 5 <0.000015> 11:43:44.542928 fstat(5, {st_mode=S_IFREG|0644, st_size=5749, ...}) = 0 <0.000010> 11:43:44.542987 fstat(5, {st_mode=S_IFREG|0644, st_size=5749, ...}) = 0 <0.000010> 11:43:44.543044 fstat(5, {st_mode=S_IFREG|0644, st_size=5749, ...}) = 0 <0.000010> 11:43:44.543104 mmap(NULL, 5749, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b9000 <0.000017> 11:43:44.543394 munmap(0x7ffce39b9000, 5749) = 0 <0.000007> 11:43:44.543416 close(5) = 0 <0.000011> 11:43:44.543486 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/logger/udp.php", {st_mode=S_IFREG|0644, st_size=4385, ...}) = 0 <0.000017> 11:43:44.543560 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/logger", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000014> 11:43:44.543641 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/logger/udp.php", O_RDONLY) = 5 <0.000016> 11:43:44.543699 fstat(5, {st_mode=S_IFREG|0644, st_size=4385, ...}) = 0 <0.000010> 11:43:44.543760 fstat(5, {st_mode=S_IFREG|0644, st_size=4385, ...}) = 0 <0.000010> 11:43:44.543821 fstat(5, {st_mode=S_IFREG|0644, st_size=4385, ...}) = 0 <0.000010> 11:43:44.543879 mmap(NULL, 4385, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b9000 <0.000017> 11:43:44.544133 munmap(0x7ffce39b9000, 4385) = 0 <0.000007> 11:43:44.544155 close(5) = 0 <0.000012> 11:43:44.544219 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/logger/ilogger.php", {st_mode=S_IFREG|0644, st_size=280, ...}) = 0 <0.000017> 11:43:44.544300 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/logger/ilogger.php", O_RDONLY) = 5 <0.000016> 11:43:44.544358 fstat(5, {st_mode=S_IFREG|0644, st_size=280, ...}) = 0 <0.000010> 11:43:44.544418 fstat(5, {st_mode=S_IFREG|0644, st_size=280, ...}) = 0 <0.000010> 11:43:44.544475 fstat(5, {st_mode=S_IFREG|0644, st_size=280, ...}) = 0 <0.000011> 11:43:44.544535 mmap(NULL, 280, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000017> 11:43:44.544615 munmap(0x7ffce39ba000, 280) = 0 <0.000013> 11:43:44.544662 close(5) = 0 <0.000011> 11:43:44.544743 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/localstorage/file.php", {st_mode=S_IFREG|0644, st_size=1410, ...}) = 0 <0.000017> 11:43:44.544831 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/localstorage", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000013> 11:43:44.544907 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/localstorage/file.php", O_RDONLY) = 5 <0.000015> 11:43:44.544965 fstat(5, {st_mode=S_IFREG|0644, st_size=1410, ...}) = 0 <0.000010> 11:43:44.545024 fstat(5, {st_mode=S_IFREG|0644, st_size=1410, ...}) = 0 <0.000010> 11:43:44.545081 fstat(5, {st_mode=S_IFREG|0644, st_size=1410, ...}) = 0 <0.000010> 11:43:44.545137 mmap(NULL, 1410, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000016> 11:43:44.545278 munmap(0x7ffce39ba000, 1410) = 0 <0.000006> 11:43:44.545299 close(5) = 0 <0.000035> 11:43:44.545384 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/localstorage/ilocalstorage.php", {st_mode=S_IFREG|0644, st_size=392, ...}) = 0 <0.000057> 11:43:44.545577 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/localstorage/ilocalstorage.php", O_RDONLY) = 5 <0.000053> 11:43:44.545683 fstat(5, {st_mode=S_IFREG|0644, st_size=392, ...}) = 0 <0.000049> 11:43:44.545835 fstat(5, {st_mode=S_IFREG|0644, st_size=392, ...}) = 0 <0.000043> 11:43:44.545958 fstat(5, {st_mode=S_IFREG|0644, st_size=392, ...}) = 0 <0.000014> 11:43:44.546021 mmap(NULL, 392, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000023> 11:43:44.546138 munmap(0x7ffce39ba000, 392) = 0 <0.000018> 11:43:44.546190 close(5) = 0 <0.000013> 11:43:44.546283 stat("/data1/www/cache/energy.tv.weibo.cn/", 0x7fffd268edd0) = -1 ENOENT (No such file or directory) <0.000017> 11:43:44.546356 stat("/tmp", {st_mode=S_IFDIR|0777, st_size=20480, ...}) = 0 <0.000015> 11:43:44.546425 stat("/tmp/sso", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000013> 11:43:44.546495 access("/tmp/sso/sso_sdk_conf_cache_sso_client_0.6.23_miniblog_.weibo.cn_tc_10.235.25.242", F_OK) = 0 <0.000015> 11:43:44.546552 utime("/tmp/sso/sso_sdk_conf_cache_sso_client_0.6.23_miniblog_.weibo.cn_tc_10.235.25.242", NULL) = 0 <0.000021> 11:43:44.546626 access("/tmp/sso/sso_sdk_conf_cache_sso_client_0.6.23_miniblog_.weibo.cn_tc_10.235.25.242", R_OK) = 0 <0.000013> 11:43:44.546699 lstat("/tmp/sso/sso_sdk_conf_cache_sso_client_0.6.23_miniblog_.weibo.cn_tc_10.235.25.242", {st_mode=S_IFREG|0644, st_size=9220, ...}) = 0 <0.000014> 11:43:44.546771 lstat("/tmp/sso", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 <0.000012> 11:43:44.546834 lstat("/tmp", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0 <0.000012> 11:43:44.546901 readlink("/tmp", "/data1/tmp"..., 4096) = 10 <0.000012> 11:43:44.546950 lstat("/data1/tmp", {st_mode=S_IFDIR|0777, st_size=20480, ...}) = 0 <0.000012> 11:43:44.547015 open("/data1/tmp/sso/sso_sdk_conf_cache_sso_client_0.6.23_miniblog_.weibo.cn_tc_10.235.25.242", O_RDONLY) = 5 <0.000015> 11:43:44.547073 fstat(5, {st_mode=S_IFREG|0644, st_size=9220, ...}) = 0 <0.000010> 11:43:44.547134 lseek(5, 0, SEEK_CUR) = 0 <0.000010> 11:43:44.547178 fstat(5, {st_mode=S_IFREG|0644, st_size=9220, ...}) = 0 <0.000010> 11:43:44.547242 read(5, "a:2:{s:4:\"meta\";a:3:{s:4:\"etag\";"..., 8192) = 8192 <0.000020> 11:43:44.547303 read(5, ";a:2:{s:5:\"index\";i:9;s:4:\"pack\""..., 8192) = 1028 <0.000011> 11:43:44.547353 read(5, "", 8192) = 0 <0.000011> 11:43:44.547396 read(5, "", 8192) = 0 <0.000011> 11:43:44.547440 close(5) = 0 <0.000011> 11:43:44.547729 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/debugger.php", {st_mode=S_IFREG|0644, st_size=4392, ...}) = 0 <0.000017> 11:43:44.547810 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/debugger.php", O_RDONLY) = 5 <0.000016> 11:43:44.547871 fstat(5, {st_mode=S_IFREG|0644, st_size=4392, ...}) = 0 <0.000010> 11:43:44.547930 fstat(5, {st_mode=S_IFREG|0644, st_size=4392, ...}) = 0 <0.000011> 11:43:44.547988 fstat(5, {st_mode=S_IFREG|0644, st_size=4392, ...}) = 0 <0.000009> 11:43:44.548044 mmap(NULL, 4392, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b9000 <0.000017> 11:43:44.548499 munmap(0x7ffce39b9000, 4392) = 0 <0.000017> 11:43:44.548548 close(5) = 0 <0.000012> 11:43:44.548612 open("/data1/tmp/sso/sso_sdk_conf_cache_sso_client_0.6.23_miniblog_.weibo.cn_tc_10.235.25.242", O_RDONLY) = 5 <0.000029> 11:43:44.548691 fstat(5, {st_mode=S_IFREG|0644, st_size=9220, ...}) = 0 <0.000012> 11:43:44.548760 lseek(5, 0, SEEK_CUR) = 0 <0.000009> 11:43:44.548805 fstat(5, {st_mode=S_IFREG|0644, st_size=9220, ...}) = 0 <0.000009> 11:43:44.548881 read(5, "a:2:{s:4:\"meta\";a:3:{s:4:\"etag\";"..., 8192) = 8192 <0.000016> 11:43:44.548953 read(5, ";a:2:{s:5:\"index\";i:9;s:4:\"pack\""..., 8192) = 1028 <0.000012> 11:43:44.549008 read(5, "", 8192) = 0 <0.000009> 11:43:44.549049 read(5, "", 8192) = 0 <0.000009> 11:43:44.549090 close(5) = 0 <0.000011> 11:43:44.549275 brk(0x13db000) = 0x13db000 <0.000014> 11:43:44.549627 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/http.php", {st_mode=S_IFREG|0644, st_size=23806, ...}) = 0 <0.000036> 11:43:44.549769 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/http.php", O_RDONLY) = 5 <0.000036> 11:43:44.549888 fstat(5, {st_mode=S_IFREG|0644, st_size=23806, ...}) = 0 <0.000013> 11:43:44.549962 fstat(5, {st_mode=S_IFREG|0644, st_size=23806, ...}) = 0 <0.000009> 11:43:44.550023 fstat(5, {st_mode=S_IFREG|0644, st_size=23806, ...}) = 0 <0.000010> 11:43:44.550079 mmap(NULL, 23806, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39b5000 <0.000018> 11:43:44.552173 munmap(0x7ffce39b5000, 23806) = 0 <0.000018> 11:43:44.552226 close(5) = 0 <0.000012> 11:43:44.552819 rt_sigaction(SIGALRM, NULL, {SIG_DFL, [], SA_RESTORER, 0x397d2329a0}, 8) = 0 <0.000011> 11:43:44.552878 rt_sigaction(SIGALRM, {0x354680ebe0, [], SA_RESTORER, 0x397d2329a0}, NULL, 8) = 0 <0.000009> 11:43:44.552930 alarm(1) = 0 <0.000011> 11:43:44.552974 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 <0.000009> 11:43:44.553027 socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 5 <0.000020> 11:43:44.553079 close(5) = 0 <0.000017> 11:43:44.553132 socket(PF_NETLINK, SOCK_RAW, 0) = 5 <0.000013> 11:43:44.553178 bind(5, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 <0.000012> 11:43:44.553225 getsockname(5, {sa_family=AF_NETLINK, pid=6873, groups=00000000}, [12]) = 0 <0.000011> 11:43:44.553275 sendto(5, "\24\0\0\0\26\0\1\3p\220\314^\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 <0.000018> 11:43:44.553340 recvmsg(5, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0p\220\314^\331\32\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 160 <0.000017> 11:43:44.553415 recvmsg(5, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0p\220\314^\331\32\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192 <0.000013> 11:43:44.553492 recvmsg(5, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0p\220\314^\331\32\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 <0.000011> 11:43:44.553555 close(5) = 0 <0.000014> 11:43:44.553615 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 5 <0.000017> 11:43:44.553672 fstat(5, {st_mode=S_IFREG|0777, st_size=478, ...}) = 0 <0.000011> 11:43:44.553732 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffce39ba000 <0.000013> 11:43:44.553794 read(5, "127.0.0.1 i.jincheng3.topic.tv"..., 4096) = 478 <0.000017> 11:43:44.553865 read(5, "", 4096) = 0 <0.000006> 11:43:44.553889 close(5) = 0 <0.000011> 11:43:44.553940 munmap(0x7ffce39ba000, 4096) = 0 <0.000017> 11:43:44.553999 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 5 <0.000015> 11:43:44.554048 connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 <0.000015> 11:43:44.554101 poll([{fd=5, events=POLLOUT}], 1, 0) = 1 ([{fd=5, revents=POLLOUT}]) <0.000011> 11:43:44.554161 sendto(5, "\10\237\1\0\0\1\0\0\0\0\0\0\1i\4conf\3sso\4sina\3com"..., 40, MSG_NOSIGNAL, NULL, 0) = 40 <0.000051> 11:43:44.554245 poll([{fd=5, events=POLLIN|POLLOUT}], 1, 1000) = 1 ([{fd=5, revents=POLLOUT|POLLERR}]) <0.000012> 11:43:44.554296 sendto(5, "P\371\1\0\0\1\0\0\0\0\0\0\1i\4conf\3sso\4sina\3com"..., 40, MSG_NOSIGNAL, NULL, 0) = -1 ECONNREFUSED (Connection refused) <0.000011> 11:43:44.554349 close(5) = 0 <0.000014> 11:43:44.554396 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 5 <0.000013> 11:43:44.554441 connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("172.16.139.249")}, 16) = 0 <0.000012> 11:43:44.554490 poll([{fd=5, events=POLLOUT}], 1, 0) = 1 ([{fd=5, revents=POLLOUT}]) <0.000011> 11:43:44.554540 sendto(5, "\10\237\1\0\0\1\0\0\0\0\0\0\1i\4conf\3sso\4sina\3com"..., 40, MSG_NOSIGNAL, NULL, 0) = 40 <0.000028> 11:43:44.554613 poll([{fd=5, events=POLLIN|POLLOUT}], 1, 1000) = 1 ([{fd=5, revents=POLLOUT}]) <0.000015> 11:43:44.554668 sendto(5, "P\371\1\0\0\1\0\0\0\0\0\0\1i\4conf\3sso\4sina\3com"..., 40, MSG_NOSIGNAL, NULL, 0) = 40 <0.000020> 11:43:44.554728 poll([{fd=5, events=POLLIN}], 1, 999) = 1 ([{fd=5, revents=POLLIN}]) <0.000361> 11:43:44.555145 ioctl(5, FIONREAD, [216]) = 0 <0.000012> 11:43:44.555194 recvfrom(5, "\10\237\201\200\0\1\0\2\0\4\0\4\1i\4conf\3sso\4sina\3com"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("172.16.139.249")}, [16]) = 216 <0.000012> 11:43:44.555269 poll([{fd=5, events=POLLIN}], 1, 999) = 1 ([{fd=5, revents=POLLIN}]) <0.000011> 11:43:44.555317 ioctl(5, FIONREAD, [117]) = 0 <0.000011> 11:43:44.555362 recvfrom(5, "P\371\201\200\0\1\0\1\0\1\0\0\1i\4conf\3sso\4sina\3com"..., 1832, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("172.16.139.249")}, [16]) = 117 <0.000011> 11:43:44.555430 close(5) = 0 <0.000014> 11:43:44.555491 alarm(0) = 1 <0.000011> 11:43:44.555534 rt_sigaction(SIGALRM, {SIG_DFL, [], SA_RESTORER, 0x397d2329a0}, NULL, 8) = 0 <0.000010> 11:43:44.555593 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5 <0.000015> 11:43:44.555650 fcntl(5, F_GETFL) = 0x2 (flags O_RDWR) <0.000010> 11:43:44.555697 fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0.000011> 11:43:44.555740 connect(5, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("172.16.140.187")}, 16) = -1 EINPROGRESS (Operation now in progress) <0.000044> 11:43:44.555823 poll([{fd=5, events=POLLOUT|POLLWRNORM}], 1, 998) = 1 ([{fd=5, revents=POLLOUT|POLLWRNORM}]) <0.000441> 11:43:44.556304 getsockopt(5, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 <0.000011> 11:43:44.556374 sendto(5, "POST /api/session/config HTTP/1."..., 613, MSG_NOSIGNAL, NULL, 0) = 613 <0.000028> 11:43:44.556443 poll([{fd=5, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 0 (Timeout) <0.000011> 11:43:44.556490 poll([{fd=5, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 0 (Timeout) <0.000010> 11:43:44.556535 poll([{fd=5, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 1000) = 1 ([{fd=5, revents=POLLIN|POLLRDNORM}]) <0.012882> 11:43:44.569499 poll([{fd=5, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 1 ([{fd=5, revents=POLLIN|POLLRDNORM}]) <0.000029> 11:43:44.569646 recvfrom(5, "HTTP/1.1 200 OK\r\nServer: Tengine"..., 16384, 0, NULL, NULL) = 571 <0.000054> 11:43:44.569952 close(5) = 0 <0.000102> 11:43:44.570382 open("/data1/tmp/sso/sso_sdk_conf_cache_sso_client_0.6.23_miniblog_.weibo.cn_tc_10.235.25.242", O_WRONLY|O_CREAT, 0666) = 5 <0.000036> 11:43:44.570563 fstat(5, {st_mode=S_IFREG|0644, st_size=9220, ...}) = 0 <0.000032> 11:43:44.570673 lseek(5, 0, SEEK_CUR) = 0 <0.000010> 11:43:44.570722 flock(5, LOCK_EX) = 0 <0.000014> 11:43:44.570774 ftruncate(5, 0) = 0 <0.000080> 11:43:44.570911 write(5, "a:2:{s:4:\"meta\";a:3:{s:4:\"etag\";"..., 8192) = 8192 <0.000062> 11:43:44.571047 write(5, ";a:2:{s:5:\"index\";i:9;s:4:\"pack\""..., 1028) = 1028 <0.000031> 11:43:44.571138 close(5) = 0 <0.000065> 11:43:44.571312 lstat("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/timer.php", {st_mode=S_IFREG|0644, st_size=2149, ...}) = 0 <0.000019> 11:43:44.571403 open("/usr/local/sinasrv2/lib/php/sso/sdk/client/0.6.23/tools/timer.php", O_RDONLY) = 5 <0.000015> 11:43:44.571462 fstat(5, {st_mode=S_IFREG|0644, st_size=2149, ...}) = 0 <0.000010> 11:43:44.571522 fstat(5, {st_mode=S_IFREG|0644, st_size=2149, ...}) = 0 <0.000010> 11:43:44.571580 fstat(5, {st_mode=S_IFREG|0644, st_size=2149, ...}) = 0 <0.000011> 11:43:44.571653 mmap(NULL, 2149, PROT_READ, MAP_SHARED, 5, 0) = 0x7ffce39ba000 <0.000020> 11:43:44.571966 munmap(0x7ffce39ba000, 2149) = 0 <0.000016> 11:43:44.572015 close(5) = 0 <0.000012> 11:43:44.572192 access("/data1/www/htdocs/energy.tv.weibo.cn/application/config/env.ini", F_OK) = 0 <0.000018> 11:43:44.572254 stat("/data1/www/htdocs/energy.tv.weibo.cn/application/config/env.ini", {st_mode=S_IFREG|0644, st_size=1973, ...}) = 0 <0.000013> 11:43:44.572325 open("/data1/www/htdocs/energy.tv.weibo.cn/application/config/env.ini", O_RDONLY) = 5 <0.000015> 11:43:44.572381 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd268ec30) = -1 ENOTTY (Inappropriate ioctl for device) <0.000010> 11:43:44.572428 fstat(5, {st_mode=S_IFREG|0644, st_size=1973, ...}) = 0 <0.000010> 11:43:44.572489 mmap(NULL, 2005, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7ffce39ba000 <0.000013> 11:43:44.572535 fstat(5, {st_mode=S_IFREG|0644, st_size=1973, ...}) = 0 <0.000011> 11:43:44.572595 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffce39b9000 <0.000013> 11:43:44.572648 lseek(5, 0, SEEK_CUR) = 0 <0.000010> 11:43:44.572786 munmap(0x7ffce39ba000, 2005) = 0 <0.000014> 11:43:44.572832 close(5) = 0 <0.000011> 11:43:44.572874 munmap(0x7ffce39b9000, 4096) = 0 <0.000012> 11:43:44.572974 chdir("/home/chuanbo7") = 0 <0.000014> 11:43:44.573023 times({tms_utime=69, tms_stime=8, tms_cutime=0, tms_cstime=0}) = 487411305 <0.000010> 11:43:44.573084 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 <0.000011> 11:43:44.573809 write(3, "\1\6\0\1\2\v\5\0Content-type: text/html;"..., 552) = 552 <0.000093> 11:43:44.573967 shutdown(3, 1 /* send */) = 0 <0.000054> 11:43:44.574096 recvfrom(3, "\1\5\0\1\0\0\0\0", 8, 0, NULL, NULL) = 8 <0.000013> 11:43:44.574163 recvfrom(3, "", 8, 0, NULL, NULL) = 0 <0.000011> 11:43:44.574223 close(3) = 0 <0.000016> 11:43:44.574276 brk(0x135b000) = 0x135b000 <0.000052> 11:43:44.574359 brk(0x12db000) = 0x12db000 <0.000064> 11:43:44.574454 brk(0x125b000) = 0x125b000 <0.000063> 11:43:44.574755 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 <0.000015> 11:43:44.574849 accept(0, <unfinished ...>
参考:
https://en.wikipedia.org/wiki/Strace
Linux strace命令
CSDN:利用strace追踪php-fpm多个进程
CSDN:strace 线程跟踪详解
丁火笔记:手把手教你用Strace诊断问题