I have just migrated an application from JBoss 7.1.1 to Wildfly 8.1.0 Final. But now from time to time (like every 2 days) Wildfly freezes, and I have to restart it. My application is basically EJB/JPA/JAX-RS w/ Resteasy.
By freezing I mean that every HTTP access to Wildfly keeps waiting forever. I suspect that only Undertow is frozen, because I can see in my application log that tasks that were scheduled are executing, although none of these are network related.
I also noticed in my log the following error: "Response is committed, can't handle exception" caused by IOException "Channel was closed mid chunk, if you have attempted to write chunked data you cannot shutdown the channel until after it has all been written".
Server is an Ubuntu VM running on Azure. "Physical memory" and "hard disk" space are fine. Heap, non-heap and thread usages are fine according to JVM Runtime in Wildfly Management.
Only thing I noticed is that I have many connections established forever when I "netstat -aln". I have fewer than 100 clients per day but right now I count 2K established connections on my port 8080.
What can I do to better diagnose and resolve this problem?
Best Regards, Renan
UPDATE: it was indeed a bug on 8.1.0 fixed for 8.2.0, see my answer with link to issue opened at JbossDeveloper.