Skip to content

Commit

Permalink
Refactor: avoid futile attempt to remove String from memory (elastic#…
Browse files Browse the repository at this point in the history
…13403)

which causes a redundant Full GC while Logstash is starting
  • Loading branch information
kares authored Nov 15, 2021
1 parent 64800cd commit c11514d
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,5 @@ private void addSecretStoreAccess(SecureConfig secureConfig) {
secureConfig.add(KEYSTORE_ACCESS_KEY, keystore_pass.toCharArray());
keystore_pass = null;
}

//futile attempt to remove the original pass from memory
System.gc();
}
}

0 comments on commit c11514d

Please sign in to comment.