Add JVM arguments required by Log4j 2.x from Jira 9.5 #460
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.
Pull Request (PR) description
Log4J has been updated to version 2.x on Jira 9.5.x and new JVM arguments have been included by default in the setenv.sh and setenv.bat files coming from fresh Jira installations.
Missing these parameters breaks the runtime log level modification using the Logging and Profiling page.
This Pull Request (PR) fixes the following issues
Fixes #459
Testing
Tested on Jira 9.12.24 which produced the following changes and fixed the issue mentioned in the KB article:
For sake of readability, the added parameters (as provided by Atlassian) are:
And the rest of the line stays unchanged.
Notes
I believe the 'servicedesk' product is no longer relevant, given that it's now called JSM instead and at least in our case I believe it is installed as an app/extension on top of a normal Jira installation with the 'jira' product.
Please correct me if I'm mistaken here.