`

jrebel5 +tomcat 实现动态部署

 
阅读更多

jrebel5 +tomcat 实现动态部署

 

JRebel是一套JavaEE开发工具 ,收费,网上有破解,就是一个jar 包,它是通过代理能重载java class 文件,来达到动态加载,不用重启服务器。

如果是在 eclipse 中集成 tomcat 的,则在配置tomcat时,在JVM中加一句:

-noverify -javaagent:f:\jrebel5.jar -Xms256m -Xmx1024m  -Drebel.spring_plugin=true  

--- Drebel.spring_plugin 这一句指 支持的项目,默认都支持,见jrebel.jar 中的 plugins下面 plugin.properties  这个文件里面都是一些配置参数 。

-Drebel.dirs=F:\Tomcat\apache-tomcat-6.0.32\webapps\ngrmqh\WEB-INF\classes   --- 可要可不要,加上启动很慢,这个是指监控项目中的classess目录,

启动后会看到:

[2013-06-07 10:09:36] #############################################################
[2013-06-07 10:09:36]
[2013-06-07 10:09:36]  JRebel 5.0.0 (201206080930)
[2013-06-07 10:09:36]  (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
[2013-06-07 10:09:36]
[2013-06-07 10:09:36]  Over the last 1 days JRebel prevented
[2013-06-07 10:09:36]  at least 0 redeploys/restarts saving you about 0 hours.
[2013-06-07 10:09:36]
[2013-06-07 10:09:36]  This product is licensed to Unlimited
[2013-06-07 10:09:36]  For FUN! Unlimited! Enjoy!
[2013-06-07 10:09:36]
[2013-06-07 10:09:36]  The following plugins are disabled at the moment:
[2013-06-07 10:09:36]  * Apache MyFaces plugin (set -Drebel.myfaces_plugin=true to enable)
[2013-06-07 10:09:36]  * Click plugin (set -Drebel.click_plugin=true to enable)
[2013-06-07 10:09:36]  * JRuby Plugin (set -Drebel.jruby_plugin=true to enable)
[2013-06-07 10:09:36]  * Jersey plugin (set -Drebel.jersey_plugin=true to enable)
[2013-06-07 10:09:36]  * Oracle ADF Core plugin (set -Drebel.adf_core_plugin=true to enable)
[2013-06-07 10:09:36]  * Oracle ADF Faces plugin (set -Drebel.adf_faces_plugin=true to enable)
[2013-06-07 10:09:36]  * Seam-Wicket plugin (set -Drebel.seam_wicket_plugin=true to enable)
[2013-06-07 10:09:36]  * WebObjects plugin (set -Drebel.webobjects_plugin=true to enable)
[2013-06-07 10:09:36]
[2013-06-07 10:09:36] #############################################################

 

表示成功。

 

如果是在 tomcat 中单独启动:则在 {tomcat}\bin\ catalina.bat,找到set JAVA_OPTS处, 在“=”右边添加如下代码:

-noverify -javaagent:d:\jrebel5.jar  

 

设置后结果如下:

set JAVA_OPTS=-noverify -javaagent:d:\javarebel-2.0\javarebel.jar-Xms1024m -Xmx1024m

 

就可以了, 如在 weblogic 中 也可以设置代理 JAVA_OPTS 参数。

 

 

参考:

http://blog.csdn.net/xiaolang85/article/details/6748697

http://macrotea.iteye.com/blog/787015 

 

 

 

分享到:
评论

相关推荐

    ecilipse+tomcat+jrebel实现热部署

    你是否有过为修改后台代码,项目重部署而出现的漫长等待而烦恼,JRebel就是这样一套解决修改后台代码快速实现热部署的开发工具,节省了大量重启时间,提高了个人开发效率。

    jrebel + myeclipse9.0 + tomcat 热部署攻略

    解决java spring热部署的问题,亲测能用,不能用那是人品啊

    Eclipse4.5.2+maven3.3.9+tomcat7+JRebel6.4.3实现热部署

    Eclipse Mars.2 Release (4.5.2),maven 3.3.9,tomcat7,JRebel6.4.3,包内包含JRebel与详细使用说明,纯手写,且亲测可用,eclipse,maven,tomcat可自行下载,JRebel为破解版,码字辛苦,望各位大神给1分辛苦费

    Jrebel 基于TOMCAT实现项目修改热部署

    NULL 博文链接:https://showlike.iteye.com/blog/1680034

    tomcat远程debug与jrebel热部署文件

    配置tomcat热部署和远程debug时,用到的jrebel.jar等和自己编写的tomcat启动参数脚本文件.

    tomcat_热部署_jrebel6.4.3-cracked

    在基于Java的应用服务器实现热部署的过程中,类装入器扮演着重要的角色。大多数基于Java的应用服务器,包括EJB服务器和Servlet容器,都支持热部署。类装入器不能重新装入一个已经装入的类,但只要使用一个新的类装入...

    myeclipse 插件热部署 jrebel6.5

    myeclipse 插件热部署 jrebel6.5 亲测可用,资源下载到磁盘,然后打开myeclipse 路径为:Windows ---> Perferences --> MyEclipse -->Servers -->Tomcat --> Tomcat 7.x -->JDK 配置jvm参数: -...

    Eclipse中使用tomcat 热部署 Jrebel6.4.3 不需安装插件

    Eclipse中使用tomcat 热部署 Jrebel6.4.3 不需安装插件

    Jrebel 2018.1.2 Eclipse离线安装包

    Jrebel 可快速实现热部署,节省了大量重启时间,提高了个人开发效率。 JRebel是一款JAVA虚拟机插件,它使得JAVA程序员能在不进行重部署的情况下,即时看到代码的改变对一个应用程序带来的影响。JRebel使你能即时分别...

    jrebel-2018.1.1

    eclipse+tomcat热部署工具jrebel,不需要重启,修改html、js、Java代码、xml文件、properties文件自动增量加载,节约开发时间,提高编程效率

    myeclipse热部署jrebel6.5.0

    -noverify -javaagent:D:\myeclipse\jar\jrebel6.5.0\jrebel.jar -Drebel.dirs=${project_loc}\WEB-INF\classes -Drebel.spring_plugin=true -Drebel.struts2-plugin=true -Drebel.hibernate_plugin=true -Xms256M -...

    tomcat 热部署 hot deploy Jrebel 加大JVM内存

    NULL 博文链接:https://vernonchen163.iteye.com/blog/1965515

    jrebel 6.4.0 破解版

    jrebel 6.4.0 破解版 热部署 Tomcat eclipse 直接安装

    jrebel-idea6.4.8

    jrebel-idea6.4.8 idea jetty tomcat 热部署

    Jrebel 破解图文教程

    JRebel是一款JAVA虚拟机插件,它使得JAVA程序员能在不进行重部署的情况下,即时看到代码的改变对一个应用程序带来的影响。Jrebel 可快速实现热部署,节省了大量重启时间,提高了个人开发效率。

    Tomcat热部署配置说明及工具

    重启Tomcat即可,以后调试就方便了!替换.class文件就不用再重启Tomcat了。

    JRebel插件离线安装

    IDEA上原生是不支持热部署的,一般更新了 Java 文件后要手动重启 Tomcat 服务器,才能生效,浪费不少生命啊。目前对于idea热部署最好的解决方案就是安装JRebel插件,这样不论是更新 class 类还是更新 Spring 配置...

    jrebel热部署工具-eclipse

    web开发,修改java文件之后,就得重新部署或者重新启动tomcat.

    Jrebel 破解版

    JRebel是一款JAVA虚拟机插件,它使得JAVA程序员能在不进行重部署的情况下,即时看到代码的改变对一个应用程序带来的影响。Jrebel 可快速实现热部署,节省了大量重启时间,提高了个人开发效率。

    热部署jrebel

    本jrebel.jar版本为6.0.3,直接将该jar下载到磁盘中,并配置到tomcat中即可,配置示例如下: -noverify -javaagent:D:\javarebel\jrebel.jar -Drebel.spring_plugin=true -Drebel.struts2-plugin=true

Global site tag (gtag.js) - Google Analytics