Hi,
I have some code that maintains some Session objects open to some servers over
a long period of time and continually opens exec Channels to those session with
agent forwarding enabled. Watching the process over time I'm seeing the
ChannelAgentForwarding objects accumulate and apparently the Packets as well
associated with them. I assume that if the session was disconnected that would
force these to get cleaned up. Is there any other way to get rid of them? The
original channel that triggered the creation of the agentforwarding channel is
long since disconnected.
Some sample heap histogram values (I've only got 33 channels open but 8489
ChannelAgentForwarding objects are around):
class
com.jcraft.jsch.ChannelAgentForwarding<http://benleis.desktop.amazon.com:7000/class/0xf3b09300>
8489 1001702
class
com.jcraft.jsch.Buffer<http://benleis.desktop.amazon.com:7000/class/0xf3ae22d8>
25524 408384
class
com.jcraft.jsch.Packet<http://benleis.desktop.amazon.com:7000/class/0xf3ae3018>
8544 68352
class
com.jcraft.jsch.Session<http://benleis.desktop.amazon.com:7000/class/0xf3adddf0>
25 5450
class
com.jcraft.jsch.ChannelExec<http://benleis.desktop.amazon.com:7000/class/0xf3a57158>
33 3432
Thanks
Ben
__o __o __o __o
_`\<,_ _`\<,_ _`\<,_ _`\<,_
(*)/ (*) (*)/ (*) (*)/ (*) (*)/ (*)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users