小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

Spotlight on WebSphere中最常見的需要關(guān)注的調(diào)優(yōu)參數(shù)

 chinaquake 2006-07-28
sunfy @ 2006-04-15 17:02

此文引用鑄銳論壇“Spotlight實(shí)時(shí)診斷WebSphere Server實(shí)踐”文章部分章節(jié)。
********************
    在Spotlight on WebSphere中,需要調(diào)優(yōu)并可能出現(xiàn)警告狀態(tài)的幾個(gè)最常見的地方包括:

     1.線程池大小沒有足夠的可用線程用于在合理的時(shí)間內(nèi)完成客戶請(qǐng)求。線程池的調(diào)優(yōu)需要對(duì)服務(wù)器進(jìn)行小心的調(diào)試,以達(dá)到堆大小和可用線程數(shù)之間一個(gè)好的平衡。與所得到的性能相比,JVM往往花費(fèi)更多的時(shí)間管理線程隊(duì)列,任意增加新的線程數(shù)量將對(duì)服務(wù)器產(chǎn)生不利的影響。

     2.JDBC連接池JDBC連接池是性能瓶頸的一個(gè)非常常見的來源。等待JDBC連接的線程數(shù)越多代表應(yīng)用客戶端等待的時(shí)間越長(zhǎng)。在以數(shù)據(jù)庫為中心的應(yīng)用達(dá)到負(fù)載高峰時(shí),確保有足夠的可用連接數(shù)是避免該問題的一種好辦法。

     3.堆大小/垃圾回收:對(duì)于WebSphere管理員來說,調(diào)優(yōu)堆大小和管理垃圾回收仍然是一項(xiàng)困難的工作。有很多因素影響著JVM堆大小的調(diào)優(yōu),包括期望的客戶數(shù),WebSphere容器使用的JVM,服務(wù)器機(jī)器,甚至是服務(wù)器的操作系統(tǒng)可用物理內(nèi)存量。

    在應(yīng)用服務(wù)器中,有一些資源配置需要調(diào)優(yōu),例如bean緩沖,池大小和事務(wù)超時(shí);Spotlight能夠識(shí)別WebSphere服務(wù)器中這些地方配置有問題的癥狀。 
***************




 
sunfy @ 2006-04-15 16:38

        一直在找一款能夠?qū)崟r(shí)監(jiān)控WebSphere的工具,今天終于在quest網(wǎng)站上下載到一個(gè)免費(fèi)試用版的Spotlight on WebSphere,據(jù)說還不錯(cuò),內(nèi)存和CPU占用都比較少,并且支持Websphere6,所以迫不及待的就拿來試用一把,但是在試用過程中想要遠(yuǎn)程連接WebSphere來監(jiān)控參數(shù)。
        根據(jù)幫助文件中jar包生成步驟來一步一步執(zhí)行,碰到一點(diǎn)小問題,已經(jīng)成功解決,寫下這篇文章記錄下來:) 
     幫助原文如下:
     If WebSphere and Spotlight are on different machines, it is strongly
recommended that you point Spotlight to a local WebSphere JAR file that you
create in the Spotlight tools folder. This file contains all the WebSphere classes
that Spotlight requires.

To create a local websphere.jar file:

1. Open a command console and navigate to the common/tools folder of the
Spotlight installation. The folder contains slfileload.jar.

2. Copy slfileload.jar to a machine on which WebSphere is installed and ensure
that there is a Java JDK 1.3+ on that machine.

3. Open a command window on the WebSphere machine and ensure that the
environment variable that specifies the location of the JDK is set.

4. From the directory where you placed slfileload.jar, issue one of the following
commands:

WebSphere 4 and WebSphere 5
java -jar slfileload.jar <appserver_folder> websphere.jar

WebSphere 6
java -jar slfileload.jar <core_folder> websphere.jar

As you see from the examples above, you point to the AppServer folder on
WebSphere 4 and 5, and the Core folder on WebSphere 6, which is located
on the target machine. Here are examples of where these folders are located
on a Windows machine:

WebSphere 4
\mymachine\WebSphere\WAS4\AppServer

WebSphere 5
\mymachine\WebSphere\WAS5\AppServer

WebSphere 6
\mymachine\WebSphere\WAS6\Core

Hint: you may want to give your file a more specific name, like
websphere4.jar, to distinguish it from another JAR file that you create
later on for WebSphere 5 or 6.

5. The command creates websphere.jar in the directory in which it was
executed. Move the created JAR to the tools folder on the machine with
your Spotlight installation.

6. When you start Spotlight and the connection dialog appears, choose the
appropriate Profiles tab and then click either Locate WebSphere Home
directory or websphere.jar file (WebSphere 4), or Locate WebSphere Jar Files
(WebSphere 5).

7. Click the Import Jar File button and point to the newly created
<SPOTLIGHT_HOME>\common\tools\websphere.jar. The JAR file is
expanded and the result is placed in Spotlight’s
<SPOTLIGHT_HOME>\data\ws4 , ws5, or ws6 folder, depending on the
version of your WebSphere server. Note that <SPOTLIGHT_HOME>
denotes the location of the Spotlight installation directory.

8. Once the files have been expanded, websphere.jar is no longer needed. You
can delete it to conserve disk space.

       按照幫助文件的步驟進(jìn)行jar包的生成,在第4步執(zhí)行 WebSphere 6 java -jar slfileload.jar websphere.jar 命令時(shí)并沒有自動(dòng)生成websphere.jar文件,系統(tǒng)提示命令語法不對(duì)。 
       于是嘗試使用以下命令,命令執(zhí)行成功。 
         C:\Program Files\WebSphere\AppServer>java -jar slfileload.jar ./ websphere6.jar 
      這樣我們的遠(yuǎn)程監(jiān)控jar包就生成了:) 
注:我的JDK環(huán)境為1.4.2 
java -version java version "1.4.2_06"

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多