public static void main(String[] args) {
		Socket connectionSocket;
		
		
		

		try (ServerSocket welcomeSocket = new ServerSocket(PORT_NUMBER);) {

			while (true) { // Server sollten immer laufen, vielleicht einen
							// quit-befehl einbauen?
				System.out
						.println("Chat Server: Waiting for connection on TCP Port "
								+ PORT_NUMBER);

				connectionSocket = welcomeSocket.accept();

				if(activeThreads < THREAD_LIMIT) {
					(new ChatServerWorkThread(activeThreads, connectionSocket)).start();
					activeThreads++;
				} else {
					System.err.println("Too many threads running to start a new thread!");
					connectionSocket.close(); //überflüssige ressource freigeben
					System.gc();
				} 

			}
		} catch (IOException e) {
			e.printStackTrace(System.err);
		} 

	}