JMX Metrics for Regions #398
Labels
No labels
documentation
good first issue
help wanted
resolution: duplicate
resolution: invalid
resolution: won't fix
status: needs triage
type: bug
type: feature
type: performance
type: question
version: 1.19.4
version: 1.20
version: 1.20.1
version: 1.20.2
version: 1.20.4
version: 1.20.6
version: 1.21.11
version: 1.21.4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Minecraft/Folia#398
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem?
Paper allows for enabling JMX monitoring using the enable-jmx-monitoring flag. This is very helpful for setting up dashboards to externally view the performance of the server. However, in Folia, this has been disabled. These MBeans are still exposed, though, resulting in consistently empty or 0 values.
Describe the solution you'd like.
Since the existing metrics
averageTickTimeandtickTimesaren't helpful as global fields anymore, it would be neat to have data available for region information by editingnet\minecraft\util\monitoring\jmx\MinecraftServerStatistics.javato includeTabularDatametrics, with a row for each region and columns for the region identifier, average tick rate, and also some other helpful things infolia-server\src\minecraft\java\io\papermc\paper\threadedregions\TickRegions$RegionStatslikeentityCount,playerCount, andchunkCount.Describe alternatives you've considered.
Some plugins try to expose these things, but Folia's API currently doesn't support a lot of these types of metrics and since there's already some MBeans being exposed, I don't think it would be too messy to change what data the existing MBeans point to.
Other
No response