Skip to content
Tirthal Patel edited this page Jan 29, 2015 · 1 revision

Step-1: Install “jvm.dll” DCEVM patch in JDK

Follow the same steps which are mentioned on HotswapAgent quick start page - Install section to patch Java Hotspot(r) file in JDK 1.7_xy and download HotswapAgent.jar file.

Step-2: In Eclipse - Tomcat Server - Runtime Environment - JRE must be mapped to the same JRE of JDK in which DECVM is patched in step-1

Step-3: Tomcat - Add "-XXaltjvm=dcevm -javaagent:\HotswapAgent.jar" in VM Arguments.

Step-4: Disable “Auto Reload” in Tomcat web modules This is most important step, otherwise you will not see power of Hotswap Agent in step-5.

Step-5: Run Tomcat in Debug mode and Enjoy java coding. When you start your server in debug mode, you should see messages like below in Eclipse Console.

Now if you do code changes in java as well as configuration files of supported plugins (i.e. logback.xml), those would be ready for unit testing immediately without server restart.

Clone this wiki locally