調整應用程式服務環境
請利用這個主題來瞭解調整取得最佳效能的好處。 請瞭解主要 WebSphere® Application Server 元件的可調整參數,以及這些參數對效能的影響。
開始之前
WebSphere Application Server 提供了主要元件的可調整設定,以便您調整執行時期環境來符合您應用程式的性質。 應用程式可以在不變更這些調整參數的預設值的情況下執行成功。 其他應用程式可能需要變更(例如,較大的資料堆大小),以實現最佳效能。
效能調整可以大幅提高效能,即使應用程式未進行效能最佳化,也是如此。 不過,相較於只是變更調整參數,更正應用程式的缺點通常更能大幅提高效能。 高效能應用程式有許多構成因素。
關於這項作業
程序
- 從執行 applyPerfTuningTemplate.py Script 著手,開始改進特定應用程式伺服器的效能。 這個基於 python 的調整 Script 以及它的其中一個範本檔,會針對一般開發、正式作業或已備妥將立即使用的環境來套用建議的效能調整設定。 applyPerfTuningTemplate.py Script 及其關聯的範本和內容檔位於 WAS_HOME/bin 目錄內。
- 利用效能顧問、調整參數快速表單中的建議程序或參數,以及效能問題的疑難排解資訊,在最大程度上,將 WebSphere Application Server 實例最佳化。
- 效能顧問
- 效能顧問利用「效能監視基礎架構 (PMI)」資料來提供對於 Object Request Broker (ORB) 服務執行緒儲存區、Web 儲存器執行緒儲存區、連線儲存區大小、持續保存的階段作業大小和時間、備妥陳述式快取大小,以及階段作業快取大小的配置變更建議。 「執行時期效能顧問」在應用程式伺服器程序中執行,其他顧問則在「Tivoli 效能檢視器」中執行。 如需相關資訊,請參閱使用「效能和診斷顧問」的相關文件,以及使用「Tivoli 效能檢視器」中的效能顧問。
- 調整參數快速表單
- 檢視調整參數快速表單的相關文件。 這些參數對效能有重要的影響。 由於這些參數與應用程式相關,所以特定應用程式和環境的參數設定會有所變化。
- 效能的疑難排解
- 如果要在偵測問題時節省時間,並協助您進行效能問題的疑難排解,請參閱效能疑難排解的相關文件。
次主題
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Tuning parameter hot list
The following hot list contains recommendations that have improved performance or scalability, or both, for many applications.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
目錄使用慣例
產品資訊中指向 app_server_root、profile_root 及其他目錄的參照,隱含特定的預設目錄位置。 請熟悉 WebSphere Application Server 中的使用慣例。![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Tuning TCP/IP buffer sizes
WebSphere Application Server uses the TCP/IP sockets communication mechanism extensively. For a TCP/IP socket connection, the send and receive buffer sizes define the receive window. The receive window specifies the amount of data that can be sent and not received before the send is interrupted. If too much data is sent, it overruns the buffer and interrupts the transfer. The mechanism that controls data transfer interruptions is referred to as flow control. If the receive window size for TCP/IP buffers is too small, the receive window buffer is frequently overrun, and the flow control mechanism stops the data transfer until the receive buffer is empty.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Tuning the JVM
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Tuning transport channel services
The transport channel services manage client connections and I/O processing for HTTP and JMS requests. These I/O services are based on the non-blocking I/O (NIO) features that are available in Java™. These services provide a highly scalable foundation to WebSphere Application Server request processing. Java NIO-based architecture has limitations in terms of performance, scalability, and user usability. Therefore, integration of true asynchronous I/O is implemented. This implementation provides significant benefits in usability, reduces the complexity of I/O processing, and reduces that amount of performance tuning you must perform.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Checking hardware configuration and settings
An optimal hardware configuration enables applications to get the greatest benefit from performance tuning. The hardware speed impacts all types of applications and is critical to overall performance.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Tuning operating systems
You can tune your operating system to optimize the performance of WebSphere Application Server.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Tuning web servers for IBM i
The product provides plug-ins for several web server brands and versions. If you are running your web server on a non-IBM i platform, see the product documentation for performance tuning information.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
調整 Web 伺服器
WebSphere Application Server 為各種 Web 伺服器品牌和版本提供外掛程式。每一種 Web 伺服器作業系統組合各有特定的調整參數,足以影響應用程式的效能。![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Using Collection Services performance data
Collection Services, a component of WebSphere Application Server for IBM i, collects Performance Monitoring Infrastructure (PMI) data for stand-alone application servers. This PMI data is collected at specified intervals, providing a snapshot of activity during that time.![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Tuning the application server using pre-defined tuning templates
You can use the Python-based tuning script, applyPerfTuningTemplate.py, along with one of its template files, to apply pre-defined performance tuning templates to your application server or cluster. The property-based template files are located in the WAS_HOME\scriptLibraries\perfTuning\V70 directory. The path for the script files is wsadmin -f <WAS_HOME>\bin\applyPerfTuningTemplate.py.
相關工作:
相關參考:
作業主題
前次更新: last_datehttp://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-base-dist&topic=tprf_tuneprf
檔名:tprf_tuneprf.html
