Skip to content


使用Oracle JRockit 提高tomcat性能

http://www.oracle.com/technology/software/products/jrockit/index.html

这里选择Oracle JRockit Real Time 3.1.2 for Java version 61 Linux x86-64 大概121M

http://download.oracle.com/otn/bea/jrockit/jrrt-3.1.2-1.6.0-linux-x64.bin

必需要登录后才能下载,wget不好使,用windows下载后再传到服务器上。

chmod u+x jrrt-3.1.2-1.6.0-linux-x64.bin
./jrrt-3.1.2-1.6.0-linux-x64.bin
根据提示一步步安装。
我安装在/usr/jrrt-3.1.2-1.6.0 目录下,做个软连接到/usr/jrrt
ln -s /usr/jrrt-3.1.2-1.6.0 /usr/jrrt

修改环境变量,如果之前有设置,只需修改JAVA_HOME到新路径
vi /etc/profile

  1. #set for j2sdk
  2.   JAVA_HOME=/usr/jrrt
  3.   export JAVA_HOME
  4.   CLASSPATH=$JAVA_HOME/jre/lib/ext/jcert.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/jpda.jar:$JAVA_HOME/lib/tools.jar
  5.   export CLASSPATH
  6.   PATH=.:$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
  7.   export PATH

关闭tomcat
source /etc/profile
启动tomcat,完成

参考:
http://javaworld.org.ru/java_2344.html

Posted in Tomcat, 技术.

Tagged with , .


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. Apache Tomcat 6.0.35 denial of service and information disclosure vulnerability | Information News linked to this post on 2012/06/03

    […] the Oracle JRockit is use , Oracle JRockit can improve tomcat performance The current version of Oracle JRockit 6 – R28.2.3 “Includes” JRockit Mission […]



Some HTML is OK

or, reply to this post via trackback.