https://github.com/bkoprucu/article-jvm-stack
Fills stack and heap on JVM for memory allocation analysis
https://github.com/bkoprucu/article-jvm-stack
jvm memory-allocation stack
Last synced: 4 months ago
JSON representation
Fills stack and heap on JVM for memory allocation analysis
- Host: GitHub
- URL: https://github.com/bkoprucu/article-jvm-stack
- Owner: bkoprucu
- Created: 2023-12-05T15:51:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-06T20:12:40.000Z (over 1 year ago)
- Last Synced: 2025-01-22T19:46:02.958Z (5 months ago)
- Topics: jvm, memory-allocation, stack
- Language: Java
- Homepage:
- Size: 71.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## JVM Memory Filler
### Description
Spawns threads and fills stack and heap memory for memory allocation analysis of JVM.
Written for the article https://berksoftware.com/23/12/JVM-Stack-Memory.
### Build
Switch to the JDK version to analyze:
```shell
$ sdk use java 11.0.21-amzn
```Build and install Docker image tagged with current Java version:
```shell
$ ./mvnw install
```
Docker image tagged with current Java version will be installed: **memoryfiller:java11**An image for older version then current one can be build with Maven property `jvm_version`:
```shell
$ ./mvnw -Djvm_version=17
```Java 8 version is in separate branch: [java8](https://github.com/bkoprucu/article-jvm-stack/tree/java8)
### Usage
Refer to the article https://berksoftware.com/23/12/JVM-Stack-Memory