- Setting JAVA_HOME: After unpacking the zip, adjust the value of
JAVA_HOMEin thesetEnvscript.- 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.batin Windows) which should display the version of Java you configured.
- For OSX:
- The
jvm.configfile (orjvm.batfor Windows) contains JVM configurations including:- Choice of garbage collector
- Size of heap
- GC logging
- Other configurations to support various types of investigations.
- Tools:
- VisualVM
- MAT (Memory Analyzer Tool) - Stand-alone version
- Java Mission Control and Flight Recorder can also be used.
- Preparation:
- Compile the source using the
compilescript. - Start the server using
appServerStartscript. - Use
jmeterscript to start the load test harness server.
- Compile the source using the
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.
- 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 2024 Kodewerk Ltd. All Rights Reserved.