Is it possible to remote hotswap a pure java application?

620 views
Skip to first unread message

Ryanivanka

unread,
Jan 15, 2016, 6:52:06 AM1/15/16
to HotswapAgent
Hi Experts, 

I was debugging a java applications running on remote server, I attach debugging using Eclipse. Because there is no web container in it to support hotswap, so I guess HotswapAgent is my hope. My question is how can I setup to hotswap my code changes locally to remote server? Or that's impossible?

Thanks a lot,
Ryanivanka

Jiří Bubník

unread,
Jan 15, 2016, 7:06:43 AM1/15/16
to Ryanivanka, HotswapAgent

Hi,

 

 

Just follow stadnard instructions on your remote server: http://hotswapagent.org/quick-start

 

Connect to the remote application from eclipse and use standard hot replace  feature (https://wiki.eclipse.org/FAQ_What_is_hot_code_replace%3F)

 

DCEVM allows method signature changes, Hotswap Agent handles method/framework caches etc.

 

Jiri

--
You received this message because you are subscribed to the Google Groups "HotswapAgent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hotswapagent...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryanivanka

unread,
Jan 18, 2016, 4:31:43 AM1/18/16
to Jiří Bubník, HotswapAgent
Thanks for you reply.

I tried to setup and got stuck on some error. 

First is about "Must use the serial GC in the DCEVM", I should remove some serial GC option in JAVA_OPTS. 

Second, I should compile my binary and ask maven to use DCEVM patched JDK

Third, according to http://ssw.jku.at/dcevm/binaries/, dcevm only support 32bit on linux? is this too old? or it's still in this way? hotswapAgent doesn't mention this.

Thanks,
Ryanivanka


Ryanivanka

unread,
Jan 18, 2016, 5:20:32 AM1/18/16
to Jiří Bubník, HotswapAgent
Thank you guys, I already make it work. Linux 64bit seems to be supported already.
Reply all
Reply to author
Forward
0 new messages