Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

Why main thread in a java console app hangs without apparent cause?

The console java app consists on a server which attends incoming requests. When it receives a request it passes it to an Executor (Thread Manager). Suddenly the server hangs, I can see it because it receives no more incoming requests and the console window freezes. The strange thing is when I press ctrl-c on the command line it unblocks and processes the accumulated requests

Comments
Post Details
Added on Nov 25 2022
1 comment
168 views