hotswap-agent Dynamic Code Evolution VM Installation

DCEVM Installation: Put DCEVM-8u144-installer.jar to C:/Windows/Users/okinik/ycn/appFiles/YCNeShop/dependencies Changes Tomcat Configutaion and DCEVM: [code lang=”shell”] run java -jar DCEVM-8u144-installer.jar select C:/Program Files/Java/jdk1.8.0_144 [/code] Install DCEVM as altjvm: to be saw Installed altjvm? (Yes (25.71-b01-dcevmlight-2)) Replace by DCEVM to be saw Replaced bt DCEVM? (Yes (25.71-b01-dcevmlight-2)) To be exist on directory C:/Program Files/Java/jdk1.8.0_144/jre/bin/dcevm verify: [code lang=”shell”] cmd java -version [/code] output must be: [code lang=”shell”] java version "1.8.0_144" Java (TM) SE Runtime Environment (build 1.8.0_144-b01) Dynamic Code Evolution 64-Bit Server VM (build 25.71-b01-dcevmlight-2, mixed mode) [/code] eclipse.ini: [code lang=”shell”] -vm C:\Program Files\Java\jdk1.8.0_144\bin\ [/code] adding properties files to the source folder: hotswap-agent.properties content of hotswap-agent.properties disabledPlugins=Seam Eclipse IDE configurations: Eclipse-> Tomcat-> Runtime Environment-> Installed JRE: C:\Program Files\Java\jdk1.8.0_144 Eclipse-> Tomcat-> VM Args: [code lang=”shell”] -XXaltjvm=dcevm -javaagent:C:\Users\SAPRIB\ycn\appFiles\YCNeShop\dependencies\hotswap-agent-1.2.0.jar=autoHotswap=true -Xmx1024m -XX:MaxPermSize=370m -XX:+UnlockDiagnosticVMOptions -XX:+EnableInvokeDynamic Eclipse-> Tomcat-> Publishing-> Automatically publish when resources change Eclipse-> Tomcat-> Server Options-> to be checked Modules auto reload by default Eclipse-> Tomcat-> Modules-> Web Modules-> /myappname-> Edit-> Auto Reload: Disabled [/code] Eclipse Debug Mode start console output logs must be looks like: [code lang=”shell”] HOTSWAP AGENT: 16:56:28.153 INFO (org.hotswap.agent.HotswapAgent) – Loading Hotswap agent {1.2.0} – unlimited runtime class redefinition. HOTSWAP AGENT: 16:56:28.497 INFO (org.hotswap.agent.config.PluginRegistry) – Plugin ‘org.hotswap.agent.plugin.hotswapper.HotswapperPlugin’ initialized in ClassLoader ‘sun.misc.Launcher$AppClassLoader@18b4aac2’. HOTSWAP AGENT: 16:56:28.606 INFO (org.hotswap.agent.config.PluginRegistry) – Discovered plugins: [Hotswapper, JdkPlugin, WatchResources, ClassInitPlugin, AnonymousClassPatch, Hibernate, Hibernate3JPA, Hibernate3, Spring, Jersey1, Jersey2, Jetty, Tomcat, ZK, Logback, Log4j2, MyFaces, Mojarra, Omnifaces, Seam, ELResolver, WildFlyELResolver, OsgiEquinox, Owb, Proxy, WebObjects, Weld, JBossModules, ResteasyRegistry, Deltaspike, GlassFish] HOTSWAP AGENT: 16:56:29.708 INFO (org.hotswap.agent.watch.nio.TreeWatcherNIO) – Registering directory target C:\Users\okinik\ycn\Java\apis\apache-tomcat-8.0.46\lib via watched: C:\Users\okinik\ycn\Java\apis\apache-tomcat-8.0.46 HOTSWAP AGENT: 16:56:29.719 INFO (org.hotswap.agent.config.PluginRegistry) – Plugin ‘org.hotswap.agent.plugin.hotswapper.HotswapperPlugin’ initialized in ClassLoader ‘java.net.URLClassLoader@33afa13b’. Mar 13, 2018 4:56:29 PM org.apache.tomcat.util.digester.SetPropertiesRule begin INFO: Starting Servlet Engine: Apache Tomcat/8.0.46 HOTSWAP AGENT: 16:56:30.878 INFO (org.hotswap.agent.watch.nio.TreeWatcherNIO) – Registering directory target C:\Users\okinik\ycn\Java\apis\apache-tomcat-8.0.46\lib via watched: C:\Users\okinik\ycn\Java\apis\apache-tomcat-8.0.46 HOTSWAP AGENT: 16:56:30.888 INFO (org.hotswap.agent.config.PluginRegistry) – Plugin ‘org.hotswap.agent.plugin.hotswapper.HotswapperPlugin’ initialized in ClassLoader ‘WebappClassLoader context: ROOT delegate: false ———-> Parent Classloader: java.net.URLClassLoader@33afa13b ‘. HOTSWAP AGENT: 16:56:30.888 INFO (org.hotswap.agent.config.PluginRegistry) – Plugin ‘org.hotswap.agent.plugin.tomcat.TomcatPlugin’ initialized in ClassLoader ‘WebappClassLoader context: ROOT delegate: false ———-> Parent Classloader: java.net.URLClassLoader@33afa13b ‘. HOTSWAP AGENT: 16:56:30.888 INFO (org.hotswap.agent.plugin.tomcat.TomcatPlugin) – Tomcat plugin initialized – Tomcat version ‘8.0.46.0’ HOTSWAP AGENT: 16:56:32.705 INFO (org.hotswap.agent.watch.nio.TreeWatcherNIO) – Registering directory target C:\Users\okinik\ycn\Java\apis\apache-tomcat-8.0.46\lib via watched: C:\Users\okinik\ycn\Java\apis\apache-tomcat-8.0.46 HOTSWAP AGENT: 16:56:32.715 INFO (org.hotswap.agent.watch.nio.TreeWatcherNIO) – Registering directory target C:\Users\okinik\ycn\workspace\YCNeShopWoSp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\eShop\WEB-INF\classes via watched: C:\Users\okinik\ycn\workspace\YCNeShopWoSp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\eShop\WEB-INF HOTSWAP AGENT: 16:56:32.716 INFO (org.hotswap.agent.config.PluginRegistry) – Plugin ‘org.hotswap.agent.plugin.hotswapper.HotswapperPlugin’ initialized in ClassLoader ‘WebappClassLoader context: eshoptttr delegate: false ———-> Parent Classloader: java.net.URLClassLoader@33afa13b ‘. HOTSWAP AGENT: 16:56:32.716 INFO (org.hotswap.agent.config.PluginRegistry) – Plugin ‘org.hotswap.agent.plugin.tomcat.TomcatPlugin’ initialized in ClassLoader ‘WebappClassLoader context: eshoptttr delegate: false ———-> Parent Classloader: java.net.URLClassLoader@33afa13b ‘. HOTSWAP AGENT: 16:56:32.716 INFO (org.hotswap.agent.plugin.tomcat.TomcatPlugin) – Tomcat plugin initialized – Tomcat version ‘8.0.46.0’ HOTSWAP AGENT: 16:57:20.413 INFO (org.hotswap.agent.watch.nio.TreeWatcherNIO) – Registering directory target C:\Users\okinik\ycn\Java\apis\apache-tomcat-8.0.46\lib via watched: C:\Users\okinik\ycn\Java\apis\apache-tomcat-8.0.46 HOTSWAP AGENT: 16:57:20.425 INFO (org.hotswap.agent.watch.nio.TreeWatcherNIO) – Registering directory target C:\Users\okinik\ycn\workspace\YCNeShopWoSp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\eShop\WEB-INF\classes via watched: C:\Users\SAPRIB\ycn\workspace\YCNeShopWoSp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\eShop\WEB-INF HOTSWAP AGENT: 16:57:20.426 INFO (org.hotswap.agent.config.PluginRegistry) – Plugin ‘org.hotswap.agent.plugin.mojarra.MojarraPlugin’ initialized in ClassLoader ‘WebappClassLoader context: eshoptttr delegate: false ———-> Parent Classloader: java.net.URLClassLoader@33afa13b ‘. HOTSWAP AGENT: 16:57:23.242 INFO (org.hotswap.agent.config.PluginRegistry) – Plugin ‘org.hotswap.agent.plugin.elresolver.ELResolverPlugin’ initialized in ClassLoader ‘java.net.URLClassLoader@33afa13b’. Mar 13, 2018 4:57:32 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 61799 ms [/code] You can get more information from here.]]>

Leave a Reply

Your email address will not be published. Required fields are marked *