Critical Issue - Application Hang with Many Threads in WAITING State

Dear Support Team,

I have two applications using Jmix versions 2.4.1 and 2.4.4. Currently, I am facing a critical issue that is affecting both systems.

After running for a period of time, both applications encounter a hang state — new sessions cannot load the login page, and the applications become unresponsive.

I have already checked the server’s CPU and memory usage, and there are no abnormal signs. However, when I analyzed the thread dump logs, I found that there are a large number of HTTP request threads (http-nio-8080-exec) in the WAITING state.

I have attached the detailed log files for your reference.
Threaddump.zip (1.9 MB)

Could you please advise me on how to identify the root cause of this issue and the possible solution to resolve it?

I would really appreciate your support. Thank you very much.

Best regards.

@krivopustov Sorry to bother you, but could you please suggest anything to help with this issue? Thank you so much!

Sorry, but I’m currently unable to dive deep into investigation of your thread dumps. I hope someone with good experience in this matter can help.

I can only suggest you to check the database first: make sure it’s not the culprit.
If you are using Postgres:

  • Enable the parameter log_min_duration_statement on the DB server for logging long queries. For example: ALTER DATABASE mydatabase SET log_min_duration_statement = 3000;
    Messages about queries that exceed the specified execution time will appear in the DBMS log.
  • Check the number of allowable connections from the DBMS side: SHOW max_connections;
    The default value is 100.

If it’s not the database, explain the whole configuration and environment of your system.

Regards,
Konstantin