Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-28 Thread via GitHub


chenBright commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1914024400

   heap看着正常。涨的内存会不会缓存在tcmalloc freelist了?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org



Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-28 Thread via GitHub


ike47 commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1913902391

   [heaptxt.zip](https://github.com/apache/brpc/files/14079310/heaptxt.zip)
   @chenBright 我在内置服务里导出成txt了


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org



Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-28 Thread via GitHub


chenBright commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1913877240

   @ike47  
按照[文档](https://github.com/apache/brpc/blob/master/docs/cn/heap_profiler.md)指引,直接在内置服务看吧。profile不仅需要profile数据,还需要可行性文件。
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org



Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-26 Thread via GitHub


ike47 commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1911683282

   > 可以用heap profiler确认一下哪里有内存泄漏
   [brpcheap.zip](https://github.com/apache/brpc/files/14062197/brpcheap.zip)
   已经导出,帮忙看一下
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org



Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-25 Thread via GitHub


ike47 commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1911582255

   > > > 
这看着和brpc没关系吧,更像是业务代码问题,你用的std的线程,它的生命周期应该是你来维护而不是期望brpc来维护,先看看自己的业务代码有没有什么问题吧,是不是在里面分配了内存
   > > 
   > > 
   > > 线程代码也已经贴截图了,线程里面是作为客户端发了一次brpc请求,没有申请内存;
   > 
   > 线程是你的客户端代码吧,内存增长的是server端么?
   
   线程代码是服务端代码,模拟服务端作为客户端发送brpc请求给自己。 
   是的,服务端内存增长


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org



Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-25 Thread via GitHub


Huixxi commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1911545439

   > > 
这看着和brpc没关系吧,更像是业务代码问题,你用的std的线程,它的生命周期应该是你来维护而不是期望brpc来维护,先看看自己的业务代码有没有什么问题吧,是不是在里面分配了内存
   > 
   > 线程代码也已经贴截图了,线程里面是作为客户端发了一次brpc请求,没有申请内存;
   
   线程是你的客户端代码吧,内存增长的是server端么?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org



Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-25 Thread via GitHub


ike47 commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1911536650

   > 可以用heap profiler确认一下哪里有内存泄漏
   
   好,我试一下,目前观察到随着brpc通讯次数增加有个大约20M左右内存增长,后面就不会增加了。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org



Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-25 Thread via GitHub


ike47 commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1911533588

   > 
这看着和brpc没关系吧,更像是业务代码问题,你用的std的线程,它的生命周期应该是你来维护而不是期望brpc来维护,先看看自己的业务代码有没有什么问题吧,是不是在里面分配了内存
   
   线程代码也已经贴截图了,线程里面是作为客户端发了一次brpc请求,没有申请内存;


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org



Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-21 Thread via GitHub


chenBright commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1902988655

   可以用heap profiler确认一下哪里有内存泄漏


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org



Re: [I] brpc http_c++示例代码修改 server端接收后创建clinet发送数据发现可能存在内存泄露 (brpc)

2024-01-21 Thread via GitHub


Huixxi commented on issue #2502:
URL: https://github.com/apache/brpc/issues/2502#issuecomment-1902926229

   
这看着和brpc没关系吧,更像是业务代码问题,你用的std的线程,它的生命周期应该是你来维护而不是期望brpc来维护,先看看自己的业务代码有没有什么问题吧,是不是在里面分配了内存


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org