Added created threads to thread groups to assist with profiling

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3028 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-06-05 14:35:10 +00:00
parent 7040d1befe
commit 576b4a107a
4 changed files with 17 additions and 5 deletions

View File

@@ -46,6 +46,10 @@ public class FTPNetworkServer extends NetworkFileServer implements Runnable
// Constants
//
// Session Thread group
private static final ThreadGroup THREAD_GROUP_SESSION = new ThreadGroup("FTP_SESSION_GROUP");
// Server version
private static final String ServerVersion = "3.5.0";
@@ -446,7 +450,7 @@ public class FTPNetworkServer extends NetworkFileServer implements Runnable
// Start the new session in a seperate thread
Thread srvThread = new Thread(srvSess);
Thread srvThread = new Thread(THREAD_GROUP_SESSION, srvSess);
srvThread.setDaemon(true);
srvThread.setName("Sess_FTP" + srvSess.getSessionId() + "_"
+ sessSock.getInetAddress().getHostAddress());