扭曲的 connectTCP 内存泄漏?
当我使用 connectTCP 时,我发现我的程序存在内存泄漏。
<class 'twisted.internet.tcp.Client'>
<<class 'twisted.internet.tcp.Client'> to ('10.25.76.117', 8086) at 2066c5b0>
<type 'dict'>
{'_tempDataBuffer': [], 'protocol': None, '_tempDataLen': 0, 'realAddress': ('10
<type 'tuple'>
('10.25.76.117', 8086)
<type 'list'>
[]
<type 'instancemethod'>
<bound method Client.doConnect of <<class 'twisted.internet.tcp.Client'> to ('10
<type 'instancemethod'>
<bound method Client.doConnect of <<class 'twisted.internet.tcp.Client'> to ('10
<type 'tuple'>
('10.25.76.117', 8086)
gc: collectable <Client 2066c770>
gc: collectable <dict 2066e4b0>
gc: collectable <tuple 206fa1e8>
gc: collectable <list 206478c8>
gc: collectable <instancemethod 206699b8>
gc: collectable <instancemethod 2046a6e8>
gc: collectable <tuple 206fa918>
I found my program have a memory leak when I used connectTCP.
<class 'twisted.internet.tcp.Client'>
<<class 'twisted.internet.tcp.Client'> to ('10.25.76.117', 8086) at 2066c5b0>
<type 'dict'>
{'_tempDataBuffer': [], 'protocol': None, '_tempDataLen': 0, 'realAddress': ('10
<type 'tuple'>
('10.25.76.117', 8086)
<type 'list'>
[]
<type 'instancemethod'>
<bound method Client.doConnect of <<class 'twisted.internet.tcp.Client'> to ('10
<type 'instancemethod'>
<bound method Client.doConnect of <<class 'twisted.internet.tcp.Client'> to ('10
<type 'tuple'>
('10.25.76.117', 8086)
gc: collectable <Client 2066c770>
gc: collectable <dict 2066e4b0>
gc: collectable <tuple 206fa1e8>
gc: collectable <list 206478c8>
gc: collectable <instancemethod 206699b8>
gc: collectable <instancemethod 2046a6e8>
gc: collectable <tuple 206fa918>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个http://www.apparatusproject.org/blog/page/3/
Try this http://www.apparatusproject.org/blog/page/3/