初级会员
  • 第 6127 位会员
  • woaichimian
  • ofantasyx@163.com
  • 2016-09-04 09:23:26
  • Offline
  • 20 15

最近发布的文章

    暂无

最近分享的资源

    暂无

最近发布的项目

    暂无

最近的评论

  • #7 @jielaming https://github.com/xuewindy/dbatman 这个不过不太好看,是个mysql proxy,出问题的环境有几十个库再跑,不知道怎么飞到那里去的 ,有兴趣可以看看。。
  • #3 @muzixiaoxin 看到官方ISSUE,有类似的问题,目前升级版本解决》。。。
  • #4 @jielaming 单一的管道卡主,不会造成所有的协成无法调度 ,看到官方ISSUE里面有提到,目前升级版本没有复现问题。
  • #1 @blov 现在的感觉是在调度器部分死锁了 gdb进去调试 ``` (gdb) bt #0 runtime.futex () at /home/xuegeng/go/src/runtime/sys_linux_amd64.s:307 #1 0x000000000042c4e0 in runtime.futexsleep (addr=0x11d3020 <runtime.sched+192>, val=0, ns=100000) at /home/xuegeng/go/src/runtime/os1_linux.go:57 #2 0x000000000041103b in runtime.notetsleep_internal (n=0x11d3020 <runtime.sched+192>, ns=100000, ~r2=false) at /home/xuegeng/go/src/runtime/lock_futex.go:174 #3 0x000000000041112b in runtime.notetsleep (n=0x11d3020 <runtime.sched+192>, ns=100000, ~r2=false) at /home/xuegeng/go/src/runtime/lock_futex.go:194 #4 0x00000000004334ad in runtime.stopTheWorldWithSema () at /home/xuegeng/go/src/runtime/proc.go:963 #5 0x000000000045f419 in runtime.systemstack () at /home/xuegeng/go/src/runtime/asm_amd64.s:291 #6 0x0000000000433870 in runtime.startTheWorldWithSema () at /home/xuegeng/go/src/runtime/proc.go:986 #7 0x000000c82001a000 in ?? () #8 0x0000000000000000 in ?? () ``` 然后strace 时 显示这样 目前GO 版本是1.6 ,debian ``` [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) [pid 231942] futex(0x11d3020, FUTEX_WAIT, 0, {0, 100000}) = -1 ETIMEDOUT (Connection timed out) ``` 我试试gops ,感觉是不行的。。
  • 评论了博文 Go调试利器
    很奇怪的啊 加pprof不是可以直接搞吗 需要这么麻烦