Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Javacore Analyser

GitHub License PyPI - Python Version GitHub contributors

Build Status GitHub last commit GitHub Release Date GitHub commit activity GitHub Issues or Pull Requests GitHub Issues or Pull Requests PyPI - Downloads

Scope

The tool analyzes Javacores and verbose gc logs and provides some reports like cpu/gc usage, blocked threads, some tips regarding the javacores. The tool can process the following data:

  • Set of Javacores from the same run. Optionally you can add verbose.gc log file
  • Single Javacore

Installation and usage

Installation:

The tool requires Python 3.9 or higher plus some packages - see more in REQUIREMENTS. Despite it is not mandatory, it is recommended in Python to use virtual environment to manage packages.

Installing from pip

This is most common option which you will need in 99% of situations

Steps:

  1. Download and install Python. Usually the latest version is supported. Search for supported versions in REQUIREMENTS
  2. Create and activate Virtual Environment according to Creating virtual environments.
  3. Run the following command: pip install javacore-analyser
    OR pip install --pre javacore-analyser - if you want an experimental version

Installing from sources

This is recommended for geeks only:

  1. Repeat steps 1 and 2 from above
  2. Download the project files either from Releases or from main
  3. Extract the code and from code directory execute pip install .

Running the tool:

Running cmd application:

  1. Install application if not done yet
  2. Activate your created virtual environment according to activate Virtual Environment according to Creating virtual environments
  3. Run the following command from cmd:
    javacore-analyser-batch <input-data> <generated-reports-dir>
    or
    python -m javacore_analyser batch <input-data> <generated-reports-dir>

Where <input-data> is one of the following:

  • The directory containing javacores and optionally verbose gc
  • Archive (7z, zip, tar.gz, tar.bz2) containing the same
  • List of the javacores separated by ; character. Optionally you can add --separator option to define your own separator. You can type the following command to obtain the help:
    javacore-analyser-batch --help or python -m javacore_analyser batch --help

Running web application:

  1. Repeat steps 1-3 from cmd application

  2. Execute the following command from cmd:
    javacore_analyser_web --port=5000 --reports-dir=/data/reports_dir
    or
    python -m javacore_analyser web --port=5000 --reports-dir=/data/reports_dir

    The first parameter set the port to use by application. If not specified, 5000 will be used.
    The second parameter sets where the reports need to be stored. If not set, then the reports dir will be created in current location.

Now you can type (http://localhost:5000/).

Running container image

There is a Docker/Podman container managed by one of projects developers. Use the following command to start it:

podman run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/ibm/javacore-analyser:latest

or
docker run -it --rm --name javacore-analyser --mount type=bind,src="/local-reports-dir",target=/reports -p 5001:5000 ghcr.io/ibm/javacore-analyser:latest

The mount option specifies where you want locally to store the reports. The reports in the container are stored in /reports directory. If you remove mount option, the application will work but the reports will not persist after restart.
The application is running in the container on port 5000. By using -p 5001:5000 option, you specify to map container port 5000 to port 5001 on your machine. Therefore the application will be available under http://localhost:5001/.

Notes

If you have any questions or issues you can create a new issue here.

Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

All source files must include a Copyright and License header. The SPDX license header is preferred because it can be easily scanned.

If you would like to see the detailed LICENSE click here.

#
# Copyright IBM Corp. {Year project was created} - {Current Year}
# SPDX-License-Identifier: Apache-2.0
#

Authors

Another pages

Another useful pages:

Metadata

Release files for javacore-analyser 2.2.0.dev121

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for javacore-analyser 2.2.0.dev121
File Size Uploaded Provenance Actions
javacore_analyser-2.2.0.dev121.tar.gz 219.5 kB Without provenance Details for javacore_analyser-2.2.0.dev121.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for javacore-analyser 2.2.0.dev121
File Interpreter ABI Platform Actions
javacore_analyser-2.2.0.dev121-py3-none-any.whl Python 3 none any Details for javacore_analyser-2.2.0.dev121-py3-none-any.whl

Total release size: 439.4 kB

Release files / javacore_analyser-2.2.0.dev121.tar.gz

Download URL javacore_analyser-2.2.0.dev121.tar.gz
Size 219.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6c334550ed0b9087dd2a7e30c95e02e8f1e13c3b5c91fa010fdb359537e047f3
BLAKE2b-256 checksum
How to use checksums
f05b107cd04c7bad5adca7c0c352c44cc0ad867b9593f75324af927fecbb1be5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / javacore_analyser-2.2.0.dev121-py3-none-any.whl

Download URL javacore_analyser-2.2.0.dev121-py3-none-any.whl
Size 219.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6be2df005d75bb41997238382d594d0ab6a4564ade5c0207b2b7e0ba1d94b49d
BLAKE2b-256 checksum
How to use checksums
fdd3724847c59cb2430b452bded06d1371d4ac9cfafbc1d22e1e2b0ffa13dde6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Security for javacore-analyser 2.2.0.dev121

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page