Installation

發布 EAR 文件在 WebSphere 8.0 上掛起

  • October 27, 2014

最近我們的一些項目在發佈到 WebSphere 8.0 時開始掛起(用 8.0.0.5、8.0.0.6 和 8.0.0.9 測試),但這種情況並非總是發生。

這是正常的安裝細節

Installing...
If there are enterprise beans in the application, the EJB deployment process can take several minutes. Do not save the configuration until the process completes.
Check the SystemOut.log on the deployment manager or server where the application is deployed for specific information about the EJB deployment process as it occurs.
ADMA5016I: Installation of ImagesServerEAR started.
ADMA5067I: Resource validation for application ImagesServerEAR completed successfully.
ADMA5058I: Application and module versions are validated with versions of deployment targets.
ADMA5005I: The application ImagesServerEAR is configured in the WebSphere Application Server repository.
ADMA5005I: The application ImagesServerEAR is configured in the WebSphere Application Server repository.
ADMA5081I: The bootstrap address for client module is configured in the WebSphere Application Server repository.
ADMA5053I: The library references for the installed optional package are created.
ADMA5005I: The application ImagesServerEAR is configured in the WebSphere Application Server repository.
ADMA5001I: The application binaries are saved in C:\IBM\WebSphere\AppServer\profiles\AppSrv11\wstemp\92668751\workspace\cells\SRV-CLI-DEVNode11Cell\applications\ImagesServerEAR.ear\ImagesServerEAR.ear
ADMA5005I: The application ImagesServerEAR is configured in the WebSphere Application Server repository.
SECJ0400I: Successfully updated the application ImagesServerEAR with the appContextIDForSecurity information.
ADMA5005I: The application ImagesServerEAR is configured in the WebSphere Application Server repository.
ADMA5005I: The application ImagesServerEAR is configured in the WebSphere Application Server repository.
ADMA5113I: Activation plan created successfully.
ADMA5011I: The cleanup of the temp directory for application ImagesServerEAR is complete.
ADMA5013I: Application ImagesServerEAR installed successfully.
Application ImagesServerEAR installed successfully.
To start the application, first save changes to the master configuration.
Changes have been made to your local configuration. You can: 
•  Save directly to the master configuration. 
•  Review changes before saving or discarding.

但是當部署掛起時,日誌只顯示這個

Installing...
If there are enterprise beans in the application, the EJB deployment process can take several minutes. Do not save the configuration until the process completes.
Check the SystemOut.log on the deployment manager or server where the application is deployed for specific information about the EJB deployment process as it occurs.
ADMA5016I: Installation of ImagesServerEAR started.
ADMA5067I: Resource validation for application ImagesServerEAR completed successfully.

並且 CPU 在 8 個核心中的 4 個上達到 100%。

任何地方都沒有記錄任何其他內容。

關於可能導致這種情況的任何想法?

通過增加 HEAP 大小的數量解決了這個問題。

這可能是由所謂的註釋掃描引起的。WebSphere 掃描程式碼以查找註釋。根據您使用的框架(和您的硬體設置),這可能需要一段時間。您可以嘗試加快註釋掃描速度。 http://wasdynacache.blogspot.de/2012/05/how-to-speed-up-annotation-processing.html

有關更多日誌詳細資訊,請查看 dmgr 日誌或 ffdc 日誌。

引用自:https://serverfault.com/questions/636568