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 設大點

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章