我的2007
态度决定高度,努力造就实力!
登录
注册
全站
当前博客
空间
博客
好友
相册
留言
wuzhijie
ID:zhijie435
共
45420
次访问,排名
2370
好友
0
人,关注者
0
人
zhijie435的文章
原创 79 篇
翻译 0 篇
转载 123 篇
评论 7 篇
最近评论
Cheng Chi:
Agree!!根据我的一些测试经验,给兄弟加点料:
在以前跟同事讨论中也谈到这个话题,不过我的题目是“How to Keep Performance test simple, and Why?”
模拟真实环境的测试是需要的,但不是必须的,最好在项目接近结束时,进行一次全面的测试,并且进行压力测试以及长时间稳定性测试。
在相对简单甚至简陋的环境中进行性能测试,可以……
fg:
高压带电显示装置
LED显示屏
磁钢
磁性……
elixirzhang:
请问jdbc能实现compass增量么
masterkey:
不错
dongwei:
返回结果怎么才能用ec:分页?求助
文章分类
effictive java
(RSS)
Unix/Linux
(RSS)
混在北京
(RSS)
极限编程
(RSS)
架构开发
(RSS)
设计模式
(RSS)
生活杂记
(RSS)
数据库
(RSS)
项目管理
(RSS)
收藏
相册
我和儿子-悠悠的照片
java技术
SpringSide江南白衣
web项目经理手册
一个大学同学的blog
一个年轻有为但略有缺点的老板同事
一位老领导的个人网站
不知何人,有些文章很经典
低头赶路,抬头看天:现在公司老总的博客
我的java老师的blog
此人很“牛”
老师换地方了
职业生涯顾问Leo的专栏
道理事,德处人;人脉和,事脉顺-专门讨论业务建模问题(还没来得及细看)
项目管理(其他篇)
存档
2008年07月(2)
2008年05月(3)
2008年04月(1)
2008年03月(1)
2008年02月(8)
2008年01月(8)
2007年12月(16)
2007年11月(5)
2007年10月(13)
2007年09月(10)
2007年08月(7)
2007年07月(4)
2007年05月(3)
2007年04月(16)
2007年03月(32)
2007年02月(19)
2007年01月(42)
2006年12月(14)
软件项目交易
订阅我的博客
Resin配置文件中文说明
收藏
新一篇: 重过程还是重结果——关于中国高科技企业创新管理的对话
|
旧一篇: linux下安装apache和resin的文档
<!-- - Resin
3.1
配置文件. -->
<resin xmlns=
"http://caucho.com/ns/resin"
xmlns:resin=
"http://caucho.com/ns/resin/core"
>
<!-- 加载resin/lib下的所有.jar文件-->
<
class
-loader>
<tree-loader path=
"${resin.home}/lib"
/>
<tree-loader path=
"${resin.root}/lib"
/>
</
class
-loader>
<!-- - 管理配置 -->
<management path=
"${resin.root}/admin"
>
</management>
<!-- -JDK日志接口的配置. -->
<log name=
""
path=
"stdout:"
timestamp=
"[%H:%M:%S.%s] "
/>
<!-- 日志信息的级别:
'info'
生产环境
'fine'
开发环境
'finer'
调试环境 -->
<logger name=
"com.caucho"
level=
"info"
/>
<logger name=
"com.caucho.java"
level=
"config"
/>
<logger name=
"com.caucho.loader"
level=
"config"
/>
<!-- - 环境上下文的检测时间,对于生产站点, 这个要设置长一点,例如
600
秒,
10
分钟 -->
<dependency-check-interval>2s</dependency-check-interval>
<!-- - 发送邮件通知的SMTP服务器 -->
<system-property mail.smtp.host=
"127.0.0.1"
/>
<system-property mail.smtp.port=
"25"
/>
<!-- - 你可以把编译器改成
"javac"
,
"eclipse"
或者
"internal"
. -->
<javac compiler=
"internal"
args=
"-source 1.5"
/>
<!-- Security providers.
- <security-provider>
- com.sun.net.ssl.internal.ssl.Provider
- </security-provider>
-->
<!-- 去掉注释,如果你使用resin提供的xml应用
-
- <system-property javax.xml.parsers.DocumentBuilderFactory
- =
"com.caucho.xml.parsers.XmlDocumentBuilderFactory"
/>
- <system-property javax.xml.parsers.SAXParserFactory
- =
"com.caucho.xml.parsers.XmlSAXParserFactory"
/>
-->
<cluster id=
"app-tier"
>
<!-- 设置集群上下文的根, 相对于server.root -->
<root-directory>.</root-directory>
<server-
default
>
<!-- HTTP服务的端口-->
<http address=
"*"
port=
"8080"
/>
<!--
- SSL端口配置:
-
- <http address=
"*"
port=
"8443"
>
- <openssl>
- <certificate-file>keys/gryffindor.crt</certificate-file>
- <certificate-key-file>keys/gryffindor.key</certificate-key-file>
- <password>test123</password>
- </openssl>
- </http>
-->
<!-- - JVM参数设置 -->
<jvm-arg>-Xmx256m</jvm-arg>
<jvm-arg>-Xss1m</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>
256
</thread-max>
<!-- 套接字等待时间 -->
<socket-timeout>65s</socket-timeout>
<!-- 配置 keepalive -->
<keepalive-max>
128
</keepalive-max>
<keepalive-timeout>15s</keepalive-timeout>
<!-- - 如果使用的是UNIX,这里是启动的帐号和用户组.
- <user-name>resin</user-name>
- <group-name>resin</group-name>
-->
</server-
default
>
<!-- 定义群集服务器 -->
<server id=
""
address=
"127.0.0.1"
port=
"6800"
/>
<!-- Configures the persistent store
for
single-server or clustered 配置独立服务器或者群集的持久化存储,专业版的功能 -->
<resin:
if
test=
"${resin.isProfessional()}"
>
<persistent-store type=
"cluster"
>
<init path=
"session"
/>
</persistent-store>
</resin:
if
>
<!-- 为了安全, 你可以为SSL会话(SSL sessions)定义一个不同的cookie.
- <ssl-session-cookie>SSL_JSESSIONID</ssl-session-cookie>
-->
<!-- 缓存启用 (专业版的功能) -->
<resin:
if
test=
"${isResinProfessional}"
>
<cache path=
"cache"
memory-size=
"64M"
>
<!-- Vary header rewriting
for
IE -->
<rewrite-vary-as-
private
/>
</cache>
</resin:
if
>
<!-- 启用周期性的服务器状态检查和死锁检查,所有的服务器可以添加 <url> 来检查。 -->
<resin:
if
test=
"${isResinProfessional}"
>
<ping>
<!-- <url>http:
//localhost:8080/test-ping.jsp</url> -->
</ping>
</resin:
if
>
<!-- 包含web应用的默认行为 -->
<resin:
import
path=
"${resin.home}/conf/app-default.xml"
/>
<!-- 每一个web应用的默认参数 -->
<web-app-
default
>
<!-- 扩展库的公共jar文件,扩展是安全的即使没有类装载器知道的jars,装载的类将为每个应用分别装载,也就是这些类都是不同的 -->
<
class
-loader>
<tree-loader path=
"${server.root}/ext-webapp"
/>
</
class
-loader>
<!-- 设置缓存页、静态也的延时值 -->
<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"
/>
<!-- 启用EL表达式 -->
<allow-servlet-el/>
<!-- 安全原因, 默认禁用了会话的URLs -->
<session-config>
<enable-url-rewriting>
false
</enable-url-rewriting>
</session-config>
<!-- 安全原因, 在cookies中设置HttpOnly标志
- <cookie-http-only/>
-->
<!--一些JSP包有不正确的 .tld文件。可以把validate-taglib-schema设置成
false
,可能继续正常工作
- Some JSP packages have incorrect .tld files. It's possible to set validate-taglib-schema to
false
to work around these packages.
-->
<jsp>
<validate-taglib-schema>
true
</validate-taglib-schema>
<fast-jstl>
true
</fast-jstl>
<fast-jsf>
true
</fast-jsf>
</jsp>
</web-app-
default
>
<!-- 简单的数据池配置
- The JDBC name is java:comp/env/jdbc/test
<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>
-->
<!-- 定义所有虚拟主机的默认配置 -->
<host-
default
>
<!-- 如果和别的web服务器整合,这个可以被去掉,因为web服务器也可以记录这些信息。 -->
<access-log path=
"logs/access.log"
format=
'%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period=
"1W"
/>
<!-- war 文件的布置目录 -->
<web-app-deploy path=
"webapps"
/>
<!-- ear文件的布置目录 -->
<ear-deploy path=
"deploy"
>
<ear-
default
>
<ejb-server>
<config-directory>WEB-INF</config-directory>
<data-source>jdbc/test</data-source>
</ejb-server>
</ear-
default
>
</ear-deploy>
<!-- rar文件的布置目录 -->
<resource-deploy path=
"deploy"
/>
</host-
default
>
<!-- 虚拟主机的布置目录 -->
<host-deploy path=
"hosts"
>
<host-
default
>
<resin:
import
path=
"host.xml"
optional=
"true"
/>
</host-
default
>
</host-deploy>
<!-- 默认的虚拟主机配置 -->
<host id=
""
root-directory=
"."
>
<!-- 配置默认的应用 webapp's ROOT -->
<web-app id=
"/"
root-directory=
"webapps/ROOT"
/>
<web-app id=
"/resin-admin"
root-directory=
"${resin.home}/php/admin"
>
<!-- - 管理应用程序 /resin-admin
- password is the md5 hash of the password。md5码的密码。
- localhost is
true
to limit access to the localhost。localhost设置成
true
,这样只有localhost才能访问
-->
<prologue>
<resin:set var=
"resin_admin_user"
value=
""
/>
<resin:set var=
"resin_admin_password"
value=
""
/>
<resin:set var=
"resin_admin_external"
value=
"false"
/>
</prologue>
</web-app>
</host>
</cluster>
<!-- - Configuration
for
the web-tier/load-balancer -->
<resin:
if
test=
"${resin.isProfessional()}"
>
<cluster id=
"web-tier"
>
<server-
default
>
<!-- The http port -->
<http address=
"*"
port=
"9080"
/>
</server-
default
>
<server id=
"web-a"
address=
"127.0.0.1"
port=
"6700"
/>
<cache path=
"cache"
memory-size=
"64M"
/>
<host id=
""
>
<web-app id=
"/"
>
<rewrite-dispatch>
<load-balance regexp=
""
cluster=
"app-tier"
/>
</rewrite-dispatch>
</web-app>
</host>
</cluster>
</resin:
if
>
</resin>
发表于 @
2007年12月07日 14:51:00
|
评论(
loading...
)
|
编辑
新一篇: 重过程还是重结果——关于中国高科技企业创新管理的对话
|
旧一篇: linux下安装apache和resin的文档
评论:没有评论。
发表评论
姓 名:
主 页:
校验码:
看不清,换一张
登录