Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added some more cpu logging #7727

Merged
merged 6 commits into from
Sep 11, 2024
Merged

Conversation

NBKelly
Copy link
Collaborator

@NBKelly NBKelly commented Sep 11, 2024

  • Count of active players and spectators
  • Frequency map of all active cards across all games
  • CPU utilization via sigmund CPU utilization via java.lang.management.ManagementFactory/getOperatingSystemMXBean
  • Heap utilization via java.lang.management.ManagementFactory/getMemoryMXBean
  • Frequency map of all recently used commands

see:
info_000

Once we've run this one the server for a day or two, I'll write some code to parse our server logs and try and identify if anything in particular (cards, spectators, etc) happens to correspond to the spikes.

Sigmund relies on some native code (libsigar-...so), and I don't know what that's going to look like on our production server, so we may have to spend a few minutes figuring out which exact libs go where, or alternatively how to actually just cram those into the jar.

@NBKelly NBKelly marked this pull request as ready for review September 11, 2024 03:38
@NBKelly NBKelly merged commit 9a4aebe into mtgred:master Sep 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant