Reduce the amount of logging from org.apache.http bundles. #2420
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In order to reproduce, let's take the vscode-java client and be sure to set
java.jdt.ls.vmargs
to include the system property-Djdt.ls.debug=true
. Also make sure to install https://github.com/testforstephen/vscode-pde which should contain the bundle that will initiate this behaviour. Simply open eclipse.jdt.ls in the editor.When monitoring the contents of
$HOME/.config/Code/User/workspaceStorage/${jdt-ls-workspace-id}/redhat.java/jdt_ws/.metadata/
you should be able to see as part of the import something like :If you watch the timestamps of those backup files, you'll see that they're constantly updated, because they're being overwritten every second (10 log files is the maximum set after which data rolls back to the start). The amount of logging is excessive enough to slow down the import process. Using iostat, I estimated at least 500MB of data, were written out similar to :
This PR should fix this. Although the bundle originates from vscode-pde, it's easier to include the code here than it is to suggest that vscode-pde add their own logback configuration bundle.
Signed-off-by: Roland Grunberg [email protected]