Adds a command to take a heap dump to analyze memory leak issues

HeapDumper Pluging

This plugin adds the /heapdump command to your server, it requires the permission heapdump which is given to OP players by default.

The command takes a memory heap dump and saves it as a file in the server’s directory. The file name uses the current system time by default, but you can customize it by command argument.

Be aware that the heap dump files are usually very big since it will dump the entire application memory in use in a single file, this means that if your server is using 4GB of RAM when the command is executed, the file will also take 4GB in the disk space.

Also be aware that heap dump files may contains sensitive information, like database connection information and unencrypted passwords, so never leave the dumps there.

Commands and Permissions

/heapdumpheapdumper.heapdump/heapdump <optional-filename>Take a heap dump to analyze memory leak issues and save in the server’s folder
/cleardumpheapdumper.cleardump.single/cleardump <filename>Deletes a specific heap dump file
/clearalldumpsheapdumper.cleardump.all/clearalldumpsDeletes all heap dump files at once

Glob Permissions

  • heapdumper.cleardump.* - Allows the user to run the command that clears the dumps
    • heapdumper.cleardump.single
    • heapdumper.cleardump.all
  • heapdumper.* - Allows the user to run all the heapdumper commands
    • heapdumper.heapdump
    • heapdumper.cleardump.*

Category: Developer Tools

Published on Apr 11, 2022




total downloads

Licensed under GNU General Public License (GPL)

Promoted Versions