`
itace
  • 浏览: 178287 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

Tomcat8配置信息等

 
阅读更多

 

查询tomcat并发连接数

netstat -na | grep ESTAB | grep 8080 | wc -l

 

http://tomcat.apache.org/tomcat-8.0-doc/config/http.html

 

maxThreads

The maximum number of request processing threads to be created by this Connector, which therefore determines the maximum number of simultaneous requests that can be handled. If not specified, this attribute is set to 200. If an executor is associated with this connector, this attribute is ignored as the connector will execute tasks using the executor rather than an internal thread pool.

 

maxConnections

The maximum number of connections that the server will accept and process at any given time. When this number has been reached, the server will accept, but not process, one further connection. This additional connection be blocked until the number of connections being processed falls below maxConnections at which point the server will start accepting and processing new connections again. Note that once the limit has been reached, the operating system may still accept connections based on the acceptCount setting. The default value varies by connector type. For BIO the default is the value ofmaxThreads unless an Executor is used in which case the default will be the value of maxThreads from the executor. For NIO and NIO2 the default is 10000. For APR/native, the default is 8192.

Note that for APR/native on Windows, the configured value will be reduced to the highest multiple of 1024 that is less than or equal to maxConnections. This is done for performance reasons.
If set to a value of -1, the maxConnections feature is disabled and connections are not counted.

分享到:
评论

相关推荐

    tomcat8配置

    【Tomcat8配置详解】 Tomcat8是Apache软件基金会的Jakarta项目下的一个开源Web服务器和Servlet容器,它是Java EE应用程序的标准实现。由于MyEclipse10默认可能不支持Tomcat8,因此需要进行手动配置才能顺利运行。...

    tomcat及其配置文件

    Tomcat的核心配置文件之一是`server.xml`,这个文件位于Tomcat的`conf`目录下,它是Tomcat服务器的全局配置文件,定义了服务器的端口号、数据源、连接器、虚拟主机、Context等关键组件的设置。例如,你可以在这里...

    tomcat常用配置信息详解

    【正文】 ...以上只是Tomcat配置中的一部分内容,实际使用中还需要根据具体需求进行细致的调整和优化。通过深入理解和熟练应用这些配置,可以有效地管理和优化Tomcat服务器,提升Web应用的稳定性和性能。

    Tomcat配置方法 Tomcat配置方法 Tomcat配置方法

    2. **server.xml**:这是Tomcat的主要配置文件,定义了服务器的端口(如HTTP的8080,HTTPS的8443)、服务、连接器和引擎等。你可以根据需要更改这些设置。 3. **context.xml**:每个Web应用可以有自己特定的上下文...

    Linux下JDK+Tomcat安装配置

    Linux下JDK+Tomcat安装配置 在本文档中,我们将详细介绍如何在CentOS系统上安装和配置JDK和Tomcat环境。以下是整个安装和配置过程的步骤。 一、下载所需文件 在开始安装之前,需要下载两个必要的文件:jdk-7u25-...

    Tomcat连接池配置.doc

    5. 配置局部 SERVLET 信息环境 6. 新建 PoolGlobal.xml 和 PoolLocal.xml 文档 7. 将 classes12.jar 包放在 TOMCAT\common\lib 路径下 8. 在 JAVA 中调用连接池 三、Tomcat 连接池配置的原理 Tomcat 连接池配置的...

    tomcat集群配置

    综上所述,Tomcat集群配置涉及到多个层面,包括负载均衡策略、会话管理、故障处理等。正确配置和维护Tomcat集群,能显著提升Web应用的性能和可靠性,满足高并发场景的需求。在实际操作中,务必结合具体情况灵活调整...

    Tomcat服务器配置 视频教程 Tomcat视频

    5. **配置文件详解**:重点讲解`server.xml`,这是Tomcat的主要配置文件,包括端口号设置、Connector(连接器)配置、Context(应用上下文)定义等。还会涉及`web.xml`,它是Web应用的部署描述符,定义了应用的全局...

    TOMCAT8简单配置说明

    ### TOMCAT8简单配置说明 #### 一、Apache Tomcat简介 Apache Tomcat是一款开源的Servlet容器,它实现了Servlet和JavaServer Pages等技术规范,并提供了作为Web服务器的一些特性,但其主要功能还是作为应用服务器来...

    tomcat安装配置详解

    tomcat安装配置详解,tomcat安装配置详解,tomcat安装配置详解

    Windows10上安装tomcat8详细步骤含常用设置,环境变量,内存配置等

    在Windows10操作系统中安装Apache Tomcat 8是一项常见的任务,尤其对于开发和测试Java Web应用程序的用户来说。以下是一个详细的步骤指南,涵盖了从下载到配置的全过程,以及一些常用的设置,包括环境变量和内存配置...

    tomcat下配置https环境

    在生成密钥时,我们需要输入一些信息,例如您的名字、单位名称、城市名称等。这些信息将用于生成证书。 二、配置 Tomcat 在生成密钥后,我们需要配置 Tomcat 以使用 HTTPS 协议。我们需要在 server.xml 文件中添加...

    java配置jdk配置tomcat配置

    java配置jdk配置tomcat配置 所有关于java的配置 path classpath配置都在

    tomcat7,tomcat8,tomcat9

    Tomcat7、Tomcat8和Tomcat9是不同版本的Tomcat,每个版本都有其特性和改进。 **Tomcat7**: Tomcat7是2011年发布的,它主要支持Java Servlet 3.0和JSP 2.2规范。这个版本引入了一些重要改进,包括增强的安全性、更...

    tomcat6.0配置心得

    在上面的配置中,我们可以看到 Tomcat 6.0 的连接池配置使用的是 Resource 节点,其中包括了数据库连接的基本信息,如用户名、密码、驱动程序名称、数据库 URL 等。 二、显示中文问题 在 JSP 中,我们经常需要设置...

    idea中Tomcat配置遇到的错误.docx

    在 IDEA 中创建 Maven 项目时,可能会遇到 Tomcat 配置错误的问题,本文将详细介绍 Tomcat 配置遇到的错误、错误原因、解决方案,并讨论 Maven 项目的创建、版本选择、Maven 的 Tomcat 配置等相关知识点。...

    apache+tomcat集群配置

    本文将详细介绍如何配置 Apache + Tomcat 集群,包括安装 Apache 和 Tomcat 服务器、配置 mod_jk 模块、配置 Apache 和 Tomcat 服务器、配置负载均衡控制器等。 一、安装 Apache 服务器 首先,需要安装 Apache ...

Global site tag (gtag.js) - Google Analytics