/server
misc

Server-related commands

Syntax

/server [gc]
RequiredOptional

Parameters

gcOptionalstring

Force the server to do a GC

Subcommands

/server dump

Dump the server's state

Parameters:

json- Dump as JSON format
/server stats

Provide stats about the machine hosting the server

Parameters:

cpu- Provide CPU stats
gc- Provide GC stats
memory- Provide memory usage stats

Server Messages

stats.fullInfoUnavailable

Full information unavailable (unsupported host)

stats.cpu.fullUsageInfo

System CPU Load: {systemLoad, number}\n\

stats.cpu.usageInfo

Load Average: {loadAverage, number}\n\

stats.gc.usageInfo

Name: {name}\n\

stats.memory.fullUsageInfo

Total Physical Memory: {totalPhysicalMemory}\n\

stats.memory.usageInfo

Heap Memory Usage:\n{heapMemoryUsage}\n\

stats.memory.usage

\tInit: {init}\n\

gc.forcedgc

Forced GC! Freed: {bytes}

gc.forcedgc.increased

Forced GC! Didn't free; increased by {bytes}. Server is probably doing it's job!

dump.dumpingState

Dumping current server state!

dump.finished

Dump finished! File saved to: {filepath}

dump.error

Failed to write dump: {error}