Replies: 1 comment 5 replies
-
There is no real concept of pausing a running process from inside the process, best you could do is maybe reduce how much you spin wait, but, stuff still generally expects to run even when the server is empty. This is generally not worth the sunken cost of trying to implement this properly, IMHO, you're still running an entire JVM with all of the other bits of software like plugins in there which expect to be able to do things. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem?
It would be better if you add this feature so we can manage our resources efficiently.
Describe the solution you'd like.
Add an option to automatically pause the server when no players are connected for over 60 seconds. This functionality would save resources, reduce CPU usage, and potentially decrease hosting costs for smaller servers or development environments.
Describe alternatives you've considered.
Using External Scripts or Tools
I’ve tried using external scripts to monitor player activity and issue a command to pause or shut down the server when it’s empty. However, this approach adds complexity and can lead to resource overhead. Since it operates outside PaperMC, there’s also a slight delay in detecting when a player joins again, which impacts the experience.
Scheduled Restarts and Downtime
I considered setting up scheduled server restarts or downtimes, especially during late hours when player traffic is low. While this helps save resources, it’s not ideal because it doesn’t adapt to real-time player activity, meaning players may find the server offline even if they try to join outside peak hours.
Custom Plugin Development
I looked into creating a custom plugin to handle pausing when the server is empty. However, developing and maintaining a custom plugin requires significant time and ongoing updates to remain compatible with PaperMC changes. I believe a built-in feature would be more efficient and accessible for the community.
Other
No response
Beta Was this translation helpful? Give feedback.
All reactions