tomcat参数配置
2016-02-16 16:25
609 查看
参考http://tomcat.apache.org/tomcat-7.0-doc/config/executor.html中配置参数
The default implementation supports the following attributes:
还有一个参数是 acceptCount
当tomcat起动的线程数达到最大时,接受排队的请求个数。默认值为100
The default implementation supports the following attributes:
Attribute | Description |
---|---|
threadPriority | (int) The thread priority for threads in the executor, the default is 5(the value of the Thread.NORM_PRIORITYconstant) |
daemon | (boolean) Whether the threads should be daemon threads or not, the default is true |
namePrefix | (String) The name prefix for each thread created by the executor. The thread name for an individual thread will be namePrefix+threadNumber |
maxThreads | (int) The max number of active threads in this pool, default is 200 |
minSpareThreads | (int) The minimum number of threads always kept alive, default is 25 |
maxIdleTime | (int) The number of milliseconds before an idle thread shutsdown, unless the number of active threads are less or equal to minSpareThreads. Default value is 60000(1 minute) |
maxQueueSize | (int) The maximum number of runnable tasks that can queue up awaiting execution before we reject them. Default value is Integer.MAX_VALUE |
prestartminSpareThreads | (boolean) Whether minSpareThreads should be started when starting the Executor or not, the default is false |
threadRenewalDelay | (long) If a ThreadLocalLeakPreventionListener is configured, it will notify this executor about stopped contexts. After a context is stopped, threads in the pool are renewed. To avoid renewing all threads at the same time, this option sets a delay between renewal of any 2 threads. The value is in ms, default value is 1000ms. If value is negative, threads are not renewed. |
ibute | Description |
---|---|
线程优先级 | (int) 线程在执行器中的优先级, 默认值为5 (the value of the Thread.NORM_PRIORITYconstant) |
守护进程 | (boolean) 线程是否应有守护线程, 默认为true |
namePrefix | (String) The name prefix for each thread created by the executor. The thread name for an individual thread will be namePrefix+threadNumber |
最大线程数 | (int) 线程池中最大的活跃线程数,默认值200 |
最小备用线程 | (int) 保持存活的最小线程数,默认值25 |
线程最大闲置时间 | (int) 大于最小备用线程小于最大线程数,闲置线程的存活时间,. 默认60000(1 minute)1分钟 |
maxQueueSize | (int) The maximum number of runnable tasks that can queue up awaiting execution before we reject them. Default value is Integer.MAX_VALUE |
prestartminSpareThreads | (boolean) Whether minSpareThreads should be started when starting the Executor or not, the default is false |
threadRenewalDelay | (long) If a ThreadLocalLeakPreventionListener is configured, it will notify this executor about stopped contexts. After a context is stopped, threads in the pool are renewed. To avoid renewing all threads at the same time, this option sets a delay between renewal of any 2 threads. The value is in ms, default value is 1000ms. If value is negative, threads are not renewed. |
当tomcat起动的线程数达到最大时,接受排队的请求个数。默认值为100
相关文章推荐
- java-模拟tomcat服务器
- i-jetty环境搭配与编译
- 实现单Tomcat多Server配置
- 生产环境下的Tomcat配置
- Linux部署Tomcat服务器
- jenkins------结合maven将svn项目自动部署到tomcat下
- 如何搞定tomcat这只喵~
- tomcat在opensuse下开机自启失败的原因分析及解决方法
- jsp项目中更改tomcat的默认index.jsp访问路径的方法
- Tomcat 多端口 多应用
- tomcat 5.0 + apache 2.0 完全安装步骤详解
- Tomcat安全设置 win2003 下tomcat权限限制
- Jsp和PHP共用80端口整合Apache和Tomcat(访问时无需加端口号)
- Tomcat服务器 安全设置第1/3页
- tomcat 6.0.20在一个机器上安装多个服务的方法
- Tomcat 5.5 数据库连接池配置
- Tomcat内存溢出分析及解决方法
- apache tomcat 一个网站多域名的实现方法
- Tomcat无法加载css和js等静态资源文件的解决思路