Details
-
Bug
-
Resolution: Fixed
-
Low
-
7.2.6, 7.2.7, 7.3.1
-
7.02
-
54
-
Severity 3 - Minor
-
84
-
Description
Summary
The ThreadLimitHealthCheck class is incorrectly failing environments where the number of user processes configured is =4096. This is incorrect and not consistent with the recommendations to set this to >= 4096.
There may be scenarios where admins will configure this to 4096 and the test will fail.
Steps to Reproduce
- Set up a JIRA instance with user processes set to 4096
- Run the JIRA health check
Expected Results
- The check passes
Actual Results
The below warning is thrown in the healthcheck:
The maximum number of processes for the user account running JIRA is currently 4096, which can cause performance issues. We recommend increasing this to at least 4,096.
Notes
The SupportHealthStatus check() call is incorrectly doing a conditional check for
if (threadLimit.get().greaterThan(MIN_THREAD_LIMIT))
when it should be doing it as >=.
public SupportHealthStatus check() { final Optional<FileSystemInfo.ThreadLimit> threadLimit = fileSystemInfo.getThreadLimit(); if (threadLimit.isPresent()) { if (threadLimit.get().greaterThan(MIN_THREAD_LIMIT)) { return healthStatusFactory.healthy(i18nResolver.getText("healthcheck.threadlimit.valid", application.name(), MIN_THREAD_LIMIT)); } else { return healthStatusFactory.failed(i18nResolver.getText("healthcheck.threadlimit.fail", application.name(), threadLimit.get().toString(), MIN_THREAD_LIMIT), WARNING); } } return healthStatusFactory.healthy(i18nResolver.getText("healthcheck.threadlimit.undefined", application.name(), MIN_THREAD_LIMIT)); }
Fix
Upgrade the JIRA Instance Health add-on to the latest version using Manage add-ons.
Attachments
Issue Links
- is duplicated by
-
JRASERVER-64318 Thread limit health check fails when configured as documented to 4096 threads
- Closed
- was cloned as
-
CONFSERVER-51682 Confluence ThreadLimit healthcheck will incorrectly fail if the maximum running user processes is equal to 4096
- Closed
- links to