java - JBoss + Netty + Connection reset by peer = Thread leak -
java - JBoss + Netty + Connection reset by peer = Thread leak -
i have application uses netty handle communication external devices. application runs on jboss eap 6.1. seems when device tears downwards connection running thread count increases, not decrease after time_wait connection removed. looks this:
1 hear threads: 207 1 hear 1 time_wait threads: 211 1 hear 1 time_wait threads: 211 1 hear 1 time_wait threads: 210 1 hear 1 time_wait threads: 209 1 hear 1 time_wait threads: 209 1 hear 1 time_wait threads: 209 1 hear threads: 209 1 hear threads: 209
as can see thread count before connection 207, when connection established , broken device thread count 211 - downwards 209, never goes downwards 207. every next occurence of above scenario causes thread count increment outofmemory thrown. i've added logging run() method of each custom thread class implemented can match "thread started" "thread ended" , seems custom threads end up. can reason of problem?
i think not calling shutdowngracefully
on eventexecutorgroup
. should solve problem.
java jboss netty
Comments
Post a Comment