首页 > 其他分享 >resin的配置优化

resin的配置优化

时间:2023-05-16 19:07:10浏览次数:50  
标签:tar 优化 配置 resin usr 3.1 path local


下载resin源码包 : resin-3.0.18.tar.gz
  [path]#cp resin-3.0.18.tar.gz /usr/local/
  [path]#cd /usr/local/
  [path]#tar -zxvf resin-3.0.18.tar.gz
  [path]#cd resin-3.0.18
  [path]#./configure –prefix=/usr/local/resin  --with-apxs=/usr/local/apache2/bin/apxs <如果需要与Apache整合必须有此选项>
  [path]#make && make install
   安装完成后, 修改resin.conf对应参数进行优化配置 .
     Resin优化选项 :
<!-- JVM参数设置 -->   
<jvm-arg>-Xmx2048m</jvm-arg>   
<jvm-arg>-Xss1024m</jvm-arg>   
<jvm-arg>-Xdebug</jvm-arg>   
<jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>   
<!-- Uncomment to enable admin heap dumps 去掉下面行以管理内存堆的倾倒 -->  
<!-- <jvm-arg>-agentlib:resin</jvm-arg>    -->   
<watchdog-arg>-Dcom.sun.management.jmxremote</watchdog-arg>  
<!-- 强制resin强制重起时的最小空闲内存 -->   
<memory-free-min>1M</memory-free-min>   
<!-- 最大线程数量. -->   
<thread-max>4000</thread-max>   
<!--  套接字等待时间 -->   
<socket-timeout>65s</socket-timeout>   
<!-- 配置 keepalive -->   
<keepalive-max>2500</keepalive-max>   
<keepalive-timeout>15s</keepalive-timeout>   
<!--  设置缓存页、静态也的延时值  -->   
<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"/>

参考官方的安装如下:
http://caucho.com/resin-3.1/doc/resin-web-server.xtp
Unix (including Linux and MacOS-X)
Getting Started
The following steps will start Resin for development:

Install JDK 1.5 or later and link /usr/java to your Java home or set environment variable JAVA_HOME.
tar -vzxf resin-3.1.0.tar.gz in /usr/local/share
(Optional) Link /usr/local/share/resin to the resin-3.1.0 directory.
./configure; make; make install
some ./configure options are available
Run java -jar resin/lib/resin.jar
Or run resin/bin/httpd.sh
Browse http://localhost:8080

Windows
Getting Started
Install JDK 1.5 or later.
Make sure the JDK installation set the environment variable JAVA_HOME correctly
Unzip resin-3.1.0.zip
Run java -jar resin-3.1.0/lib/resin.jar
Or execute resin-3.1.0/httpd.exe
Browse http://localhost:8080

 

标签:tar,优化,配置,resin,usr,3.1,path,local
From: https://blog.51cto.com/u_16115638/6286385

相关文章

  • resin 数据连接 配置 转
    Resin对数据库缓冲池的支持很好。在这里,它提供了DBPool对缓冲池做了封装。实际使用时,只要在resin.conf这样配置:<dbpool.sql><id>ORCL</id><driver>oracle.jdbc.driver.OracleDriver</driver><url>jdbc:oracle:thin:@localhost:1521:SMTH</url><!--......
  • Resin 3 pro高并发,响应性与稳定性方案(转)
    以下方案我是在Intelxeon(至强)3.2G2个双核物理CPU+2G内存(Ecc)上进行:resin版本为resin-pro-3.0.21,JVM为Jrockit1.5_06,resinjava启动参数-Xms256m-Xmx512m1.以下为resin.conf配置<!---Resin3.0configurationfile.--><resin......
  • idea配置Tomcat出现Warning: No artifacts configured 解决方法
    报错的截图解决方法 完成后启动 成功!!!!!!!!!!!!!......
  • Ext.Net-----GridPanel (属性|方法|配置|详细介绍)
    1、Ext.NET----GridPanel 主要配置项: store:表格的数据集 columns:表格列模式的配置数组,可自动创建ColumnModel列模式 autoExpandColumn:自动充满表格未用空间的列,参数为列id,该id不能为0 stripeRows:表格是否隔行换色,默认为false cm、colModel:表格的列模式,渲染表格时必须设置......
  • Spring Boot实现多环境配置的多种方式
    在SpringBoot中,可以通过多种方式实现多环境配置,以下是一些常用的方法:1.使用不同的配置文件:使用SpringBoot的Profile-specific配置文件:可以创建基于环境的配置文件,格式为`application-{profile}.properties`或`application-{profile}.yml`。例如,`application-dev.properties`用......
  • Spring Boot加载配置文件的顺序
    在SpringBoot中,配置文件的加载顺序如下:1.配置文件的默认位置:SpringBoot首先尝试加载位于classpath根目录下的`application.properties`或`application.yml`文件作为默认的配置文件。2.`spring.config.name`属性:如果存在`spring.config.name`属性,SpringBoot会尝试加载与该属......
  • threejs webgl性能优化
    threejswebgl性能优化WEBGL性能优化的方法有很多,以下是一些常见的方法:减少渲染次数:在WEBGL中,渲染次数越少,性能越好。因此,您可以通过减少渲染次数来提高性能。例如,使用批处理技术将多个对象合并为一个批处理对象进行渲染。降低纹理分辨率:纹理分辨率越高,渲染的时间就越长。......
  • ReactNative 配置路径别名
    1、安装依赖 babel-plugin-module-resolveryarnaddbabel-plugin-module-resolver-D 2、配置babel.config.jsmodule.exports={presets:['module:metro-react-native-babel-preset'],plugins:[['@babel/plugin-proposal-decorators......
  • ubuntu20.04上vim的配置
    1打开配置文件sudovim/etc/vim/vimrc2将下面的代码复制进去runtime!debian.vimifhas("syntax")syntaxonendifsetnumber"显示行号colorschemedesertsetguifont=Consolas:h12:cANSIsetguifontwide=SimSun-ExtB:h12:cGB2312settabstop=4setexpa......
  • 服务器 nginx 前端配置 SSL 证书并能访问 HTTPS
    安装以下步骤,按图索骥即可。 首先,没安装nginx的去这个地址,安装nginx。本人版本是(1.18.0).https://nginx.org/安装好了之后,在nginx目录下执行cmd运行命令nginx.exe-V出现以下情况就证明nginx自带了SSL模块了,不需要额外安装 有了上面这个东西之后,nginx底下......