Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce memory leak #30
Browse files Browse the repository at this point in the history
Create a new connection only if needed. Creating too many connection
is causing too many threads to be created. This reduces the memory
leak significantly but is not the sole reason for the memory leak.
isaacdd committed Jul 1, 2014
1 parent 9e89798 commit 201d340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/datadog/jmxfetch/App.java
Original file line number Diff line number Diff line change
@@ -128,7 +128,7 @@ private static void _doLoop(AppConfig config) {
} else {
LOGGER.warn("No instance could be initiated. Retrying initialization.");
config.status.flush();
init(config, true);
init(config, false);
}
long length = System.currentTimeMillis() - start;
LOGGER.debug("Iteration ran in " + length + " ms");

0 comments on commit 201d340

Please sign in to comment.