当前位置:首页>Linux>Linux故障检测工具之dstat

Linux故障检测工具之dstat

  • 2026-02-07 09:12:38
Linux故障检测工具之dstat

本实验基于天翼云服务器,部分信息可能与物理环境不一致

工具定位

dstat 把 CPU/内存/磁盘/网络等多类指标聚合在一屏,适合企业现场快速做全局趋势观察与对齐时间线。

企业级排障地图(系统资源/硬件)

先做基线,再做归因,最后做证据链:

  • • 基线:负载/CPU/内存/IO/网络五大件是否异常
  • • 归因:是进程问题、内核问题,还是硬件/虚拟化资源约束
  • • 证据:把关键指标、命令输出、时间窗固化到事故记录

推荐最短闭环:

  1. 1. top/htop 定位 Top 进程与资源方向
  2. 2. vmstat/mpstat/pidstat/iostat 找到瓶颈维度
  3. 3. lsof/ss 确认 FD/连接等资源是否膨胀
  4. 4. perf(必要时)做 CPU 火焰图/采样证据

以下是 dstat 企业级完全教程,涵盖从基础监控到生产环境性能分析的完整体系。


第一章:基础概念与定位

1.1 dstat 是什么

dstat (Dynamic System Tool) 是 vmstat/iostat/netstat/ifstat 的现代化替代品,由 Python 编写,特点:

  • • 全屏替代:一个命令查看所有资源(CPU/磁盘/网络/内存/进程)
  • • 实时彩色:高亮显示单位,自动缩放数值
  • • 模块化设计:40+ 插件支持(MySQL、Redis、NFS、GPFS 等)
  • • CSV 导出:原生支持数据导出用于后续分析(Gragana、Excel)

1.2 与传统工具对比

工具
局限
dstat 优势
vmstat
仅 CPU/内存/基础 IO
包含网络、进程、详细磁盘
iostat
仅磁盘
整合 CPU、进程上下文切换
netstat
仅网络
与系统资源联动显示
sar
历史数据为主
实时 + 即时分析
htop
交互式
非交互式,适合脚本/后台

第二章:安装与基础语法

2.1 安装方法

# RHEL/CentOS/Fedora
sudo yum install dstat
# 或 dnf
sudo dnf install dstat

# Debian/Ubuntu
sudo apt-get install dstat

# Arch Linux
sudo pacman -S dstat

# macOS (Homebrew)
brew install dstat  # 注:macOS 部分功能受限

# 源码安装(获取最新插件)
git clone https://github.com/dagwieers/dstat.git
cd dstat && sudocp dstat /usr/local/bin/

2.2 基本语法结构

dstat [options] [delay] [count]
  • • delay:采样间隔(秒),默认 1
  • • count:采样次数,默认无限

示例

# 每秒刷新,共 10 次
[root@myhost ~]# dstat 1 10
You did not select any stats, using -cdngy by default.
----total-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai stl| read  writ| recv  send|  in   out | int   csw 
  0   0  99   0   0|   0     0 | 871B 2420B|   0     0 | 183   207 

...

# 每 5 秒刷新,无限运行
[root@myhost ~]# dstat 5
You did not select any stats, using -cdngy by default.
----total-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai stl| read  writ| recv  send|  in   out | int   csw 
  0   0 100   0   0|   0  4096B| 133B  408B|   0     0 | 103   144 
  0   0 100   0   0|   0  6554B| 191B  415B|   0     0 |  96   149 
  0   0 100   0   0|   0  2048B| 196B  383B|   0     0 | 130   168 ^C

第三章:核心参数详解与实战

3.1 基础监控维度(单字母参数)

-c, --cpu(CPU 统计)

[root@myhost ~]# dstat -c 1 5
----total-usage----
usr sys idl wai stl
  0   0 100   0   0
  0   0 100   0   0
  0   0  99   0   0
  1   0 100   0   0
  0   0 100   0   0

输出列解释

  • • usr:用户空间 CPU 占比(应用代码)
  • • sys:内核空间 CPU 占比(系统调用、驱动)
  • • idl:空闲 CPU
  • • wai关键指标 - I/O 等待百分比(磁盘瓶颈信号)
  • • hiq:硬中断
  • • siq:软中断

企业场景wai > 10% 持续 1 分钟 → 磁盘性能告警

-d, --disk(磁盘吞吐)

[root@myhost ~]# dstat -d 2
-dsk/total-
read  writ
   0     0 
   0     0 
   0     0 
   0     0 
   0     0 
   0     0 
   0  2048B
   0     0 
   0     0 
   0    16k^C

输出列

  • • read:读速度(自动单位:B/k/M/G)
  • • writ:写速度

结合 -D 指定设备

# 仅监控 vda
[root@myhost ~]# fdisk -l
Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc4f7316d

Device     Boot   Start      End  Sectors Size Id Type
/dev/vda1  *       2048  2099199  2097152   1G 83 Linux
/dev/vda2       2099200 83886079 81786880  39G 83 Linux


[root@myhost ~]# dstat -d -D vda 1 
--dsk/vda--
read  writ
   0  4092B
   0    16k
   0     0 
   0     0 
   0     0 
   0     0 
   0     0 
   0  4096B^C

-n, --net(网络吞吐)

[root@myhost ~]# dstat -n 1
-net/total-
 recv  send
 120B  218B
 278B 1408B
2622B 2602B
 330B 2450B
 674B  614B
 944B  811B
 337B  461B
1895B 1672B^C

输出列

  • • recv:接收速率
  • • send:发送速率

指定网卡

# 仅监控 eth0
[root@myhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether fa:16:3e:90:e9:04 brd ff:ff:ff:ff:ff:ff
    altname enp0s3
    altname ens3
    inet 192.168.1.28/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
       valid_lft 311014704sec preferred_lft 311014704sec
    inet6 fe80::f816:3eff:fe90:e904/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
link/ether 3a:86:b4:49:c9:6b brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever

[root@myhost ~]# dstat -n -N eth0 1
--net/eth0-
 recv  send
 574B  610B
  60B  138B
 142B  228B
 150B  200B
  60B  146B
 537B  672B
1691B 3661B^C

-m, --mem(内存使用)

[root@myhost ~]# dstat -m
------memory-usage-----
 used  free  buf   cach
1165M 7864M  611M 5818M
1165M 7864M  611M 5818M
1159M 7870M  611M 5818M
1165M 7864M  611M 5818M
1161M 7869M  611M 5818M
1161M 7869M  611M 5818M^C

输出列

  • • used:已用内存(含缓存)
  • • free:完全空闲
  • • buf:缓冲区
  • • cach:缓存
  • • avail可用内存(Linux 3.14+,不含缓存)

-s, --swap(交换分区)

[root@myhost ~]# dstat -s
---total---
 used  free

关键指标used > 0 且持续增长 → 内存不足告警

-y, --sys(系统级事件)

[root@myhost ~]# dstat -y
---system--
 int   csw 
 168   199 
 130   174 
  75   127 
 129   184 
 128   157 
 133   160 ^C

包含:

  • • int:中断数/秒(context switches)
  • • csw:上下文切换/秒

性能分析:高 csw(>100k)+ 高 sys CPU → 进程调度过载


3.2 高级插件系统(双横线参数)

dstat 的强大之处在于 40+ 内置插件

磁盘利用率(--disk-util)

[root@myhost ~]# dstat --disk-util
vda-
util
   0
   0
   0
   0
   0
   0^C

显示 %util(设备繁忙百分比),类似 iostat -x 的 %util。

TCP/UDP 统计(--tcp, --udp)

[root@myhost ~]# dstat --tcp
------tcp-sockets-------
lis  act  syn  tim  clo 
  3    5    0    4    1 
  3    5    0    4    1 
  3    5    0    4    1 
  3    5    0    4    1 
  3    5    0    4    1 ^C

监控:

  • • lis:监听端口数
  • • act:活跃连接数
  • • syn:SYN 等待(攻击检测)
  • • tim:TIME_WAIT(连接回收)

Socket 统计(--socket)

[root@myhost ~]# dstat --socket
--------sockets---------
tot  tcp  udp  raw  frg 
167   10    2    0    0 
166   10    2    0    0 
166   10    2    0    0 
166   10    2    0    0 
166   10    2    0    0 
166   10    2    0    0 
166   10    2    0    0 
166   10    2    0    0 ^C

显示:

  • • tot:总 socket 数
  • • tcp:TCP 连接
  • • udp:UDP 套接字
  • • fra:片段数(IP 分片)

进程 Top 监控(资源消耗大户)

# CPU 占用最高的进程
[root@myhost ~]# dstat --top-cpu 1
-most-expensive-
  cpu process   
python3      1.0^C

# 内存占用最高的进程
[root@myhost ~]# dstat --top-mem 1
--most-expensive--
  memory process  
node           501
node           501
node           501^C


# I/O 读写最高的进程(需 root)
[root@myhost ~]# sudo dstat --top-io 1
-----most-expensive-----
      I/O process       
python3      44902 136.9
sshd         84884 14430
postgres     186.4     0
python3      45284 61.96
sshd         164.7 26328^C

# 延迟最高的进程(可运行但等待 CPU)
[root@myhost ~]# dstat --top-latency 1
--highest-total--
 latency process 
lsmd         0.00
kworker/0:0- 0.00
sshd             
kworker/1:0- 0.00
kworker/1:0- 0.00
node         0.00^C

MySQL 监控(需权限)

dstat --mysql5-cmds  # 每秒命令数(SELECT/INSERT/UPDATE)
dstat --mysql5-conn  # 连接数

第四章:组合监控与生产实战

4.1 全能监控面板(经典组合)

[root@myhost ~]# sudo dstat -cdngy --disk-util --tcp 1
----total-usage---- -dsk/total- -net/total- ---paging-- ---system-- vda- ------tcp-sockets-------
usr sys idl wai stl| read  writ| recv  send|  in   out | int   csw |util|lis  act  syn  tim  clo 
                   |           |           |           |           |    |  3    7    1    5    1 
  0   0  99   0   0|   0     0 |  60B 1153B|   0     0 |  93   140 |   0|  3    7    1    5    1 
  0   0 100   0   0|   0    40k|  60B  410B|   0     0 |  95   148 |0.10|  3    7    1    5    1 
  0   0  99   0   0|   0     0 |  60B  418B|   0     0 |  84   139 |   0|  3    7    1    4    1 
  0   0 100   0   0|   0     0 |  60B  410B|   0     0 |  87   147 |   0|  3    7    1    4    1 
  0   0 100   0   0|   0     0 |  60B  410B|   0     0 |  82   139 |   0|  3    7    1    4    1 

解释:

  • • -c:CPU(关注 wai)
  • • -d:磁盘吞吐
  • • -n:网络
  • • -g:换页统计(page in/out)
  • • -y:系统中断/上下文切换
  • • --disk-util:磁盘繁忙度
  • • --tcp:连接状态

4.2 数据库压测场景(OLTP 基准)

# 监控 MySQL 压测时的资源
sudo dstat -c --top-cpu -d --disk-util -n --mysql5-cmds --mysql5-io 1

观察要点

  1. 1. wai 上升 + disk-util 接近 100% → 磁盘 I/O 瓶颈
  2. 2. mysql 的 sel(select)突增 → 缓存失效或慢查询
  3. 3. recv 网络降为零但 send 高 → 应用层阻塞

4.3 网络带宽峰值检测

# 精确到网卡 + 总带宽统计 + TCP 状态
[root@myhost ~]# dstat -n -N eth0,total --tcp 1
--net/eth0---net/total- ------tcp-sockets-------
 recv  send: recv  send|lis  act  syn  tim  clo 
           :           |  3    9    1    5    1 
 120B  633B: 120B  633B|  3    9    1    5    1 
 120B  400B: 120B  400B|  3    8    1    5    1 
 585B 1789B: 585B 1789B|  3    8    1    5    2 
1926B 1484B:1926B 1484B|  3    8    1    5    2 ^C

企业案例:网络传输异常排查

# 监控 60 秒,导出 CSV 用于 Wireshark 时间对齐
[root@myhost ~]# dstat -n --tcp --output network_stats.csv 1 60
-net/total- ------tcp-sockets-------
 recv  send|lis  act  syn  tim  clo 
           |  3    9    1    4    1 
 120B  529B|  3    9    1    4    1 
  60B  242B|  3    9    1    4    1 
 367B  479B|  3    8    1    4    2 
  60B  242B|  3    8    1    4    2 
 626B  697B|  3    9    1    5    1 
  60B  242B|  3    9    1    5    1 
  60B  242B|  3    9    1    5    1 ^C

4.4 内存泄漏排查方案

[root@myhost ~]# dstat -m --top-mem -s --vm 1
------memory-usage----- --most-expensive-- ---total--- -----virtual-memory----
 used  free  buf   cach|  memory process  | used  free|majpf minpf alloc  free
1161M 7868M  611M 5818M|node           501|           |                       
1160M 7869M  611M 5818M|node           501|           |   0    85    96   647 
1159M 7870M  611M 5818M|node           501|           |   0    47    52   324 
1159M 7870M  611M 5818M|node           501|           |   0    14    15     0 
1159M 7870M  611M 5818M|node           501|           |   0     5     5     0 
1159M 7870M  611M 5818M|node           501|           |   0     9     9     0 ^C

关键指标组合

  • • used 持续增长但 cache 不释放
  • • swap 开始被使用
  • • --top-mem 显示特定进程 RSS 持续增长

第五章:输出处理与自动化

5.1 CSV 导出与可视化

# 后台静默记录(适合 7x24 监控)
nohup dstat -cdngy --output /var/log/dstat_$(date +%Y%m%d).csv 5 > /dev/null 2>&1 &

# 实时查看文件增长
tail -f /var/log/dstat_20240127.csv

Excel/Python 分析

import pandas as pd

df = pd.read_csv('dstat_output.csv', skiprows=5)  # 跳过头信息
df.plot(x='time', y=['usr''sys''wai'], figsize=(12,6))

5.2 告警脚本集成

#!/bin/bash
# io_alert.sh - I/O 等待告警

dstat -c 1 3 | tail -1 | awk '{if ($4 > 20) print "ALERT: CPU I/O Wait " $4 "%"}' | whileread msg; do
echo"$(date)$msg" >> /var/log/io_alert.log
# 发送企业微信/钉钉
    curl -s "https://oapi.dingtalk.com/robot/send?access_token=xxx" \
         -H "Content-Type: application/json" \
         -d "{\"msgtype\":\"text\",\"text\":{\"content\":\"$msg\"}}"
done

5.3 与 systemd 集成(持续监控)

# /etc/systemd/system/dstat-monitor.service
[Unit]
Description=System Resource Monitor
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/dstat -cdngy --output /var/lib/dstat/system.csv 5
Restart=always
StandardOutput=null

[Install]
WantedBy=multi-user.target

第六章:企业级最佳实践

6.1 性能基准建立

# 业务低峰期基线(保存 24 小时)
dstat -cdngy --disk-util --tcp --output baseline.csv 60 1440

# 业务高峰期对比
dstat -cdngy --disk-util --tcp --output peak.csv 10 360

6.2 容器环境注意事项

在 Docker/K8s 中运行时:

  • • 限制dstat 读取的是宿主机 /proc,容器内可能看到宿主机全部资源
  • • 解决:使用 cgroups-aware 版本或结合 docker stats

6.3 替代方案对比决策

需求
推荐工具
dstat 适用性
实时交互式
htop
 / atop
低(非交互)
历史数据追溯
sar
 (sysstat)
中(需配合脚本)
进程级 I/O 细节
pidstat -d
全资源关联分析
dstat
云原生监控
cAdvisor
 / node_exporter

6.4 参数速查表

场景
推荐命令
Linux 通用体检
dstat -cdngy 5
数据库性能分析
sudo dstat -c -d --disk-util --top-io --top-cpu 1
网络瓶颈排查
dstat -n --tcp --socket 1
内存溢出追踪
dstat -m --vm --top-mem 1
磁盘故障预判
dstat -d --disk-util --disk-tps 1

附录:常见问题排查

Q: dstat 显示的单位不统一(B/k/M 跳变)

解决:使用 --bits 强制位显示,或 -m(兆字节模式)固定单位

Q: --top-io 无输出

原因:需要 root 权限读取 /proc/*/io
解决sudo dstat --top-io

Q: 如何监控特定进程?

dstat 本身不支持 PID 过滤,需配合 pidstat 或 iotop -p <PID>

Q: 输出列对齐错乱

解决:使用 --nocolor 配合管道给 column -t,或减少插件数量


总结:dstat 是 Linux 系统诊断的瑞士军刀,特别适合快速定位性能瓶颈建立资源基线。在现代可观测性体系中,建议将 dstat 作为轻量级现场诊断工具使用,而将长期监控交给 Prometheus/Grafana 体系。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-07 12:13:41 HTTP/2.0 GET : https://f.mffb.com.cn/a/474091.html
  2. 运行时间 : 0.100604s [ 吞吐率:9.94req/s ] 内存消耗:4,632.36kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=6ee25e61266f2d8a0259c64213e10aea
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000498s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000757s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000301s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000261s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000522s ]
  6. SELECT * FROM `set` [ RunTime:0.000189s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000493s ]
  8. SELECT * FROM `article` WHERE `id` = 474091 LIMIT 1 [ RunTime:0.000722s ]
  9. UPDATE `article` SET `lasttime` = 1770437621 WHERE `id` = 474091 [ RunTime:0.014905s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000288s ]
  11. SELECT * FROM `article` WHERE `id` < 474091 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000471s ]
  12. SELECT * FROM `article` WHERE `id` > 474091 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000456s ]
  13. SELECT * FROM `article` WHERE `id` < 474091 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.005236s ]
  14. SELECT * FROM `article` WHERE `id` < 474091 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.008013s ]
  15. SELECT * FROM `article` WHERE `id` < 474091 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.000725s ]
0.102262s