• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cant access to my Webapp after a while/couple logins

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic