Hi,
As consequence of problems I have encountered on deploying my Vaadin Application with Push enabled on Glassfish 3.1.2.2 running on Solaris SPARC with JDK 1.6.0_45 (64b) , problem I have stated on
https://vaadin.com/forum/-/message_boards?_19_topLink=recent-posts&_19_groupThreadsUserId=1402172#!/thread/7866320
I tried to deploy my app on Glassfish 4.1 running on Solaris SPARC with JDK 1.7.0_60 having Vaadin v.7.2.7.
Now the situatation is this.
Push is working but after a short time of application excecution I get java.lang.OutOfMemoryError: unable to create new native thread on my Glassfish log and then Glassfish stops working.
After investigating the problem using Visual VM I noticed that when Push is used, Glassfish 4.1 on Solaris creates too many threads of type Atmosphere-Scheduler-xxx and Atmosphere-Shared-AsyncOp-xxx. These threads are created and then fall on a WAITING status kind of DEAD lock and never die. And when the server reach the max number of threads (500 threads) then Glassfish stops working. The only thing I can do is to kill the java process of Glassfish.
I undestand that this seems an Atmosphere problem but as I do not use directly any of the Atmosphere Framework packaged but only through Vaadin Push, I thought that this is the right place to write for.
It is interesting to mention that testing the same application on Glassfish 4.1 on a Windows 8, JDK 1.7.0_67, everything seems to work fine.
Going through Visual VM I can see that I have only 4 threads of type Atmosphere-Scheduler-xxx and 200 threads of type Atmosphere-Shared-AsyncOp-xxx no matter how long I play with the application and Push.
I’ve also posted the problem on https://java.net/jira/browse/GRIZZLY-1694
Thanks