可以试试:
https://github.com/openresty/openresty-systemtap-toolkit#ngx-shm
不过需要依赖 systemtap
对应源码是
https://github.com/openresty/openresty-systemtap-toolkit/blob/master/ngx-shm#L68
如果不能够安装 systemtap,你可以试着把它改成 gdb 脚本。
在 2017年3月30日星期四 UTC+8下午4:57:56,lidu...@gmail.com写道:
多谢进来看此问题,我想问下:
定义了共享内存: lua_shared_dict monitor_status 100m 后 , 有方式可以随时查看实际使用量吗?