Hi
I am running my webapp on Tomcat6 on Java6 on Ubuntu8.04. The main servlet of this application opens a ServerSocket with the following simple code:
ServerSocket serverSocket = new ServerSocket(6767);
Socket xmlSocket = serverSocket.accept();
Of course, this works in a separate thread and with the necessary try-catch blocks.
When I start Tomcat, it immediately switches to 100% processor utilization and remains there until the client connects to port 6767. While the client is connected, the load decreases to 0%. As soon as the client disconnects, the download returns to 100%.
Can someone tell me what that means?
Thank!
DECISION:
. ServerSocket, while , , .
JDK "jstack", , .
!:)