Onkar Salvi
Onkar Salvi

Reputation: 151

how to configure hot swap agent with liferay server

I want to configure hotswap agent and DCEVM with liferay server. I have added DCEVM in jdk and also added "-XXaltjvm=dcevm -javaagent:D:\onkar\DCEVM\hotswap-agent.jar" in setenv.bat file. Now after deploying war file either server doesn't start properly or war file is not getting deployed properly.
Please help if anyone knows how to configure it with liferay server.

Upvotes: 2

Views: 2306

Answers (1)

Angelo
Angelo

Reputation: 814

With Hotswap Agent you can do java code changes and check those immediately without the need to restart the TOMCAT SERVER

Double Click on Server - Runtime Environment - JRE must be mapped to the same JRE of JDK in which DECVM is patched in step-1

enter image description here

Add “-XXaltjvm="dcevm" -javaagent:\HotswapAgent.jar” in VM Arguments

enter image description here

Run Tomcat on SErver in Debug mode

With Liferay SERVER, HOT SWAP Agent starts, but I have a PERMGEN exception.

Other info

Upvotes: 2

Related Questions