feat(maintenance): thread dump and info REST endpoints (#35205)#35463
Merged
hassandotcms merged 7 commits intoMay 19, 2026
Conversation
Adds GET /api/v1/maintenance/_threads and GET /api/v1/maintenance/_threads/info, returning structured JSON via Immutables-backed view classes. Replaces the legacy DWR ThreadMonitorTool which served HTML <pre> blobs and is unusable for the Angular Maintenance portlet rewrite. Both responses include serverId and serverName so the UI can identify which cluster node served the request.
Contributor
…dpoints Brings upstream main into the thread-diagnostics branch. Conflicts in MaintenanceResource.java and openapi.yaml resolved by keeping both feature sets: the new Thread Diagnostics endpoints from this branch and the Fix/Clean Assets endpoints from main. openapi.yaml regenerated.
dario-daza
approved these changes
May 8, 2026
- Remove duplicate `java.util.ArrayList` import. - Stop dropping thread descriptors when a thread terminates between `dumpAllThreads()` and the live-thread map snapshot. ThreadInfo still carries name, state and full stack, so emit the descriptor with conservative defaults (daemon=false, priority=NORM_PRIORITY) and the ThreadInfo's captured state instead of silently losing it. - Force-include deadlocked threads regardless of `hideSystem`, so an operator triaging an incident never sees `deadlockedCount: 3` with zero deadlocked threads in the returned list.
…-implement-thread-dump-and-info-endpoints # Conflicts: # dotCMS/src/main/java/com/dotcms/rest/api/v1/maintenance/MaintenanceResource.java
…ttps://github.com/dotCMS/core into 35205-task-implement-thread-dump-and-info-endpoints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds GET /api/v1/maintenance/_threads and GET /api/v1/maintenance/_threads/info, returning structured JSON via Immutables-backed view classes. Replaces the legacy DWR ThreadMonitorTool which served HTML blobs and is unusable for the Angular Maintenance portlet rewrite. Both responses include serverId and serverName so the UI can identify which cluster node served the request.
This PR fixes: #35205
This PR fixes: #35205