文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>resin的配置和应用

resin的配置和应用

时间:2009-05-07  来源:hancang2000

总是要去下载jdk的东西,麻烦干脆上传到这里,没事就在这里下载得了,配合resin的jdk和配合tomcat的jre

RESIN配合mysql的语法
1    <database>
                <jndi-name>jdbc/mysql</jndi-name>
                <driver>
                        <type>com.mysql.jdbc.Driver</type>
                        <url>jdbc:mysql://ip:3306/member?useUnicode=true&amp;characterEncoding=GBK&amp;connectTimeout=5000</url>
                        <user></user>
                        <password></password>
                </driver>
                <max-connections>45</max-connections>
                <max-idle-time>36</max-idle-time>
        </database>

2
           <database>
           <jndi-name>jdbc/mysql</jndi-name>
           <driver type="org.gjt.mm.mysql.Driver">
             <url>jdbc:mysql://localhost:3306/test</url>
             <user></user>
             <password></password>
            </driver>
            <prepared-statement-cache-size>8</prepared-statement-cache-size>
            <max-connections>20</max-connections>
            <max-idle-time>30s</max-idle-time>
          </database>

resin配合oracle的语法
<database>
                <jndi-name>jdbc/oracle</jndi-name>
                <driver>
                        <type>oracle.jdbc.driver.OracleDriver</type>
                        <url>jdbc:oracle:thin:@ip:1521:test</url>
                        <user></user>
                        <password></password>
                </driver>
                <max-connections>115</max-connections>
                <max-idle-time>30</max-idle-time>
        </database>

resin的一些配置
<cluster id="app-tier">
                <root-directory>.</root-directory>
                <server-default>
                        <http address="*" port="8080"/>        
                        <jvm-arg>-XX:MaxPermSize=192m</jvm-arg>
                        <jvm-arg>-server</jvm-arg>
                        <jvm-arg>-d32</jvm-arg>
                        <jvm-arg>-Xmx3G</jvm-arg>
                        <jvm-arg>-Xms3G</jvm-arg>      
                        <jvm-arg>-Xss128k</jvm-arg>
                        <jvm-arg>-verbosegc</jvm-arg>
                        <jvm-arg>-XX:LargePageSizeInBytes=4M</jvm-arg>
                        <jvm-arg>-Xdebug</jvm-arg>
                        <jvm-arg>-Xnoagent</jvm-arg>
                        <jvm-arg>-Djava.compiler=NONE</jvm-arg>
                        <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
                        <watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>
                        <watchdog-port>6600</watchdog-port>
                        <memory-free-min>100M</memory-free-min>
                        <thread-max>2560</thread-max>
                        <socket-timeout>120s</socket-timeout>
                        <keepalive-max>1300</keepalive-max>
                        <keepalive-timeout>5s</keepalive-timeout>
                </server-default>
                <server id="" address="127.0.0.1" port="6800"/>
               
                <web-app-default>
                        <cache-mapping url-pattern="/" expires="5s"/>
                        <cache-mapping url-pattern="*.gif" expires="60s"/>
                        <cache-mapping url-pattern="*.jpg" expires="60s"/>
                        <cache-mapping url-pattern="*.png" expires="60s"/>
                        <session-config>
                          <enable-url-rewriting>false</enable-url-rewriting>
                        </session-config>
                </web-app-default>
                <resin:import path="${resin.home}/conf/app-default.xml"/>
               
                <host-default>
                        <class-loader>
                                <compiling-loader path="WEB-INF/classes"/>
                                <library-loader path="WEB-INF/lib"/>
                        </class-loader>
                </host-default>
               
                <host id="" root-directory=".">
                        <web-app id="/" root-directory="/usr/db/htdocs/test"/>
                        <access-log path="${resin.home}/logs/access_1.log" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' rollover-period="1W"/>
                </host>
        </cluster>
相关阅读 更多 +
排行榜 更多 +
味子夫

味子夫

购物比价 下载
恩猫

恩猫

购物比价 下载
街头纷争

街头纷争

动作格斗 下载