viabtc / viabtc_exchange_server

A trading engine with high-speed performance and real-time notification
MIT License
2.68k stars 1.48k forks source link

内存问题 #163

Closed yunhui0501 closed 5 years ago

yunhui0501 commented 5 years ago

order.depth 一秒钟请求40个交易对的信息,发现accesshttp和matchengine.exe的内存一点一点的涨,请问大家有没有遇到过?

yunhui0501 commented 5 years ago

static void svr_on_recv_pkg(nw_ses ses, rpc_pkg pkg) 这个函数中的json_t *params 在异常的时候释放了,在正常的流程中,好像没有看到释放的动作?是不是有问题?

yunhui0501 commented 5 years ago

还有一个变量 sds params_str好像也没有释放

objectt commented 5 years ago

They are released/freed in the cleanup section.