Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cant access to my Webapp after a while/couple logins  RSS feed

Batu Kaan
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Tim Holloway
Posts: 18662
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Batu!

If you attempted to create your own login system instead of using the J2EE standard one, I'm afraid that none of that information helps us. But writing your own login logic is a virtually certain way to get hacked.

The stuff you've posted is more about Glassfish than it is about JSF, so I'm bouncing your question over to the Glassfish forum, where someone might be able to provide more help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!