文档库

最新最全的文档下载
当前位置:文档库 > java相关印证

java相关印证

1 、80% 的物理内存

/home/tomcat/bin/catalina.sh 中添加

JAVA_OPTS='-Xms256m -Xmx512m'

管理机:

JAVA_OPTS='-Xms256m -Xmx1024m'

支撑机:

JAVA_OPTS='-Xms256m -Xmx768m'

测试机:

export LD_ASSUME_KERNEL = 2.4.1

2 、Tomcat 自启动设置:

/etc/rc.local 文件

sshd

touch /var/lock/subsys/local

/etc/init.d/mysql start

export JAVA_HOME=/home/j2sdk

cd /home/tomcat/bin

。/startup.sh

3 、MySQL 自启动设置:

/etc/rc.local 文件

/etc/init.d/mysql start

3 、设置虚拟路径:

/home/tomcat/conf/server.xml 文件:

4 、连接数配置:

/home/tomcat/conf/server.xml 文件:

port="8080" minProcessors="5" maxProcessors="75"

enableLookups="true" redirectPort="8443"

acceptCount="100" debug="0" connectionTimeout="20000"

useURIValidationHack="false" disableUploadTimeout="true"

URIEncoding="UTF-8"/>

<!—— Note :To disable connection timeouts,set connectionTimeout value to 0 ——>

<!—— Define a SSL Coyote HTTP/1.1 Connector on port 8443 ——>

<!——

port="8443" minProcessors="5" maxProcessors="75"

enableLookups="true"

acceptCount="100" debug="0" scheme="https" secure="true" useURIValidationHack="false" disableUploadTimeout="true">

5 、管理机root.xml 配置

/home/tomcat/bin/root.xml

<?xml version="1.0" encoding="UTF-8"?>

com.mysql.jdbc.Driver

jdbc:mysql://192.168.16.20/netbar

useUnicode=true

characterEncoding=gbk

maxRows=10000

root

gtigstarcenter

10