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.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: java_gc-0.2.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 | 72ccb09b39412453ac7aa45ade4ffdb064010c38b1238ee38418c9e6f71687dc |
|
MD5 | 16978a07a08b2efd3a7b74cc8f33ba94 |
|
BLAKE2b-256 | 0b61c3f657515881eedf528178247c29a4a39f7b8d3e786370a990df79858bac |