本節提供有關在安裝 Identity Applications 後更新 Tomcat 環境的資訊。
如果您使用了 Tomcat 的便捷安裝程式,Identity Manager 的安裝程式將為您設定 Tomcat。如果您安裝了自己的 Tomcat 程式,請注意以下問題:
您可以修改 Tomcat 服務,以提高其執行效率。如需詳細資訊,請參閱 So You Want High Performance (如何提高效能)。
您可能需要新增對記錄事件的支援。如需詳細資訊,請參閱節 29.4, 使用 Apache Log4j 服務記錄登入。
如需更多資訊,請參閱節 38.2, 為叢集設定使用者應用程式驅動程式。
Identity Applications 使用 JGroups 來執行快取。在某些組態中,JGroups 要求您將 preferIPv4Stack 內容設定為 true,以確保 mcast_addr 結合成功。
如果不使用此選項,可能會發生以下錯誤:
[10/1/09 16:11:22:147 EDT] 0000000d UDP W org.jgroups.util.Util createMulticastSocket could not bind to /228.8.8.8 (IPv4 address); make sure your mcast_addr is of the same type as the IP stack (IPv4 or IPv6).
您還可能會看到此錯誤:
[3/21/12 10:04:32:470 EDT] 00000024 UDP E org.jgroups.protocols.TP down
failed sending message to null (131 bytes)
java.lang.Exception: dest=/228.8.8.8:45654 (134 bytes)
at org.jgroups.protocols.UDP._send(UDP.java:353)
參數 java.net.preferIPv4Stack=true 是一個系統內容,可以使用與其他系統內容 (例如 extend.local.config.dir) 相同的方式進行設定。
大多數負載平衡器都提供狀態檢查功能,以確定 HTTP 伺服器是否已啟動且正在監聽。使用者應用程式包含一個 URL,可用於設定負載平衡器上的 HTTP 狀態檢查。該 URL 為︰
http://<節點 IP>:連接埠/IDMProv/jsps/healthcheck.jsp
新 API 可讓您取回有關使用者應用程式狀態的資訊。REST API 可以存取系統,以獲取目前正在執行的線串、記憶體佔用情況、快取和叢集資訊,並使用 GET 操作傳回資訊。
記憶體資訊 (JVM 與系統記憶體)︰ 讀取與記憶體相關的資訊,例如系統記憶體和 JVM 佔用的記憶體。
例如,
http://<ip_addr:port>/IDMProv/rest/monitoring/statistics/memoryinfo
線串資訊︰ 讀取大量佔用 CPU 資源的線串的相關資訊,並傳回導致高 CPU 利用率的排名靠前的線串清單。
例如,
http://<ip_addr:port>/IDMProv/rest/monitoring/statistics/threadinfo
若要存取 JVM 中線串的堆疊追蹤,請將堆疊參數設定為 True。
例如,
http://<ip_addr:port>/IDMProv/rest/monitoring/statistics/threadinfo?stack=true
若要指定 JVM 中的線串數,請為 thread-count 參數指定值。
例如,
http://<ip_addr:port>/IDMProv/rest/monitoring/statistics/threadinfo?thread-count=1
快取資訊︰ 讀取使用者應用程式的快取資訊。
例如,
http://<ip_addr:port>/IDMProv/rest/monitoring/statistics/cacheinfo
叢集資訊︰ 讀取與叢集相關的資訊。
例如,
http://<ip_addr:port>/IDMProv/rest/monitoring/statistics/clusterinfo
附註:您必須是安全性管理員才能使用 REST API 檢視使用者應用程式狀態統計資料。
安裝或升級 Identity Applications 後,為您要用於在 Identity Manager 儀表板中對使用者排序的每個屬性手動建立複合索引。您可以使用位於 eDirectory 安裝路徑中的 ndsindex 公用程式來建立複合索引。可以指定多個屬性並以 $ 符號分隔來建立複合索引。下面是需要建立複合索引的基本屬性︰
Surname,Given Name
Given Name,Surname
cn,Surname
Title,Surname
Telephone Number,Surname
Internet Email Address,Surname
L,Surname
OU,Surname
以下指令可協助您使用 ndsindex 公用程式來建立複合索引︰
ndsindex add [-h <hostname>] [-p <port>] -D <admin DN> -W|[-w <password>] -s <eDirectory Server DN> [<indexName1>, <indexName2>.....]
例如,要執行該指令以依 Title 屬性對使用者排序,請執行以下指令︰
ndsindex add -h <hostname> -p <ldap port> -D <admin DN> -w <admin passwd> -s <eDirectory Server DN> Title-SN;Title\$Surname;value