![在 WebSphere 8.0 上发布 EAR 文件时挂起](https://linux22.com/image/643650/%E5%9C%A8%20WebSphere%208.0%20%E4%B8%8A%E5%8F%91%E5%B8%83%20EAR%20%E6%96%87%E4%BB%B6%E6%97%B6%E6%8C%82%E8%B5%B7.png)
最近,我们的一些项目在发布到 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.
并且 8 个核心中有 4 个核心的 CPU 利用率达到 100%。
其他任何地方均未记录任何内容。
您知道是什么原因造成这种情况吗?
答案1
这可能是由所谓的注释扫描引起的。WebSphere 会扫描代码中的注释。根据您使用的框架(和硬件设置),这可能需要一段时间。您可以尝试加快注释扫描速度。 http://wasdynacache.blogspot.de/2012/05/how-to-speed-up-annotation-processing.html
有关更多日志详细信息,请查看 dmgr 日志或 ffdc 日志。
答案2
通过增加 HEAP 大小解决了这个问题。