jetty debug 启动 jettyconfig配置文件
@Testpublic void serverStrart() throws Exception {Server server = new Server();XmlConfiguration configuration = new XmlConfiguration(new File(System.getProperty("user.dir")+"/etc/jetty_config.xml").toURI().toURL());configuration.configure(server);server.start();server.join();}
<?xml version="1.0" encoding="GBK"?><!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"><Configure id="Server" class="org.mortbay.jetty.Server"><Set name="ThreadPool"><New class="org.mortbay.thread.BoundedThreadPool"><Set name="minThreads">10</Set><Set name="maxThreads">250</Set><Set name="lowThreads">25</Set></New></Set><Property name="org.mortbay.util.URI.charset" default="GBK"/><Call name="addConnector"><Arg><New class="org.mortbay.jetty.nio.SelectChannelConnector"><Set name="port"><SystemProperty name="jetty.port" default="8888" /><!-- 端口号 --></Set><Set name="maxIdleTime">30000</Set><Set name="Acceptors">2</Set><Set name="statsOn">false</Set><Set name="confidentialPort">8443</Set><Set name="lowResourcesConnections">5000</Set><Set name="lowResourcesMaxIdleTime">5000</Set></New></Arg></Call><Set name="sessionIdManager"><New class="org.mortbay.jetty.servlet.HashSessionIdManager"><Set name="workerName">node1</Set></New></Set><Set name="handler"><New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection"><Set name="handlers"><Array type="org.mortbay.jetty.Handler"><Item><New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection" /></Item><Item><New id="DefaultHandler" class="org.mortbay.jetty.handler.DefaultHandler" /></Item><Item><New id="RequestLog" class="org.mortbay.jetty.handler.RequestLogHandler" /></Item></Array></Set></New></Set><Set name="handler"><New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection"><Set name="handlers"><Array type="org.mortbay.jetty.Handler"><Item><New class="org.mortbay.jetty.webapp.WebAppContext"><Set name="contextPath">/</Set><!-- ContextPath --><Set name="resourceBase">F:/EDev/OA/Code/webapps/OA</Set><!-- Web应用根目录 --><Call name="addServlet"><Arg>org.mortbay.jetty.servlet.DefaultServlet</Arg><Arg>/</Arg></Call><!-- 增加其它的Servlet --></New></Item></Array></Set></New></Set><Set name="UserRealms"><Array type="org.mortbay.jetty.security.UserRealm"/></Set><Set name="stopAtShutdown">true</Set><Set name="sendServerVersion">true</Set><Set name="gracefulShutdown">1000</Set></Configure>
jetty debug 启动 jettyconfig配置文件的更多相关文章
- maven eclipse jetty debug
可以通过查看最近版本: http://mvnrepository.com/artifact/org.eclipse.jetty/jetty-server http://search.maven.org ...
- myeclipse配置下tomcat debug启动很无比慢
myeclipse配置下tomcat debug启动很无比慢,而run启动很快今天照常使用MyEclipse 6.5 Blue Edition进行开发,但是却遇到一个怪问题.在MyEclipse环境下 ...
- gradle中使用嵌入式(embedded) tomcat, debug 启动
在gradle项目中使用embedded tomcat. 最开始部署项目需要手动将web项目打成war包,然后手动上传到tomcat的webapp下,然后启动tomcat来部署项目.这种手动工作通常还 ...
- tomcat中debug启动和start启动的区别
debug启动tomcat:修改代码不加方法,不加参数,只是单纯的修改方法,不用重启tomcat(热部署). start启动tamcat:修改代码需要重启tomcat.
- 意想不到的的异常-由于eclipse和tomcat的交互出错-eclipse断点导致debug启动缓慢
足足启动了200多秒,正赶上hibernate 的使用上全部换使用方式,修改了很多代码.赶在这个节骨点上,出现debug 启动时卡在hibernate 启动的地方不动了,也没掉到debug断点的地方. ...
- eclipse中tomcat可以start启动,无法debug启动的解决
设置断点,进行程序调试,但是debug启动tomcat,却无法启动,并且会报超时异常. 原因可能是eclipse和tomcat启动时读取文件发生冲突 去掉所有的断点,然后重新debug启动,再设置断点 ...
- jetty debug修改 java static 静态变量值不会生效
在jetty debug模式下修改static静态变量值不会重新Load 因为jetty是嵌入式web容器,static静态变量是全局的,如果想生效,就必须重启jetty 在热部署的时候tomcat会 ...
- jetty 代码启动
jetty代码启动 jetty 版本为:jetty-distribution-8.1.16.v20140903 public class ServerStart extends Server { @T ...
- springboot 选择启动某个配置文件
选择启动某个配置文件 Spring Boot配置文件提供了隔离一部分应用程序配置的方法,并可使其仅在某指定环境可用.任何有@Component和@Configuration注解的Bean都用@prof ...
随机推荐
- [Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'beginTime';
依照https://stackoverflow.com/questions/23702041/failed-to-convert-property-value-of-type-java-lang-st ...
- 修改linux 最大文件限制数 ulimit
1)修改当前交互终端的limit值 查询当前终端的文件句柄数: ulimit -n 回车,一般的系统默认的1024. 修改文件句柄数为65535,ulimit -n 65535.此时系统的文件句柄数为 ...
- 老男孩linux实战培训初级班第二次课前考试题
################################################################ 本文内容摘录于老男孩linux实战运维培训中心课前考试题(答案部分) ...
- Mysql DBA 20天速成教程
Mysql DBA 20天速成教程 基本知识1.mysql的编译安装2.mysql 第3方存储引擎安装配置方法3.mysql 主流存储引擎(MyISAM/innodb/MEMORY)的特点4.字符串编 ...
- 【MySQL】MySQL存储过程介绍
目录结构: contents structure [-] 存储过程简介 关于MySQL的存储过程 MySQL存储过程的创建 格式 声明分割符 参数 变量 注释 MySQL存储过程的调用 MySQL存储 ...
- AndroidStudio升级到2.3版本无法编译的解决方法
上周五as提示更新,于是为了体验新功能还在编码过程中就迫不及待的点击了更新,公司网很快,十几分钟就下载好,然后一重启就懵逼了,提示是否更改依赖版本到2.3以及升级gradle到3.3,点了确定就一直在 ...
- 【转】完全用Linux工作
我已经半年没有使用 Windows 的方式工作了.Linux 高效的完成了我所有的工作. NU/Linux 不是每个人都想用的.如果你只需要处理一般的事务,打游戏,那么你不需要了解下面这些了. 我不是 ...
- duilib 的IE浏览器控件去边框和去滚动栏的代码
转载请说明原出处,谢谢~~ 近些天在duilib群里常常有朋友问起,怎么让duilib的IE控件能够去边框.去滚动栏的问题,或者是怎样去控件IE控件的行为.为了避免反复的回答,我就写一篇博文,把处理方 ...
- 替代crontab,任务计划统一集中管理系统cronsun简介
一.背景 crontab 是 Linux 系统里面最简单易用的定时任务管理工具,相信绝大多数开发和运维都用到过.在咱们公司,很多业务系统的定时任务都是通过 crontab 来定义的,时间长了后会发现存 ...
- 增量式pid和位置式PID参数整定过程对比
//增量式PID float IncPIDCalc(PID_Typedef* PIDx,float SetValue,float MeaValue)//err»ý·Ö·ÖÀë³£Êý { PIDx-& ...