zoukankan      html  css  js  c++  java
  • resin容器更改JDK

    更改resin的jdk版本,找到resin的配置文件:Resincontribinit.resin文件,找到

    JAVA_HOME=@JAVA_HOME@
    RESIN_HOME=@resin_home@
    

     在Resinin下httpd.sh中配置javahome;

     JAVA_HOME=/usr/weaver/jdk1.6.0_27
     export JAVA_HOME

     附录:resin3.1 在jdk1.6下的jvm优化参数:

    <!--
    
    - The JVM arguments
    
    -->
    
    <jvm-arg>-Xmx1024m</jvm-arg>
    
    <jvm-arg>-Xms1024m</jvm-arg>
    
    <jvm-arg>-Xss1m</jvm-arg>
    
    <jvm-arg>-Xmn100M</jvm-arg>
    
    <jvm-arg>-XX:PermSize=64M</jvm-arg>
    
    <jvm-arg>-XX:SurvivorRatio=8</jvm-arg>
    
    <jvm-arg>-XX:MaxTenuringThreshold=20</jvm-arg>
    
    <jvm-arg>-XX:+UseParNewGC</jvm-arg>
    
    <jvm-arg>-XX:+UseConcMarkSweepGC</jvm-arg>
    
    <jvm-arg>-XX:+UseCMSCompactAtFullCollection</jvm-arg>
    
    <jvm-arg>-XX:CMSFullGCsBeforeCompaction=1</jvm-arg>
    
    <jvm-arg>-XX:-CMSParallelRemarkEnabled</jvm-arg>
    
    <jvm-arg>-XX:CMSInitiatingOccupancyFraction=50</jvm-arg>
    
    <jvm-arg>-Xloggc:/data/logs/resin/gc_resin_88.log</jvm-arg>
    
    <jvm-arg>-XX:-UseGCOverheadLimit</jvm-arg>
    
    <jvm-arg>-Djava.awt.headless=true</jvm-arg>
    
    <jvm-arg>-J-server</jvm-arg>
    
    <jvm-arg>-Xdebug</jvm-arg>
    
    <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>resin3.1 在jdk1.8下的jvm优化参数:<!--
    
    - The JVM arguments
    
    -->
    
    <jvm-arg>-Xmx1024m</jvm-arg>
    
    <jvm-arg>-Xms1024m</jvm-arg>
    
    <jvm-arg>-Xss1m</jvm-arg>
    
    <jvm-arg>-Xmn100M</jvm-arg>
    
    <jvm-arg>-XX:SurvivorRatio=8</jvm-arg>
    
    <jvm-arg>-XX:MaxTenuringThreshold=15</jvm-arg>
    
    <jvm-arg>-XX:+UseParNewGC</jvm-arg>
    
    <jvm-arg>-XX:+UseConcMarkSweepGC</jvm-arg>
    
    <jvm-arg>-XX:+UseCMSCompactAtFullCollection</jvm-arg>
    
    <jvm-arg>-XX:CMSFullGCsBeforeCompaction=1</jvm-arg>
    
    <jvm-arg>-XX:-CMSParallelRemarkEnabled</jvm-arg>
    
    <jvm-arg>-XX:CMSInitiatingOccupancyFraction=50</jvm-arg>
    
    <jvm-arg>-Xloggc:/data/logs/resin/gc_resin_88.log</jvm-arg>
    
    <jvm-arg>-XX:-UseGCOverheadLimit</jvm-arg>
    
    <jvm-arg>-Djava.awt.headless=true</jvm-arg>
    
    <jvm-arg>-J-server</jvm-arg>
    
    <jvm-arg>-Xdebug</jvm-arg>
    
    <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg> 

    当然这里需要根据自身情况适当调整。

  • 相关阅读:
    Codeforces Round #624 (Div. 3) D. Three Integers
    Codeforces Round #624 (Div. 3) C. Perform the Combo(前缀和)
    Codeforces Round #624 (Div. 3) B. WeirdSort(排序)
    Codeforces Round #624 (Div. 3) A. Add Odd or Subtract Even(水题)
    洛谷P1130红牌(简单DP)
    洛谷P1044栈(DP)
    Codeforces 1315C Restoring Permutation
    MATLAB字符串处理
    MATLAB矩阵操作和算术运算符
    MATLAB基本概念和变量
  • 原文地址:https://www.cnblogs.com/liuyk-code/p/6672561.html
Copyright © 2011-2022 走看看