SevJoker / SevJoker.github.io

0 stars 0 forks source link

'golang踩坑' | Hexo #4

Open SevJoker opened 5 years ago

SevJoker commented 5 years ago

https://sevjoker.github.io/2019/04/21/golang%E8%B8%A9%E5%9D%91/

golang 线上问题汇总定时器现象线上cpu不定时抖动问题发现大量go协程启用了NewTicker 而未主动关闭,而ticker对象会默认存储在一个最小堆上,todo问题总结time.After vs time.NewTicker 区分使用concurrent map iteration and map write现象线上服务直接崩溃问题发现并发读写map引起不是一个panic 无法被 reco