Menu

#6 Memory leak when using X11 forwarding

open
nobody
None
5
2004-03-31
2004-03-31
No

Due to the bug described in Req. ID 926485 I was using
X11 forwarding in my server app, which occasionally
makes an ssh connection. This caused a serious memory
leak, due to the session object being put'ed into 2
static Hashtable's in ChannelX11 and they are never
removed. Even though I did perform this to clean up:

channel.disconnect();
session.disconnect();

According to JProbe this used about 500k per ssh
connection established and disconnected.

Discussion


Log in to post a comment.