Linux下Tomcat & JVM 优化[实测]

| No Comments | No TrackBacks

在/etc/profile下添加

PATH=$PATH:$HOME/bin
JAVA_HOME=/usr/local/suchasplus/jdk
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=/usr/local/suchasplus/jdk/lib/tools.jar
JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:PermSize=256M -XX:MaxNewSize=512m -XX:MaxPermSize=512m "
export PATH
export JAVA_HOME
export CLASSPATH
export JAVA_OPTS

在Tomcat的conf/server.xml中
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="125" minSpareThreads="25" maxSpareThreads="75"

No TrackBacks

TrackBack URL: http://blog.suchasplus.com/mt/mt-tb.cgi/179

Leave a comment

About this Entry

This page contains a single entry by suchasplus published on August 20, 2008 10:27 PM.

site-python-install howto was the previous entry in this blog.

基于Google搜索引擎得到的飞信服务器及性能数据 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

OpenID accepted here Learn more about OpenID
Powered by Movable Type 5.2.7