tomcat免重启
1、打开eclipse中的tomcat,点击Arguments,在VM arguments:配置如下
-noverify -javaagent:D:\softbak\jar\jrebel4.0.2\jrebel.jar //下载一个jrebeljar包
-Drebel.dirs=D:\eclipse- workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\项目名称\WEB-INF\classes //目录指向项目的classes底下
-Drebel.spring_plugin=true //如果有spring插件则为true
-Drebel.struts2-plugin=true //如果有struts2插件则为true
-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=下面是默认的-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=
-Dcatalina.base="D:\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1" -Dcatalina.home="D:\eclipse-workspace\apache-tomcat-6.0.24" -Dwtp.deploy="D:\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps" -Djava.endorsed.dirs="D:\eclipse-workspace\apache-tomcat-6.0.24\endorsed"
去掉项目名访问:
1、tomcat6.0:<Host></Host>间加了一句<Context path="" docBase="/fts" debug="0" reloadable="true"/>
2、tomcat7.0 <Host></Host>间加了一句<Context path="/" docBase="fts" debug="0" reloadable="true"/>
<?xml version="1.0" encoding="utf-8"?> <Server port="8001" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.core.JasperListener" /> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <Service name="Catalina"> <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="1000" minSpareThreads="10"/> <Connector executor="tomcatThreadPool" port="8081" protocol="HTTP/1.1" maxHttpHeaderSize="8192" useBodyEncodingForURI="true" maxThreads="1000" enableLookups="false" redirectPort="8443" acceptCount="100" compression="off" compressionMinSize="2048" compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/> <Engine name="Catalina" defaultHost="localhost"> <Host name="localhost" appBase="webapps" unpackWARs="false" autoDeploy="false"> <Context path="" docBase="/data/wwwroot/alo" reloadable="false" crossContext="false" privileged="true"/> </Host> </Engine> </Service> </Server>
/data/app/apache-tomcat-7.0.20/bin/shutdown.sh -config conf/server_alo.xml /data/app/apache-tomcat-7.0.20/bin/startup.sh -config conf/server_alo.xml
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />这句话注意了,某些版本中没有这句话,tomcat7版本里面有,他注意是防止threadLocal内存泄漏。之前版本使用
>=6.0.24 |
In 6.0.24-6.0.26 TimerThread are stopped but it may lead to problems. Optional from 6.0.27 with theclearReferencesStopTimerThreads flag. Other threads may be stopped with theclearReferencesStopThreads flag, but it's unsafe. |
Fix the application to stop the thread when the application is stopped |
|
ContextClassLoader / Threads spawned by classes loaded by the common classloader |
>=6.0.24 |
In 6.0.24-6.0.26 TimerThread are stopped but it may lead to problems. Optional from 6.0.27 with theclearReferencesStopTimerThreads flag. Other threads may be stopped with theclearReferencesStopThreads flag, but it's unsafe. |
相关推荐
在Tomcat启动时会去webapps下访问默认ROOT目录下的应用程序,这就导致你始终不能直接访问的原因 切记切记切记,这才是关键 先将它原始就有的ROOT删掉 把 自己的项目包“oa.war” 改成 “ROOT.war” 即可,因为下面的...
Tomcat+JSP+MySQL经典配置实例
apache+mysql+php+phpadmin+zend+tomcat+jsp+perl+cgi.exeapache+mysql+php+phpadmin+zend+tomcat+jsp+perl+cgi.exeapache+mysql+php+phpadmin+zend+tomcat+jsp+perl+cgi.exe
基于Jsp+Tomcat+Filter+Servlet的学生管理系统 基于Jsp+Tomcat+Filter+Servlet的学生管理系统 基于Jsp+Tomcat+Filter+Servlet的学生管理系统 基于Jsp+Tomcat+Filter+Servlet的学生管理系统 基于Jsp+Tomcat+Filter+...
提高开发效率之tomcat免重启(随意更改java代码)提高开发效率之tomcat免重启(随意更改java代码)提高开发效率之tomcat免重启(随意更改java代码)提高开发效率之tomcat免重启(随意更改java代码)
基于 MySQL+Tomcat+Servlet+JSP 的简单作业管理系统 基于 MySQL+Tomcat+Servlet+JSP 的简单作业管理系统 基于 MySQL+Tomcat+Servlet+JSP 的简单作业管理系统 基于 MySQL+Tomcat+Servlet+JSP 的简单作业管理系统 基于...
jsp+tomcat+mysql+sevlet+javabean配置过程
tomcat+nginx +php整合笔记
Tomcat+memcached+Nginx实现session共享 Tomcat+memcached+Nginx实现session共享
JavaWeb网络爬虫(蜘蛛)源码(servlet+jsp+mysql+tomcat+eclipse+jdk) JavaWeb网络爬虫(蜘蛛)源码(servlet+jsp+mysql+tomcat+eclipse+jdk) JavaWeb网络爬虫(蜘蛛)源码(servlet+jsp+mysql+tomcat+eclipse+jdk) JavaWeb...
keepalived+nginx+tomcat+redis+mysql所需的jdk包,之前csdn不让上传超过200m得只能分开上传。
超级无敌web服务器 linux+apache+tomcat+mysql+jsp+php 整合安装 自己的安装过程,以前发表在新浪博客,现在换地盘了转过来... ...做好这个项目以后linux基本是入门了,学习更深入的东西也不是那么费力了
负载均衡nginx+tomcat+terracatta+nfs+mysql
2、本项目适合作为计算机、数学、电子信息等专业的课程设计、期末大作业和毕设项目,作为参考资料学习借鉴。 3、本资源作为“参考资料”如果需要实现其他功能,需要能看懂代码,并且热爱钻研,自行调试。 基于Jsp+...
Installshield 2010使用详解(SSH2+tomcat+mysql+jdk)
solr+ tomcat 项目整合!
tomcat+mysql+jdk脚本安装
redis缓存服务器Nginx+Tomcat+redis+MySQL实现session会话共享
java网站基础环境tomcat+mysql+redis.zip
linux下tomcat+JDK+redhat配置文档+安装软件linux下tomcat+JDK+redhat配置文档+安装软件linux下tomcat+JDK+redhat配置文档+安装软件linux下tomcat+JDK+redhat配置文档+安装软件linux下tomcat+JDK+redhat配置文档+...