Hello Coderanch Community,
I'm new here and I have a problem with my
JSF application. After a couple logins from different users (which also works), I can’t access to the application.
Below is a detailed description of the problem:
I use the
Wildfly Server -version 8.20 Final. JSF 2.2 and Primefaces 5.2.10
After some time (about 6 hours) and a couple logins, the application is no longer accessible. It looks like the application attempts to load, the application can‘t be accessed. The loading process continues in an endless loop (Screenshot 1).
So, I started troubleshooting and changed a few settings, such as Pooling etc.
The following is an excerpt from my standalone full.xml - block DataSource
Unfortunately, the settings were not able to fix the bug behavior.
The second point I’ve tried is, I looked at the TCP connections in the terminal, and that's what I noticed:
As I said after some time (5-6 hours), the TCP connections are filled and will not be closed. They either have the status "established" or the status "Close_Wait". And whenever a certain number of TCP connections is open, I guess is around 15-30, then hangs the application and is no longer accessible (endless loading in browser) and only a reboot of wildfly causes that the Application works again. But 6 hours later, I have the same again.
In addition I have taken a screenshot from the TCP connections (Screenshot2.png).
After restarting the application I see only 3 to 4 TCP connections which accumulate again after 6 hours and the server can’t accessed again. (Screenshot 3)
Did you have any idea what I'm doing wrong, where could I look for solution to the problem?
Many Thanks in advance for any help.