MethodServer 無法啟動時排查方式

2021-09-28 05:42:14 字數 1282 閱讀 4173

在啟動windchill服務的時候,難免會在開發過程**現methodserver 無法啟動的情況,在排查時,經常會發現沒有日誌,什麼表面問題都無法定位資訊。

總體上可以分為method能蹦躂和完全不蹦躂的情況。

servermanager 可以啟動,但處於掛起狀態。methodserver沒有啟動反應

場景一問題定位

1.hosts 檔案中的伺服器別名或伺服器名稱配置對映到了錯誤的ip位址

2.連線資料庫伺服器失敗

場景一解決辦法

1.檢視host檔案

2.如果是資料庫,可能是由於資料庫無法識別監聽,可以使用plsql 看是否能使用db.properties 檔案中的配合進行連線資料庫,

如果資料無法連線,但用sqlplus可以連線,可能是因為tns的description有問題, 無法識別host,可以將tns串的host修改為127.0.0.1嘗試下。

methodserver 一閃而過,後台沒有日誌,servermanager可以啟動,且沒有異常,沒有其他任何異常資訊。

這個問題是比較頭疼的,因為沒有切入點去找到有用的資訊

場景二問題定位

因為沒有直接的資訊反饋,methodserver 一閃而過,說明ms 是可以啟動的。

9.找到methodserver 和servermanger的真實啟動方式

針對伺服器管理器,windchill shell執行以下命令:

windchill wt.manager.baseserverlauncher -p servermanager

針對方法伺服器,windchill shell執行以下命令:

windchill wt.manager.baseserverlauncher -p methodserver

3.拷貝以上命令輸出結果,在windchill shell中,重新輸入命令

針對microsoft windows作業系統修改結果如下:

輸出完第三步的命令之後,可以在windchill shell中看到錯誤的異常資訊,同時後台會有異常列印。

場景二的定位方式可以適用於所有methodserver 或者 servermnaager不能啟動的情況

最後總結:

某個開機自啟的服務無法啟動導致系統無法啟動故障解決

cd etc init.d vim testsrv 輸入以下內容 bin bash chkconfig 2345 99 00 description this service is used for test case 1in start echo the service is started to...

啟動兩個MethodServer

安裝指南p165 17 4 上說 xconfmanager s wt.manager.monitor.start.methodserver 2 t codebase wt.properties p 如果cpu和記憶體足夠,一般配置多個methodserver。伺服器上一般都至少配置1 2個metho...

oracle安裝筆記 sqlplus無法啟動

在任何位置輸入sqlplus顯示沒有找到命令,如下 oracle lcc bin sqlplus bash sqlplus command not found 檢視環境變數配置正確 export ld library path oracle home lib ld library path path...