WAS: Websphere中的一些重要参数的设置

1、Websphere中如何设定线程监控时间

应用程序服务器 -> "<serverName>" -> 定制属性:

com.ibm.websphere.threadmonitor.threadhold = 60                       # 线程活动时间超过60m后打印线程信息,默认是10分钟
com.ibm.websphere.threadmonitor.interval = 20                             # 扫描线程的间隔时间
com.ibm.websphere.threadmonitor.false.alarm.threshold = 20       # 假报警数,超过这个数,阀值就增加50%

2、如何让WebSphere在默认条件下允许非jsp后缀的请求进入Web容器

在“Web容器-->定制属性”中加入如下内容:

com.ibm.ws.webcontainer.invokefilterscompatibility=true

3、WebSphere HTTP Server中httpd.conf的配置

LoadModule ibm_app_server_http_module "C:\Program Files\WebSphere\AppServer/bin/mod_ibm_app_server_http.dll"
WebSpherePluginConfig "C:\Program Files\WebSphere\AppServer/config/cells/plugin-cfg.xml"

4、如何解决InetAddress.getLocalHost执行时间较长

 com.ibm.cacheLocalHost=true      // cache the ip address of the hostname
 java.net.preferIPv4Stack=true       // only communicate with IPv4 addresses

  http://www-01.ibm.com/support/docview.wss?uid=swg21170467

5、如何能让WAS6.1的JSP支持JDK1.5的特性

ibm-web-ext.xmi文件中加上

<jspAttributes xmi:id="JSPAttribute_1" name="jdkSourceLevel" value="15"/>

6、如何提高was7.0性能

Core Groups > DefaultCoreGroup > Transport memory size            #减少这个值,可减少内存消耗
Request Metrics > Prepare Servers for Request metrics collection   #关闭这项

7、在WAS7.0中如何使用jconsole

设置如下JVM参数

-Djavax.management.builder.initial=
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=1099

8、如果server需要较长时间才能响应请求,这时IHS可能就以为server挂了,怎么解决

进入"Application servers > server_7010 > Web server plug-in properties",将Use read/write timeout 设大点

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值