Skip to content

Micro application that generates GC-able objects and humongous objects for G1GC

License

Notifications You must be signed in to change notification settings

pingtimeout/humongous-allocator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Humongous allocator

This is a sample application that continuously creates humongous objects. Its creates a few hundreds MB of short lived objects, and then a humongous object (a long array).

Build

mvn compile

Run

The -XX:G1HeapRegionSize=8388608 parameter can be specified to tweak the humongous object size. The app uses it even if a different GC than G1 is selected. If not specified, 8388608 is used.

java -Xms16G -Xmx16G -XX:+UseG1GC -XX:G1HeapRegionSize=8388608 -cp target/classes/ fr.pingtimeout.HumongousAllocator

About

Micro application that generates GC-able objects and humongous objects for G1GC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages