Hotswap for Java using DCEVM+Hotswap Agent

Here is an opensource setup that does the job as JRebel which offcourse is not free.

Download HotswapAgent latest release from this url

https://github.com/HotswapProjects/HotswapAgent/releases

Download DCEVM jar from the following url

https://github.com/dcevm/dcevm/releases

Install DCEVM as an administrator

java -jar DCEVM-light-8u112-installer.jar

dcevm

Create a new run configuration in intelliJ with following VM option
-XXaltjvm=dcevm -javaagent:C:\Dev\sw\HotswapAgent-0.3\hotswap-agent.jar -Xms1G -Xmx5G

Now you can modify the Java code on the fly and don’t need to restart the whole application. Just don’t forget to compile the file that you modified.

For more information

https://groups.google.com/forum/#!topic/hotswapagent/BxAK_Clniss

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s