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 设大点