jproblemgenerator creates scenarios in which Java programs leak memory or crash the JVM

Overview

DANGER The use of this program can crash or damage your computer! Only use it, if you know what are you doing! DANGER

jproblemgenerator - what does it do?

jproblemgenerator creates scenarios in which Java programs leak memory or crash the JVM. It is intended to train the use of debugging tools like VisualVM or Eclipse Memory Analyzer.

jproblemgenerator - usage

Always run it with the option -Xmx1024m to prevent it from using all RAM. Change the amount of memory according to your hardware.

java -Xmx1024m -jar jproblemgenerator-jar-with-dependencies.jar --> prints help

java -Xmx1024m -jar jproblemgenerator-jar-with-dependencies.jar -bigHashMap --> creates a big HashMap and waits for you to hit enter to terminate. That gives you the chance to take a dump of the program.

Help:

usage: jproblemgenerator [-bigArrayInt] [-bigArrayInteger] [-bigHashMap] [-bigList] [-crashJVM]
   [-hashSetWithDuplicateEntries] [-heapOverflow] [-internStrings] [-leakedSystemProperties]
   [-manyThreads] [-stackOverflow]
-bigArrayInt,--create-big-array-int                                    Creates a big array of ints
-bigArrayInteger,--create-big-array-integer                            Creates a big array of
                                                                       integers
-bigHashMap,--create-big-hashmap                                       Creates a big HashMap
-bigList,--create-big-list                                             Creates a big List
-crashJVM,--crash-jvm                                                  Crashes the JVM.
-hashSetWithDuplicateEntries,--create-hashSet-with-duplicate-entries   Creates a HashSet with
                                                                       duplicate entries.
-heapOverflow,--create-heapoverflow                                    Creates a heapoverflow.
-internStrings,--create-intern-strings                                 Creates interalized strings.
-leakedSystemProperties,--create-leaked-system-propertes               Creates a memory leak by
                                                                       creating system properties.
-manyThreads,--create-many-threads                                     Creates many threads.
-stackOverflow,--create-stackoverflow                                  Creates a stackoverflow.

Compile

Just compile: mvn clean install

Compile and create runnable jar: mvn clean compile assembly:single The runnable jar will be created in the target folder.

You might also like...

A fast object pool for the JVM

Stormpot Stormpot is an object pooling library for Java. Use it to recycle objects that are expensive to create. The library will take care of creatin

Nov 14, 2022

An embedded database implemented in pure java based on bitcask which is a log-structured hash table for K/V Data.

Baka Db An embedded database implemented in pure java based on bitcask which is a log-structured hash table for K/V Data. Usage import cn.ryoii.baka.B

Dec 20, 2021

Jalgorithm is an open-source Java library which has implemented various algorithms and data structure

Jalgorithm is an open-source Java library which has implemented various algorithms and data structure

We loved Java and algorithms, so We made Jalgorithm ❤ Jalgorithm is an open-source Java library which has implemented various algorithms and data stru

Dec 15, 2022

High Performance data structures and utility methods for Java

Agrona Agrona provides a library of data structures and utility methods that are a common need when building high-performance applications in Java. Ma

Jan 5, 2023

Bloofi: A java implementation of multidimensional Bloom filters

Bloofi: A java implementation of multidimensional Bloom filters Bloom filters are probabilistic data structures commonly used for approximate membersh

Nov 2, 2022

A high performance caching library for Java

A high performance caching library for Java

Caffeine is a high performance, near optimal caching library. For more details, see our user's guide and browse the API docs for the latest release. C

Jan 5, 2023

Chronicle Bytes has a similar purpose to Java NIO's ByteBuffer with many extensions

Chronicle Bytes has a similar purpose to Java NIO's ByteBuffer with many extensions

Chronicle-Bytes Chronicle-Bytes Chronicle Bytes contains all the low level memory access wrappers. It is built on Chronicle Core’s direct memory and O

Jan 1, 2023

High performance Java implementation of a Cuckoo filter - Apache Licensed

Cuckoo Filter For Java This library offers a similar interface to Guava's Bloom filters. In most cases it can be used interchangeably and has addition

Dec 30, 2022
Owner
null
leak again bruh

its not an official phobos version, its just a skid made by somesadkid leaked again this time no nuke :maed: rte is cool B) peterdev is meanie nuked r

lorozin 18 Dec 2, 2022
External-Memory Sorting in Java

Externalsortinginjava External-Memory Sorting in Java: useful to sort very large files using multiple cores and an external-memory algorithm. The vers

Daniel Lemire 235 Dec 29, 2022
Hollow is a java library and toolset for disseminating in-memory datasets from a single producer to many consumers for high performance read-only access.

Hollow Hollow is a java library and toolset for disseminating in-memory datasets from a single producer to many consumers for high performance read-on

Netflix, Inc. 1.1k Dec 25, 2022
Java Collections till the last breadcrumb of memory and performance

Koloboke A family of projects around collections in Java (so far). The Koloboke Collections API A carefully designed extension of the Java Collections

Roman Leventov 967 Nov 14, 2022
Lightning Memory Database (LMDB) for Java: a low latency, transactional, sorted, embedded, key-value store

LMDB for Java LMDB offers: Transactions (full ACID semantics) Ordered keys (enabling very fast cursor-based iteration) Memory-mapped files (enabling o

null 680 Dec 23, 2022
Immutable in-memory R-tree and R*-tree implementations in Java with reactive api

rtree In-memory immutable 2D R-tree implementation in java using RxJava Observables for reactive processing of search results. Status: released to Mav

Dave Moten 999 Dec 20, 2022
fasttuple - Collections that are laid out adjacently in both on- and off-heap memory.

FastTuple Introduction There are lots of good things about working on the JVM, like a world class JIT, operating system threads, and a world class gar

BMC TrueSight Pulse (formerly Boundary) 137 Sep 30, 2022
Library for creating In-memory circular buffers that use direct ByteBuffers to minimize GC overhead

Overview This project aims at creating a simple efficient building block for "Big Data" libraries, applications and frameworks; thing that can be used

Tatu Saloranta 132 Jul 28, 2022
A Primitive Collection library that reduces memory usage and improves performance

Primitive-Collections This is a Simple Primitive Collections Library i started as a hobby Project. It is based on Java's Collection Library and FastUt

Speiger 26 Dec 25, 2022
Fault tolerance and resilience patterns for the JVM

Failsafe Failsafe is a lightweight, zero-dependency library for handling failures in Java 8+, with a concise API for handling everyday use cases and t

Jonathan Halterman 3.9k Jan 2, 2023