channel icon indicating copy to clipboard operation
channel copied to clipboard

Interprocess communication component for workerman

Results 2 channel issues
Sort by recently updated
recently updated
newest added

Hi walkor, We are using channel into gateway worker project using multiple gateway and business worker. We are using channel for sharing some data into multiple business worker. So my...

近期项目中的 Channel Server 有严重的内存泄露问题,百思不得解,Channel Server 只负责消息的传递,本身不运行什么业务,怎么会内存泄露,而且之前运行一两个月也没什么异常。 后经过好多天的排查,发现是通过 Channel Server 传递闭包导致的内存泄露,闭包的序列化是使用 https://github.com/opis/closure 实现的,而 `opis/closure` 存在某些情况下的内存泄露。 而 Channel Server 也仅是传递,为什么会内存泄露呢?这就是 Channel Server 设计上的一个较严重的问题,Channel Server 会反序列化接收到的信息,从中拿到 channel 或者 queue 的名称等一些关联信息,然后再序列化后发送给其它进程,重点就是这里,因为整个信息是在一个大的数组中传递的,反序列化再序列化并不是只涉及到 Channel 组件自己的信息,也会包含业务传递的信息,但实际上 Channel...