Skip to content

kcpeppe/javamemoryleaks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Memory Leaks

Exercise 0: Runtime Setup

Configuring setEnv

  • Setting JAVA_HOME: After unpacking the zip, adjust the value of JAVA_HOME in the setEnv script.
    • For OSX: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home
    • For Windows Users: Escape spaces in paths. For example, use C:\\My\\ Documents.
    • Test the script by running ./setEnv.sh (setEnv.bat in Windows) which should display the version of Java you configured.

JVM Configuration

  • The jvm.config file (or jvm.bat for Windows) contains JVM configurations including:
    • Choice of garbage collector
    • Size of heap
    • GC logging
    • Other configurations to support various types of investigations.

Download Tooling

Running Exercises

  • Preparation:
    • Compile the source using the compile script.
    • Start the server using appServerStart script.
    • Use jmeter script to start the load test harness server.

Final Note

This workshop is designed to help you become more effective in resolving performance regressions. The exercises are open-ended, allowing for exploration of different performance aspects. If you encounter issues, do not hesitate to ask for help. Let's have fun learning more about resolving Java Memory Leaks.

Warning

  • Running some exercises may cause your CPUs to run at close to capacity, which could hinder the ability to terminate the application. Avoid running unnecessary applications and consider using two machines if possible, one for the exercises and another for any webinars or tutorials.

Copyright Notice

Copyright 2024 Kodewerk Ltd. All Rights Reserved.