Trigger a full Java garbage collection
Project description
A command to trigger a full java garbage collection via the jcmd tool. On systems which use the systemd init system, you can specify the service name as the program argument. The -r option can also be used on systemd based systems to allow have this utility attempt to automatically restart the service if the jcmd garbage collection fails.
Requirements
Tested on python 2.7 and python 3
No 3rd party libraries required
Installation
Using pip is the preferred method to install this tool, and will install the package from pypi. pip install java-gc
It can also be installed via pip from a local copy of the source repo, pip install . from the repo directory should do the trick. Running make install should also work as well.
Usage
Contributing
The usual github model for forking the repo and creating a pull request is the preferred way to contribute to this tool. Bug fixes, enhancements, doc updates, translations are always welcomed.
Building from source
A Makefile has been included in the repository to handle the steps of creating the package and uploading it to pypi. If you don’t have the make utility installed, the contents of the Makefile should be instructive (and simple) enough to execute manually.
The following targets are available in the Makefile:
package - the default target, calls the setup.py script to create the package to upload to pypi.
upload - depends on the package target, and uploads the generated package archive to pypi.
install - use pip to install the package locally
clean - clean up the artifacts left by the package step.
distclean - depends on the clean target, and additionally cleans up misc. files.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file java_gc-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: java_gc-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa645150c746e754bc537388e825fa80e5f0f6d8161a47176cfd16edcde9a977 |
|
MD5 | e5c16819f0344455bae0af6d047a2916 |
|
BLAKE2b-256 | cd0639bece573bcdc5036a2db7e84167bf711c0877cf50a0e0064f4594c54ed9 |