Glassfish 4 hangs with many tcp CLOSE_WAIT
My configuration is
Oracle JDK 1.7.0_51
Ubuntu 12.04 or Windows 7
I discovered a problem with my Glassfish installation. There are many "waiting" tcp connections with status CLOSE_WAIT. Server doesn't drop connections and reaches maximum for open files.
Http traffic load is low.
We have implementation of Server Sent Events (Jersey 2.0). Could it be a source of problem?
# netstat -ton | grep CLOSE_WAIT | wc -l
I have two installations on Windows7 and on Ubuntu behind Apache. Seems like both have the same issue. But on server behind Apache number of hanging connections grows faster.
Any help welcome!
Please ask for any additional details.