Comments (7)
That could be possible, the connection is designed to try to keep the stream flowing as uninterrupted as possible. So if it looses connection somehow it tries to reconnect. If something lingers on on either end it would build up.
from gerrit-events.
Any way to prevent this and close unused connections?
from gerrit-events.
You would need to find it first :) then it would hopefully be pretty obvious how to fix the leak if you find where it is.
from gerrit-events.
Any recommendations what to monitor and where to put debug output?
I will be glad to do if I know how.
from gerrit-events.
The connect logic is the last line of the stack trace you provided. The main loop is here https://github.com/sonyxperiadev/gerrit-events/blob/master/src/main/java/com/sonymobile/tools/gerrit/gerritevents/GerritConnection.java#L314
from gerrit-events.
So something is going wrong and new connection is created without closing current one.
This is really killing as Gerrit servers has a limit on incoming connections from clients and on a next round it just denies new connection.
Only way to fix this is to restart Jira instance ...
from gerrit-events.
Which is strange because if a connection fails to be established there shouldn't be any connection available to close.
from gerrit-events.
Related Issues (20)
- Proposition of architecture. HOT 1
- No support for ED25519 keys (replace JSCH library) HOT 3
- Topic Changed Event does not propagate patch set HOT 5
- Missing AttentionSet changes events
- Deadlock when shutting down while establishing connection
- How to add topic event into gerrit events HOT 4
- Add the ability to read the output and if interactive shells are disabled on Gerrit HOT 1
- How to detect if gerrit connection is alive? HOT 2
- fast events create invalid JSON data HOT 1
- [Refactor] Use data binding library
- Missing Parameter for eventCreatedOn in Gerrit Event Json Message
- Found starting '{' but missing '}' at the end.
- Objects in package com.sonymobile.tools.gerrit.gerritevents.dto.events should have a Constructor with JSONObject as parameter HOT 6
- Gerrit Trigger SSH often gets stuck in CLOSED WAITING HOT 4
- Gerrit Events not causing a trigger HOT 1
- Test fails in some time.
- Handling both SSH & HTTP? HOT 2
- CommentAdded events considered equal even if they are different comments
- Using the default value of timeout=0 when creating SSH connections might lead to threads stuck forever HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gerrit-events.