Why does my lake fish server stop?

I have a GF3 server. Sometimes he just stops responding. At least all web applications. CPU / memory usage is low, but I can't get the web application on port 8080 to work. Nothing in the logs (5 minutes space in server.log until I restart manually). Everything is fine after rebooting ... for a while.

Took a jstack output before restarting. I did not find anything interesting (no code from my applications works, no locks ...).

Version = GlassFish v3 (build 74.2), JRE version 1.6.0_19

UPDATE: it returns on its own after a while (still unacceptable to my clients :-()

UPDATE: I switched to a new installation of GF3.1 (was 3.0.1). At the moment (after a couple of hours) in one of the applications deployed there, there are 177 sessions. The problem is that I only have about 12 users (where are all these sessions from?). The same applications deployed with a different name have 6 sessions. Can I just run thread pools or something like that?

+4
source share
3 answers

I suggest connecting Visual VM using the GF plugin.

http://visualvm.java.net/index.html

Then, when your server "stops", take a look and see what happens.

+2
source

If there is nothing interesting in the stack trace, then the problem is likely to be between the client and GlassFish. In any case, I also suggest switching to the latest JDK (_24) and GlassFish (3.1).

0
source

I used the connection pool with MySQL, and in some places I forgot to close the database connection. After fixing these errors, everything was in order.

0
source

Source: https://habr.com/ru/post/1346745/


All Articles