new loadtest server settings更新中...
1) 同步Server时间crontab(root用户)
crontab -l
0 8 * * * /usr/sbin/ntpdate 172.18.133.201 | mail -s "Time Sync of ydctest03" root
2) 设置sar
[root@ydcvml03 cron.d]# cat /etc/cron.d/sysstat
#run system activity accounting tool every 1 minutes
#*/10 * * * * root /usr/lib/sa/sa1 1 1
*/1 * * * * root /usr/local/lib/sa/sa1 1 1
# generate a daily summary of process accounting at 23:50
50 23 * * * root /usr/local/lib/sa/sa2 -A
3) 去消dummy job
[root@ydcvmapp02 ~]# crontab -l
#set a cronjob to run
#"/usr/bin/cancel -a XXXXX" every 10 min. where XXXXX is the print queue name
10 * * * * /usr/bin/cancel -a dummy
4) Monitor JVM/Java Objects
在Weblogic启动脚本增加下列(%NGEN_HOME%/9.7.0-beta-4/domains/DOM_appserver01/bin/startWebLogic.sh),可以monitor用jconsole + TDA(Thread Dump Analyzer) or visualvm.
服务器端:
JAVA_OPTIONS="${JAVA_OPTIONS} -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=9090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
客户端:
jconsole -pluginpath tda.jar
or
visualvm.exe/JAVA_HOME/bin/jvisualvm.exe(jdk1.6 and above)
5) Monitor Weblogic(by tool Applications Manager)
-Dweblogic.disableMBeanAuthorization=true
-Dweblogic.management.anonymousAdminLookupEnabled=true