Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Idle confluence opening hundreds of sockets

Ken Poulton
Contributor
March 26, 2025

I have set up a staging server for Confluence Data Center.  It seems to work properly with a copy of the content from my production server.  But the staging server opens 20 sockets a minute and leaves them open.  This goes on until there are 800-1300 open sockets between the Catalina and Synchrony processes, and then the open socket count drops to near zero.  The cycle repeats every 40-65 minutes, with some variation.

The production server is on Confluence 7.19 on a RHEL8.10 VM and doesn't have these huge numbers of open sockets. The staging servers exhibit this problem on 8.5.15, 8.5.20 and 9.2.2, running on RHEL8.10 VMs.  The staging servers have only one logged-in (idle) user.

Safe Mode (apps off) does not change this.

Any ideas on what is causing this?

 

1 answer

0 votes
Brant Schroeder
Community Champion
March 29, 2025

@Ken Poulton is Confluence stock or have you installed some apps?  Could just be Java being Java and when you see it drop to near Zero the garbage collection just ran.  

Ken Poulton
Contributor
March 30, 2025

I have 8 apps installed, but I get the same behavior with all the apps disabled in Safe Mode.

Brant Schroeder
Community Champion
March 30, 2025

@Ken Poulton if you run garbage collection do you get the same drop to almost zero?

Ken Poulton
Contributor
March 31, 2025

Yes, a manual garbage collect drives the socket count back to near zero.

But according to logs/gc*log, the garbage collects are only occurring a few times day, not enough to account for the sockets getting reset every hour or so.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.2.2
TAGS
AUG Leaders

Atlassian Community Events