Tomcat6.x performance parameters adjustment

2010-04-24  来源:本站原创  分类:Java  人气:231 

1. Hardware and software environment:
Application Server: 64 Windows2003 Server 2cpu 4GB RAM
JDK version: 64 1.5.22
Tomcat version: 6.0.16

2.startup.bat documents added to set the memory parameters:

SET CATALINA_OPTS=-Xms2048m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m

3. Set the thread pool and network connections

<!-- The thread pool  -->
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="300" minSpareThreads="100"/>
    <!-- Network connections  -->
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="9443"
               executor="tomcatThreadPool"
               compression="on"
               noCompressionUserAgents="gozilla, traviata"
               compressableMimeType="text/html,text/xml,text/javascript,text/css" />

4. Parameters explained:
-Xms [initialize the heap memory size]
-Xmx [You can use the maximum heap memory]
PermSize [permanent generated objects, such as: class objects, methods, these may be reflective object (reflective) the initial distribution of object memory, this memory is not included in Heap (heap memory) area into]
MaxPermSize [permanent generate maximum amount of memory used by the object]
maxThreads [the maximum number of threads is limited by the number of operating system support for network connections, generally around 2,000 windows, linux around 1000]
minSpareThreads [minimum idle threads, thread pool threads initial]
maxSpareThreads [maximum idle thread, once the number of idle threads exceeds this number, tomcat will automatically close a thread no longer needed]
connectionTimeout [Network Connection timeout (ms), 0 to never time-out]
compression [compression and transmission, to slightly improve the server and client network transmission efficiency]

5. Above parameters to adjust for information purposes only, actual project should be under the actual operation of the system can be adjusted using the built-in monitoring tools tomcat server performance monitoring, but first need to conf / tomcat-users.xml file, do the following configuration:

<role rolename="manager"/>
<user username="admin" password="admin" roles="manager"/>

And then restart the tomcat, and access can address http://IP:PORT/manager/status

相关文章
  • Tomcat6.x performance parameters adjustment 2010-04-24

    1. Hardware and software environment: Application Server: 64 Windows2003 Server 2cpu 4GB RAM JDK version: 64 1.5.22 Tomcat version: 6.0.16 2.startup.bat documents added to set the memory parameters: SET CATALINA_OPTS=-Xms2048m -Xmx2048m -XX:PermSize=

  • [Performance optimization] linu adjustable performance parameters introduced at all levels 2010-09-03

    Under the last brief introduction, linux the cpu, memory, disk i / o; net i / o performance monitoring tools; this section of the introduction, these levels when the bottlenecks and how to adjust the kernel, there are those kernel parameters can be a

  • Linux adjustable performance parameters introduced at all levels 2010-09-14

    Under the last brief introduction, linux the cpu, memory, disk i / o; net i / o performance monitoring tools; this section of the introduction, these levels when the bottlenecks and how to adjust the kernel, there are those kernel parameters can be a

  • Oracle High Performance SQL adjustment. Pdf 2010-03-26

    Oracle High Performance SQL adjustment. Pdf

  • Tomcat memory. Connections to set the performance parameters 2010-05-11

    Keywords: tomcat performance tuning middleware server The default parameters are not suitable for production use, so need to modify some parameters 1, modify the startup memory parameters, and specify the JVM time zone (in the windows server 2008 les

  • Oracle performance parameters View 2010-04-03

    0, the database parameter properties col PROPERTY_NAME format a25 col PROPERTY_VALUE format a30 col DESCRIPTION format a100 select * from database_properties; select * from v $ version; 1, find the current session of the SID, SERIAL # SELECT Sid, Ser

  • Oracle sql performance tuning adjustment 2010-06-08

    1. The types of ORACLE optimizer ORACLE optimizer There are 3 kinds: a. RULE (rule) b. COST (based on cost) c. CHOOSE (optional) Set the default optimizer, you can file OPTIMIZER_MODE init.ora parameters on the various statements, such as RULE, COST,

  • Monitoring system CPU, memory and other performance parameters shell program 2010-08-31

    #! / Bin / sh # Used to monitor system information such as cpu and memory # Usage: mytop [pid] [sleeptime (option)] [log_alias (option)] # Parameters: pid (must) If you need to monitor system performance, then please [pid] is set to 0 # Sleeptime (op

  • AXI Performance - System Adjustment 2010-06-27

    The effective realization of the application, the system further enhance the overall performance of the system takes into account has become a problem. System-level adjustments, including key components are: Communication I / O Depends on the type of

  • Tomcat performance parameters 2010-10-21

    maxThreads: Tomcat can handle the maximum number of requests (Tomcat is a thread corresponds to a request.) Number of threads can generally use "number of concurrent users * number of operations per second, the average operating time * system" t

  • System performance parameters 2010-10-28

    Common indicators Cache - Level 2 cache. Data Map Hits% Logical Disk * -% Free Space Memory * - Counters: Pages / Sec - How much RAM and virtual memory on the hard drive are being swapped. If above 5 or 6 on average, more RAM is needed. Network inter

  • [Reserved] HP-UX kernel parameters adjustment 2011-01-24

    Kernel configuration commands kcmodule: display, adjust the system kernel module kctune: display, modify kernel parameters kcweb: kernel configuration web tool (System includes mozilla browser), can be used to monitor system resources (running kernel

  • Decision of MyISAM Select & Insert & Update concurrent performance parameters 2011-02-23

    concurrent_insert by looking at the show variables like '% concurrent%' 0: not complicated, Select, insert only between the serial execution 1: The table has holes (left by deleted records) cases, blocking insert; table in the case of non-empty, Inse

  • Introduction to MySQL Performance Optimization of parameters 2010-12-07

    Introduction to MySQL Performance Optimization of parameters Increasing website traffic, MySQL naturally become the bottleneck, so recently I have been studying the optimization of MySQL, MySQL comes to mind is the natural first step in the system pa

  • About MySQL Performance Optimization of parameters 2010-12-07

    About MySQL Performance Optimization of parameters Website traffic increasing, MySQL a natural bottleneck, so recently I have been studying the optimization of MySQL, the first step is natural to think of the MySQL system parameter optimization, as a

  • Oracle initialization parameters which affect system performance 2011-05-24

    Oracle initialization parameters which affect system performance Parameters to understand 2008-10-17 12:01:50 Read 21 Comments 0 Word Count: System Global Area (SGA) is assigned to an Oracle instance that contains an Oracle database control informati

  • Sybase configuration parameters 2010-03-25

    Sybase configuration parameters sp_configure 'max online engines', 4 go - Configure the number of boot cpu sp_configure 'number of engines at startup', 4 go - Configure the maximum amount of memory sp_configure 'max memory', 2097151 go - The largest

  • ORACLE Database Performance Optimization of 2010-07-13

    ORACLE Database Performance Optimization Usually a database-based application optimization should be targeted to the three stages: application development stage; application deployment stage; application adjustment. Optimization of the contents of th

  • Oracle optimization and performance tuning 2010-10-13

    Oracle database performance analysis and evaluation of the main database throughput, the database user response time indices. Database user response time and service time can be divided into system and user wait time two, namely: System database user

  • AIX 6.1 new features of the RAS, virtualization, storage and file systems, network enhancement, parameter adjustment (Zhuantie) 2010-12-02

    AIX 6.1 new features of the RAS AIX 6.1 in the high availability and so add the following features: 1, RAS component framework • RTEC (Run-Time Error Checking) to the system hardware and software fault detection • CT (Component Tracing) system for mo