|
7 | 7 | <!-- Not always needed, but a scope helps the user understand in a short sentance like below, why this repo exists -->
|
8 | 8 | ## Scope
|
9 | 9 |
|
10 |
| -The tool analyzes Javacores and verbose gc logs and provides some reports like cpu/gc usage, blocked threads, some tips regarding the javacores |
11 |
| -<!-- A more detailed Usage or detailed explaination of the repository here --> |
12 |
| -## Usage |
13 |
| - |
14 |
| -This repository contains some example best practices for open source repositories: |
| 10 | +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: |
| 11 | +* Set of Javacores from the same run. Optionally you can add verbose.gc log file |
| 12 | +* Single Javacore |
15 | 13 |
|
16 |
| -* [LICENSE](LICENSE) |
17 |
| -* [README.md](README.md) |
18 |
| -* [CONTRIBUTING.md](CONTRIBUTING.md) |
19 |
| -* [MAINTAINERS.md](MAINTAINERS.md) |
20 |
| -<!-- A Changelog allows you to track major changes and things that happen, https://github.com/github-changelog-generator/github-changelog-generator can help automate the process --> |
21 |
| -* [CHANGELOG.md](CHANGELOG.md) |
22 |
| -* [REQUIREMENTS.md](REQUIREMENTS.md) |
| 14 | + |
| 15 | +<!-- A more detailed Usage or detailed explaination of the repository here --> |
| 16 | +## Installation and usage |
| 17 | + |
| 18 | +### Installation: |
| 19 | +The tool requires Python 3.9 or higher plus some packages - see more in [REQUIREMENTS](REQUIREMENTS.md). Despite it is not mandatory, it is recommended in Python to use virtual environment to manage packages. |
| 20 | + |
| 21 | +Steps: |
| 22 | +1. Download and install Python. Usually the latest version is supported. Search for supported versions in |
| 23 | +[REQUIREMENTS](REQUIREMENTS.md) |
| 24 | +2. Download and unpack the tool. |
| 25 | +3. Create and activate Virtual Environment according to [Creating virtual environments](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments). |
| 26 | +4. Install all required pip packages. Navigate in command line to unpacked tool and type |
| 27 | + `pip install -r requirements.txt` |
| 28 | + |
| 29 | +### Running the tool: |
| 30 | +1. Activate your created virtual environment according to activate Virtual Environment according to [Creating virtual environments](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments) |
| 31 | +2. Navigate in command line to unpacked tool and run the following command: |
| 32 | + `python javacore_analyzer.py <input-data> <output-dir>` |
| 33 | +Where `<input-data>` is one of the following: |
| 34 | +* The directory containing javacores and optionally verbose gc |
| 35 | +* Archive (7z, zip, tar.gz, tar.bz2) containint the same |
| 36 | +* List of the javacores separated by `'` character. Optionally you can add `--separator` option to define your own separator. |
| 37 | +You can type the following command to obtain the help: |
| 38 | +`python javacore_analyzer.py --help` |
23 | 39 |
|
24 |
| -<!-- |
25 |
| -> These are optional |
26 |
| ---> |
27 | 40 |
|
28 | 41 | <!-- The following are OPTIONAL, but strongly suggested to have in your repository. -->
|
29 | 42 | <!--
|
30 | 43 | * [dco.yml](.github/dco.yml) - This enables DCO bot for you, please take a look https://github.com/probot/dco for more details.
|
31 | 44 | * [travis.yml](.travis.yml) - This is a example `.travis.yml`, please take a look https://docs.travis-ci.com/user/tutorial/ for more details.
|
32 | 45 | -->
|
33 | 46 |
|
34 |
| -These may be copied into a new or existing project to make it easier for developers not on a project team to collaborate. |
35 |
| - |
36 | 47 | <!-- A notes section is useful for anything that isn't covered in the Usage or Scope. Like what we have below. -->
|
37 | 48 | ## Notes
|
38 | 49 |
|
@@ -72,8 +83,19 @@ If you would like to see the detailed LICENSE click [here](LICENSE).
|
72 | 83 | ```
|
73 | 84 | ## Authors
|
74 | 85 |
|
75 |
| -- Krzysztof Kazmierczyk <[email protected]> |
76 |
| -- Piotr Aniola < [email protected]> |
77 |
| -- Tadeusz Janasiewicz < [email protected]> |
| 86 | +* Krzysztof Kazmierczyk <[email protected]> |
| 87 | +* Piotr Aniola < [email protected]> |
| 88 | +* Tadeusz Janasiewicz < [email protected]> |
78 | 89 |
|
79 | 90 | [issues]: https://github.com/IBM/javacore-analyser/issues/new
|
| 91 | + |
| 92 | +## Another pages |
| 93 | + |
| 94 | +Another useful pages: |
| 95 | +* [LICENSE](LICENSE) |
| 96 | +* [README.md](README.md) |
| 97 | +* [CONTRIBUTING.md](CONTRIBUTING.md) |
| 98 | +* [MAINTAINERS.md](MAINTAINERS.md) |
| 99 | +<!-- A Changelog allows you to track major changes and things that happen, https://github.com/github-changelog-generator/github-changelog-generator can help automate the process --> |
| 100 | +* [CHANGELOG.md](CHANGELOG.md) |
| 101 | +* [REQUIREMENTS.md](REQUIREMENTS.md) |
0 commit comments