본문 바로가기

emotional developer/detect-Web

Web Server timeout




1. Aapache


http.conf

#

# Timeout: The number of seconds before receives and sends time out.

#

Timeout 70



workers.properties


worker.tomcat.type=ajp13

worker.tomcat.port=8001

worker.tomcat.connect_timeout=1000

worker.tomcat.prepost_timeout=1000

worker.tomcat.socket_timeout=70

worker.tomcat.connection_pool_timeout=10

worker.tomcat.reply_timeout=1000



2. Tomcat


server.xml


  <Service name="Catalina">

    <Connector port="9001" protocol="HTTP/1.1"

               connectionTimeout="20000"

               URIEncoding="UTF-8"

               maxThreads="256" minSpareThreads="4" maxSpareThreads="50"

               debug="0"

               disableUploadTimeout="true"

               redirectPort="8443" />


    <Connector port="8001" protocol="AJP/1.3"

                enableLookups="false"

                acceptCount="100" debug="0"

                connectionTimeout="120000"

                useBodyEncodingForURI="true"

                maxPostSize="10485760"

                disableUploadTimeout="true"

                URIEncoding="UTF-8"

                minThreads="128" maxThreads="512"

                maxParameterCount="500"

                redirectPort="8443" />


    <Engine name="Catalina" defaultHost="localhost">

      <Host name="sojw.com"  appBase="webapps"

            deployOnStartup="false"

            unpackWARs="false" autoDeploy="false"

            xmlValidation="false" xmlNamespaceAware="false">


        <Context path="/" docBase="/doc_base" reloadable="false"/>

        <Context path="/managerAgent" debug="0" privileged="true" docBase="managerAgent.war" />

      </Host>

    </Engine>

  </Service>



반응형