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

Standalone profiling agent #480

Merged
merged 1 commit into from
Jan 12, 2025
Merged

Standalone profiling agent #480

merged 1 commit into from
Jan 12, 2025

Conversation

lucko
Copy link
Owner

@lucko lucko commented Jan 11, 2025

Adds a standalone profiling agent for spark.

This allows spark to be used to profile any Java application, not just Minecraft servers, clients and proxies. Of course, spark will continue to cater mainly towards Minecraft, but for example this could be useful for profiling an otherwise unmodified Vanilla server or client.

spark is loaded as a normal-ish Java agent and runs in the background whilst the main jar starts as normal. Example below is using an unmodified vanilla Minecraft server.

Screenshot 2025-01-11 at 17 18 46

Instead of taking over the process stdin/stdout, spark runs a minimal SSH server, which the administrator can connect to in order to control spark and run commands.

Screenshot 2025-01-11 at 17 21 15

@lucko lucko marked this pull request as ready for review January 12, 2025 21:59
@lucko lucko merged commit 273f9bc into master Jan 12, 2025
3 checks passed
@lucko lucko deleted the feat/standalone branch January 12, 2025 21:59
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