Resin3.1 优化
浅谈树脂基复合材料的成型工艺

浅谈树脂基复合材料的成型工艺摘要:树脂基复合材料作为新型复合材料得到了广泛的应用,在许多行业都发挥了重要的作用。
树脂基复合材料的成型工艺日趋完善,各种新的成型方法不断出现,为树脂基复合材料的发展起到了积极的推动作用。
本文对树脂基复合材料的成型工艺做了简单介绍,分别探讨了几种成型工艺,并分析了聚氨酯树脂基成型工艺的影响因素,以供大家参考。
材料是社会发展人类进步的物质基础,材料的革新将会推动产业进步,从而带动人类生活不断提高。
由于具有比强度、耐疲劳、各向异性和可设计性等诸多优点,树脂基复合材料已经被广泛应用与多个行业,并成为衡量某些行业发展水平的指标之一。
1 树脂基复合材料成型工艺简要分析树脂基复合材料成型工艺就是将增强材料在预定的方向上进行均与铺设,使其能够符合制品的表面质量、外部形状以及尺寸。
同时还应尽量降低孔隙率,将制品中的气体彻底排净,确保制品性能不会受到较大影响。
与此同时,在进行相关操作时,还应选择与制品生产相符合的制造工艺和生产设备,降低单件生产制品的生产成本,提高相关人员的操作便捷性以及身体健康。
总的来说,树脂基复合材料的成型工艺可以分为三个阶段,第一个阶段就是原材料准备阶段,包括了树脂基材料、增强材料和成型模具;第二个阶段是准备阶段,包括了胶液配制、增强材料处理和模具准备;第三个阶段是成型工序阶段,包括了成型作业、固话和脱模三个步骤。
2 几种树脂基复合材料成型工艺分析2.1 拉挤成型工艺分析复合材料拉挤成型工艺的研究开始于上世纪五十年代,到了六十年代中期,在实际生产中逐渐运用了拉挤成型工艺。
经过将近十年的发展,拉挤技术又取得了重大研究进展,树脂胶液连续纤维束在湿润化状态下,通过牵引结构拉力,在成型模中成型,最后在固化设备中进行固化,常用的固化设备有固化模和固化炉。
拉挤成型工艺的制品质量十分稳定,制造成本也很低;生产效率也很高能够进行批量化的生产。
2.2 模压成型工艺分析模压成型工艺是一种较为老旧的工艺,但是又充满不断创新的可能,具有良好的未来发展潜力。
resin3.1的配置

<class-loader>
<compiling-loader path='D:\Works\project\svn_root\iMov_Web\WebRoot\WEB-INF\classes'/>
</servlet>
6.配置端口:
3.1中默认端口配置位于
<cluster id="app-tier">
<server-default>
<http address="*" port="8080"/>
7.配置数据库连接池:
3.1中数据库连接池配置位于
<cluster id="app-tier"></cluster>节点中,
</session-config>
</web-app>
</host>
</cluster>
4.request.getRequestURL()返回值问题:
当应用的web.xml中配置welcome 页面为 "/index.jsp"时,
对于/ 这样的URL,
resin3.1 返回的是/,
而 resin3.0 返回的是/index.jsp
5.js乱码问题:
默认配置下,resin3.1 发送.js文件是以iso8859-1编码,于是产生乱码。
环氧酸酐体系固化制度的优化及性能研究

to
and
the best curing process has been selected as 130。C/5h.According
cail
this curing process,the sample’S curing degree is 97.04%,the flexural strength
important
significance and
practical value.
This paper firstly has studied the curing kinetics of CYD・-1 28/MeTHPA/DMP・・30 system and carried out
a
preliminary exploration of the curing process according
samples’S tensile strength is 423 MPa,the flexural strength
Can get up to 524MPa,the
process,the sample’S
to
glass transition temperature
is
1 32。C
by using
hand lay—up Can
the
two best
curing
process.The
result
segmented
temperature
curing curing
eudng
system
iS
better
constant
temperature
system.With
Resin服务器配置指南 详解

Resin服务器配置指南resin虚拟内存设置文章分类:Java编程show grants for root@localhost;说明RESIN_HOME - 表示resin的安装目录-Xms512m - 表示初始占用内存512MB-Xmx1024m - 表示最在可占用内存1024MBResin 3.0.x Linux下修改位置:RESIN_HOME\bin\httpd.sh 文件中找到args= 这行,修改成args="-J-server -Xms512m -Xmx1024m"设置JAVA虚拟机的内存使用量。
Windows下httpd.exe -Xms512m -Xmx1024mResin 3.1.x 同时适用于Linux和Windows修改位置:RESIN_HOME\conf\resin.conf找到如下内容<jvm-arg>-Xmx256m</jvm-arg><jvm-arg>-Xss1m</jvm-arg>修改成如下:<jvm-arg>-Xms512m</jvm-arg><jvm-arg>-Xmx1024m</jvm-arg><jvm-arg>-Xss1m</jvm-arg>3Jdk和Resin安装步骤1. 下载jdk linux版本, j2sdk-1_4_2_10-linux-i586.bin。
2. 下载resin-2.1.17.tar.gz。
或更好版本3. 直接输入:j2sdk-1_4_2_10-linux-i586.bin就可以安装成功。
本身它有安装脚本。
4. 修改用户根目录下配置文件。
(1)ls -a 查看文件(2)vi .bash_profile 添加:exportJAVA_HOME=/home/usboss/j2sdk1.4.2_10/Note:配置这个文件类似于windows的配置windows的环境变量。
3.1外部数据源

外部数据源一、接口说明该接口主要用来在e-cology配置和异构系统的数据库的链接方式,通过此链接在e-cology中直接操作其他系统的数据。
该接口适用于SQLSERVER,ORACLE,MYSQL,DB2,INFORMIX,SYBASE结构型数据库。
二、使用说明1、配置数据源可通过两种方式配置外部数据源,一种是修改配置文件(此方式需要重新resin服务器),另一种是通过可视化页面进行配置(此方式无需重启resin服务器):(1)修改配置文件datasource.xml(该文件位于/ecology/WEB-INF/service/datasource.xml),配置文件内容如下图所示:<?xml version="1.0" encoding="UTF-8"?><module id="datasource" version="1.0.0"><service-point id="other"interface="weaver.interfaces.datasource.DataSource"><invoke-factory><construct class="weaver.interfaces.datasource.BaseDataSource"><set property="type" value="oracle" /><set property="host" value="127.0.0.1" /><set property="port" value="1521" /><set property="dbname" value="orcl" /><set property="user" value="other" /><set property="password" value="other" /><set property="minconn" value="5" /><set property="maxconn" value="10" /></construct></invoke-factory></service-point></module>其中,数据源配置文件上的各个属性分别表示:●ID:引用数据源的唯一标识,该配置文件中不能重复●Type:数据库类型(sqlserver2000, sqlserver2005,sqlserver2008,oracle,mysql,Informix,db2,sybase)●Host:数据库服务器地址●port:数据库服务的端口号●Dbname:数据库名(实例名)●User:访问数据库的用户名●password:访问数据库的密码●minconn:访问该数据库最大连接●maxconn::访问该数据库最小连接(2)通过可视化页面(访问菜单:【设置】=》【设置中心】=》【外部接口设置】=》【数据源配置】进行访问;也可以直接访问地址/servicesetting/datasourcesetting.jsp页面进行访问),如下图所示:右键点击【新建】菜单,即可进入如下界面进行配置:●数据源名称:即xml配置中的id; 这个是引用该数据源的唯一标识●数据库类型:即xml配置中的Type:数据库类型(sqlserver2000, sqlserver2005,sqlserver2008,oracle,mysql,Informix,db2,sybase)●服务器ip:即xml配置中的Host: 数据库服务器地址●端口号:即xml配置中的port:数据库服务的端口号●数据库名:即xml配置中的Dbname:数据库名(实例名)●用户名:即xml配置中的User:访问数据库的用户名●密码:即xml配置中的password:访问数据库的密码●最小连接数:即xml配置中的minconn,maxconn: 访问该数据库最小连接●最大连接数:即xml配置中的minconn,maxconn: 访问该数据库最大连接2、使用数据源在ecology中使用数据源可以通过两种方式调用,如下所示:(1)通过数据源获取数据库连接,如下示例:List<String> data = new ArrayList<String>();DataSource ds = null;Connection conn = null;PreparedStatement ps = null;ResultSet rs = null;try{ds = (weaver.interfaces.datasource.DataSource) StaticObj.getServiceByFullname(("datasource.other"), weaver.interfaces.datasource.DataSource.class);conn = ds.getConnection();ps = conn.prepareStatement("SELECT 1 FROM DUAL");rs = ps.executeQuery();while(rs.next()){data.add(rs.getString(1));}} catch(Exception e){e.printStackTrace();} finally {if(rs != null){try {rs.close();} catch (SQLException e) {e.printStackTrace();}}if(ps != null){try {ps.close();} catch (SQLException e) {e.printStackTrace();}}if(conn != null){try {conn.close();} catch (SQLException e) {e.printStackTrace();}}}以上调用通过以下关键代码获取数据库连接:(2)通过weaver.conn.RecordSetDatasource类进行外部数据源的连接,如以下示例。
resin详解

Resin是CAUCHO公司(/)的产品,是一个非常流行的支持servlets 和jsp的引擎,速度非常快。
Resin本身包含了一个支持HTTP/1.1的WEB服务器。
虽然它可以显示动态内容,但是它显示静态内容的能力也非常强,速度直逼APACHE SERVER。
许多站点都是使用该WEB服务器构建的。
Resin也可以和许多其他的WEB服务器一起工作,比如Apache server和IIS等。
Resin 支持Servlets 2.3标准和JSP 1.2标准。
熟悉ASP和PHP的用户可以发现用Resin来进行JSP 编程是件很容易的事情。
Resin支持负载平衡(Load balancing),可以增加WEB站点的可靠性。
方法是增加服务器的数量。
比如一台SERVER的错误率是1%的话,那么支持负载平衡的两个Resin服务器就可以使错误率降到0.01%。
你可以从/download/ 站点上查询Resin的最新版本并下载它。
Resin服务器平台介绍简介:Resin提供了最快的jsp/servlets运行平台。
在java和javascript的支持下,Resin可以为任务灵活选用合适的开发语言。
Resin的一种先进的语言XSL(XML stylesheet language)可以使得形式和内容相分离。
如果您选用jsp平台作为internet商业站点的支持,那么速度、价格和稳定性都是要考虑到的,resin十分出色,表现更成熟,很具备商业软件的要求。
而且,它是全免费的。
从站点下载的就是完整版本。
所以值得向您推荐!相对于tomcat3.1,后者更象是一个正在研究的项目。
目前resin可以支持sun的j2ee,而tomcat不能直接支持,而j2ee 是基于java服务器端大系统的基础。
但tomcat结构非常合理,而且是apache组织的产品,因此有着很好的远景。
Resin1.1的特性包括:1 支持jsp1.1和在服务器端编译的javascript.2 比mod_perl,mod_php更快,比Jakarta Tomcat快3倍。
tev蛋白酶的优化表达及功能分析

AbstractTobacco etch virus protease (TEVp) is widely utilized for cleavage the fusion tags owing to its stringent sequence specificity. Previously, we constructed the TEVp5M codon variant with increased yield but decreased specific activity. To further improve protein folding and increase the protein expression level of the TEVp,we combined different approaches to obtain new TEV protease with high yield and activity. Cleavage of different fusions absorbed with the corresponding resin using the constructed fusion protein.The results are as follows:1.Three variants were constructed. Based on the TEVp5M codon variant, we created three variants with mutations of K45F, E106G and K45F/E106G.2.Expression level and activity of TEVp variants were investigated. Qualitative analysis of TEVp variants in soluble were determined by SDS-PAGE and quantitative analysis of TEVp variants in soluble showed that as comparison to the TEVp5M codon variant, soluble yield of E106G variant in E. coli BL21(DE3) was increased by 28% , contrary to that of other two variants K45F and K45F/E106G by GFP fluorescence intensities.Qualitative and quantitative analysis of the purified fusion protein H6GST-tevS-eDAL as a TEVp substrate showed that activity of E106G variant on cleaving the designed protein substrate was raised by 32%. Other two variants including K45F and K45F/E106G were less active than the TEVp5M codon variant.3.Five TEVpE105G fusion proteins were constructed. We chose four protein tags including GroEL, GroES, DnaK and MBP to fuse with the E106G variant at N-terminus respectively. The TEVp recognition sequences is placed at the fusion junction of the fused tag and target protein. InfB(1–21) sequence is directly attached to the TEVp5M E106G variant.4.Expression level and activity of TEVp mutant in fusion protein were assessed. DnaK and MBP effectively enhanced soluble production of the TEVp construct and InfB (1–21) sequence decreased solubility of the protein than the His6-tag in E. Coli BL21(DE3) but GroEL and MBP significantly increased the activity of TEVp mutant.5.Supplying rare tRNAs on function of the fusion tag was examined.In E. coli strain Rosetta TM(DE3), InfB(1–21) sequence and MBP effectively enhanced soluble production of the TEVp. InfB(1–21) sequence and GroEL increased highest cleavage activity of TEVp mutant.6. Effect of the TEVp recognition sequences on fusion protein was analyzed.The tevS in the fusion protein MBP-tevS-TEVp-H6 was deleted to generate the fusion MBP-TEVp-H6.We found that deletion of the tevS did not affect soluble expression levels in two in E. coli strains correspondingly but significantly enhanced the activity in the Rosetta TM(DE3).7.Mutant protein with different fusion tag were purified respectively. We analyzed purification and specific activity of different TEVp constructs and determined efficiency of on-resin cleavage of the five fusion proteins.In conclusion, we confirmed that further amino acid mutations in improving protease soluble were influenced by other mutations. Certain fusion tags on improving protein production and quality is dependent with rare tRNAs abundance. In E. coli strain Rosetta TM(DE3),We first identified that GroES faintly increased protein solubility of the TEVp.The current research shows that the strain selection is important for optimization of the fusion tags. Even with assistance of the fusion tag, desirable production and quality of TEVp construct are not combined in the purified TEVp constructs.The constructed fusion protein of TEVp mutant for on-resin cleavage of partial fusion proteins made certain target proteins purified in single step.Key words:Tobacco etch virus protease,mutation,fusion tags,activity,Escherichia coli目录摘要 ................................................................................................................................ I Abstract ........................................................................................................................ III 目录 .............................................................................................................................. V 1 文献综述 . (1)1.1 蛋白重组及融合标签的应用 (1)1.2 TEV蛋白酶及其突变体研究 (2)1.3 大肠杆菌中tRNA丰度对表达外源蛋白影响的研究 (3)1.4 融合蛋白的亲和柱上酶切研究 (4)2 引言 (5)2.1 研究目的和意义 (5)2.2 研究内容 (5)3 材料与方法 (6)3.1 材料 (6)3.1.1 菌株和质粒 (6)3.1.2 试剂 (6)3.1.3 仪器和设备 (6)3.1.4 部分缓冲液的配制 (6)3.1.5 本研究中所需要的引物 (7)3.2 方法 (8)3.2.1 载体构建的相关反应体系 (8)3.2.2 构建烟草蚀斑病毒蛋白酶突变体K45F、E106G和K45F/E106G .. 93.2.3 构建带不同标签的E106G融合表达载体 (9)3.2.4 用于柱上酶切5种融合蛋白底物表达载体的构建 (11)3.2.5 不同TEVp突变体的表达分析 (11)3.2.6 GFP荧光强度检测不同TEVp突变体水溶性表达 (12)3.2.7 不同TEVp突变体的活性分析 (12)3.2.8 带不同标签的E106G融合蛋白的表达及活性分析 (13)3.2.9 融合蛋白的诱导表达纯化及产量测定 (13)3.2.10 纯化的TEVp活性分析 (14)3.2.11 MBP-E106G-H6用于融合蛋白的亲和柱上酶切效率分析 (14)4 结果与分析 (15)4.1 载体构建 (15)4.2 定性定量分析不同TEVp突变体的表达 (16)4.3 定性定量分析不同TEVp突变体的活性 (17)4.4 分析不同标签对E106G蛋白酶表达及活性影响 (17)4.5 分析提高胞内稀有tRNA水平对标签效应的影响 (18)4.6 分析融合蛋白中TEVp识别序列的作用 (19)4.7 带不同标签的E106G产量和活性的分析 (20)4.8 MBP-E106G-H6作为工具酶用于融合蛋白的亲和柱上酶切效率分析 (21)4.8.1 H6GST-tevS-mPrx融合蛋白的亲和柱上酶切 (22)4.8.2 H6GST-tevS-sDAL融合蛋白的亲和柱上酶切 (22)4.8.3 MBP-tevS-eDAL融合蛋白的亲和柱上酶切 (23)4.8.4 H6GST-tevS-mSrx融合蛋白的亲和柱上酶切 (24)4.8.5 GST-tevS-mSR融合蛋白的亲和柱上酶切 (25)5 讨论 (27)5.1 不同TEVp突变体水溶性及活性研究 (27)5.2 不同标签对TEVp表达及活性影响研究 (27)5.3 TEV蛋白酶作为工具酶用于融合蛋白亲和柱上酶切研究 (28)结论 (30)参考文献 (31)致谢 (39)个人简介 (40)1文献综述1.1 蛋白重组及融合标签的应用目前,蛋白重组技术是蛋白质结构和功能研究的重要方法,将目的基因克隆到表达载体并在宿主细胞中生产重组蛋白质[1-7]。
使用JVisualVM进行性能分析

使⽤JVisualVM进⾏性能分析地址:连接1、本地机器的程序直接可以监听到2、远程机器的程序需要加上JVM参数-Dcom.sun.management.jmxremote= true-Dcom.sun.management.jmxremote.port= 9090-Dcom.sun.management.jmxremote.ssl= false-Dcom.sun.management.jmxremote.authenticate= false备注:另外需要检查hostname –i看解析出来是否为本地的IP,如是127.0.0.1或者IP为多个IP中之⼀,则其他的IP⽆效,会连接不上。
这⾥有个分析案例,利⽤jvisualvm分析tomcat的问题:插件安装tools->plugin->Available Plugin 会有值得安装的插件,如: JConsole插件列表:注意:上⾯提供的端⼝配置有些⿇烦,不如直接这样做:要使⽤必须在远程机上启动jstatd代理程序,否则会显⽰ “not supported for this jvm” 错误⽽启动 jstatd 时会有⼀个权限问题,需要做如下修改:nano /opt/sun-jdk- 1.6 . 0.26 /jre/lib/security/java.policyJava代码1. nano /opt/sun-jdk-1.6.0.26/jre/lib/security/java.policy增加下列⾏Java代码1. grant codebase "file:${java.home}/../lib/tools.jar" {2. permission java.security.AllPermission;3.4. };然后启动 jstatd并且不要关闭如:Threads查看线程的运⾏情况,运⾏、停⽌、睡眠、等待,根据这些结合实际程序运⾏的逻辑分析。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Resin3.1 优化 [转贴]2008-12-12 10:39使用resin已经有四、五年了,但以前都是做一些小系统,resin的压力并不大,近段时间做一个大系统,日平均ip上10万,resin的压力非常的大,除了对程序做优化以外,resin 的优化也小不了。
一、优化配置修改conf/resin.conf 文章中的JVM参数<jvm-arg>-Xms512m</jvm-arg><jvm-arg>-Xss128k</jvm-arg><jvm-arg>-Xmn184m</jvm-arg><jvm-arg>-XX:ParallelGCThreads=20</jvm-arg><jvm-arg>-XX:+UseConcMarkSweepGC</jvm-arg><jvm-arg>-XX:+UseParNewGC</jvm-arg><jvm-arg>-Xdebug</jvm-arg><jvm-arg>-Xloggc:gc.log</jvm-arg>修改最大thread-max为2500<!-- Maximum number of threads. --><thread-max>2500</thread-max><!-- Configures the socket timeout --><socket-timeout>65s</socket-timeout><!-- Configures the keepalive --><keepalive-max>10240</keepalive-max><keepalive-timeout>30s</keepalive-timeout>二、利用resin-admin监控resin运行情况。
第一行是Thread pool情况,如果发现Peak大于thread max,就应该修改conf/resin.conf 中的thread-max,相应的增大thread-max。
第二行是Threads,如果长期出现在这里而又不是SUN的方法,或者resin的方法的话,就要对这些方法进行测试、优化。
以下内容都是自己不断实验总结的,而非resin官方的建议,可能不适合你的情况,我的经验仅做为参考。
)最近发现有人用黑客类工具恶意点击网站,或发送大量垃圾包,具体是什么不清楚,但是很明显是故意的,造成80端口无法正常访问,或访问速度极慢。
用netstat -an >>c:\temp\aaa.txt 命令查看了当时情况,发现某几个ip的连接数量巨大,是不正常的。
不管是访问量大,还是有黑客骚扰,我想还是试试看把resin优化一下。
首先要在访问量巨大的时候进行观察。
先将resin.conf文件中的thread-min,thread-max,thread-keepalive三个参数设置的比较大,分别写上,1000,3000,1000,当然这是根据你的机器情况和可能同时访问的数量决定的,如果你的网站访问量很大的,应该再适当放大。
然后观察任务管理器中的java线程变化情况,看看到底是线程达到多大的时候,java进程当掉的。
我的是在379左右当掉。
然后将thread-min,thread-max,thread-keepalive分别写为150,400,300;,也就是将当掉的时候的最大值稍微放大点,作为thread-max的值,因为该系统一般不会超过这个值。
然后其他两个参数根据情况设置一下。
这只是我的估计值,根据机器性能和访问量不同,应该有所不同。
然后将accept-buffer-size值设置的较大,我设置到10000以上,这样可以让java能使用到更多的内存资源。
这样的设置基本上能够满足resin的正常运行,当掉resin服务的情况大大减少,本设置适合于中小型网站。
Resin ThreadsResin will automatically allocate and free threads as the load requires. Since the threads are pooled, Resin can reuse old threads without the performance penalty of creating and destroying the threads. When the load drops, Resin will slowly decrease the number of threads in the pool until is matches the load.Most users can set thread-max to something large (200 or greater) and then forget about the threading. Some ISPs dedicate a JVM per user and have many JVMs on the same machine. In that case, it may make sense to reduce the thread-max to throttle the requests.Since each servlet request gets its own thread, thread-max determines the maximum number of concurrent users. So if you have a peak of 100 users with slow modems downloading a large file, you'll need a thread-max of at least 100. The number of concurrent users is unrelated to the number of active sessions. Unless the user is actively downloading, he doesn't need a thread (except for "keepalives").KeepalivesKeepalives make HTTP and srun requests more efficient. Connecting to a TCP server is relatively expensive. The client and server need to send several packets back and forth to establish the connection before thefirst data can go through. HTTP/1.1 introduced a protocol to keep the connection open for more requests. The srun protocol between Resin and the web server plugin also uses keepalives. By keeping the connection open for following requests, Resin can improve performance.TimeoutsRequests and keepalive connections can only be idle for a limited time before Resin closes them. Each connection has a read timeout,request-timeout. If the client doesn't send a request within the timeout, Resin will close the TCP socket. The timeout prevents idle clients from hogging Resin resources.In general, the read-timeout and keepalives are less important for Resin standalone configurations than Apache/IIS/srun configurations. Veryheavy traffic sites may want to reduce the timeout for Resin standalone.Since read-timeout will close srun connections, its setting needs to take into consideration the client-live-time setting for mod_caucho or isapi_srun. client-live-time is the time the plugin will keep a connection open. read-timeout must always be larger than client-live-time, otherwise the plugin will try to reuse a closed socket.Plugin keepalives (mod_caucho/isapi_srun)The web server plugin, mod_caucho, needs configuration for its keepalive handling because requests are handled differently in the web server. Until the web server sends a request to Resin, it can't tell if Resin has closed the other end of the socket. If the JVM has restarted or if closed the socket because of read-timeout, mod_caucho will not know about the closed socket. So mod_caucho needs to know how long to consider a connection reusable before closing it. client-live-time tells the plugin how long it should consider a socket usable.Because the plugin isn't signalled when Resin closes the socket, the socket will remain half-closed until the next web server request. A netstat will show that as a bunch of sockets in the FIN_WAIT_2 state. With Apache, there doesn't appear to be a good way around this. If these become a problem, you can increase read-timeout and client-live-time so the JVM won't close the keepalive connections as fast.unix> netstat...localhost.32823 localhost.6802 327680 32768 0 CLOSE_WAITlocalhost.6802 localhost.32823 327680 32768 0 FIN_WAIT_2localhost.32824 localhost.6802 327680 32768 0 CLOSE_WAITlocalhost.6802 localhost.32824 327680 32768 0 FIN_WAIT_2...TCP limits (TIME_WAIT)A client and a server that open a large number of TCP connections can run into operating system/TCP limits. If mod_caucho isn't configured properly, it can use too many connections to Resin. When the limit isreached, mod_caucho will report "can't connect" errors until a timeout is reached. Load testing or benchmarking can run into the same limits, causing apparent connection failures even though the Resin process is running fine.The TCP limit is the TIME_WAIT timeout. When the TCP socket closes, the side starting the close puts the socket into the TIME_WAIT state. A netstat will short the sockets in the TIME_WAIT state. The following shows an example of the TIME_WAIT sockets generated while benchmarking. Each client connection has a unique ephemeral port and the server always uses its public port:The socket will remain in the TIME_WAIT state for a system-dependent time, generally 120 seconds, but usually configurable. Since there are less than 32k ephemeral socket available to the client, the client will eventually run out and start seeing connection failures. On some operating systems, including RedHat Linux, the default limit is only 4k sockets. The full 32k sockets with a 120 second timeout limits the number of connections to about 250 connections per second.If mod_caucho or isapi_srun are misconfigured, they can use too many connections and run into the TIME_WAIT limits. Using keepalives effectively avoids this problem. Since keepalive connections are reused, they won't go into the TIME_WAIT state until they're finally closed. A site can maximize the keepalives by setting thread-keepalive large and setting live-time and request-timeout to large values. thread-keepalivelimits the maximum number of keepalive connections. live-time and request-timeout will configure how long the connection will be reused.read-timeout must always be larger than client-live-time. In addition, keepalive-max should be larger than the maximum number of Apache processes.Apache 1.3 issuesUsing Apache as a web server on Unix introduces a number of issues because Apache uses a process model instead of a threading model. The Apache processes don't share the keepalive srun connections. Each process has its own connection to Resin. In contrast, IIS uses a threaded model so it can share Resin connections between the threads. The Apache process model means Apache needs more connections to Resin than a threaded model would.In other words, the keepalive and TIME_WAIT issues mentioned above are particularly important for Apache web servers. It's a good idea to use netstat to check that a loaded Apache web server isn't running out of keepalive connections and running into TIME_WAIT problems.先将resin.conf文件中的thread-min,thread-max,thread-keepalive三个参数设置的比较大,分别写上,1000,3000,1000,当然这是根据你的机器情况和可能同时访问的数量决定的,如果你的网站访问量很大的,应该再适当放大。