Hi Atsuhiko,

it's not so easy to get a thread dump. the sftp-client runs in a
big server-appplication. To get a thread dump means to stop the server.
that's difficult because there are always some users on it.

so maybe you can get an advice or explain how to handle that stuff usually and
I will see if I can implement a simple app, to adjust the problem.

Thanks,
Markus




-----Ursprüngliche Nachricht-----
Von: COHEN, STEVEN M (ATTSI) [mailto:sc1...@att.com] 
Gesendet: Dienstag, 9. Juni 2009 00:11
An: Atsuhiko Yamanaka; Grimm, Markus
Cc: jsch-users@lists.sourceforge.net
Betreff: RE: [JSch-users] [sftp] How to close a connection/session correctly?

I too, would like an answer to Mr Grimm's question:

What's the RIGHT way to close the session properly?  Must you disconnect the
connection and then the session, can you simply close the session, or what?
This question can surely be answered by the developers without requiring the
users to do diagnostic thread dumps. 

-----Original Message-----
From: Atsuhiko Yamanaka [mailto:y...@jcraft.com] 
Sent: Monday, June 08, 2009 2:35 AM
To: gr...@juris.de
Cc: jsch-users@lists.sourceforge.net
Subject: Re: [JSch-users] [sftp] How to close a connection/session
correctly?

Hi,

   +-From: "Grimm, Markus" <gr...@juris.de> --
   |_Date: Mon, 8 Jun 2009 08:03:54 +0200 ____
   |
   |Maybe I do a mistake to close the session properly.
   |What's the right way to avoid such waiting threads ?

Can you get the thread dump to know which threads are running?
For example, on unices,
  kill -3 pid


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/

----------------------------------------------------------------------------
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to