Websphere Application Server-快速启动需要什么?

周杰伦:

我正在使用带有集成测试环境的Rational Application Developer v7.0。当我调试我的Web应用程序时,调试模式下的服务器启动时间接近5-6分钟-足够时间来喝杯咖啡!

有时,这让我感到恼火,以至于我开始咒骂IBM构建操作系统而不是应用程序服务器!生成20多个进程和无用的服务,而没有记录的配置来对其进行调整,以使其启动更快。

我确信那里有很多Java开发人员会同意我的观点。我试图通过管理控制台禁用默认应用程序和一组服务,但是并没有太大帮助。

我没有Web服务,没有企业bean,没有队列,只是一个需要连接池的简单Web应用程序。您过去是否做过一些事情来使您的集成测试环境,在调试模式下快速启动并减少内存消耗?

更新:我尝试禁用一些服务(国际化,默认应用程序等),现在WebSphere服务器变得越来越糟。它不仅耗费了可怕的启动时间,而且还时不时地冻结长达2分钟。:-(听起来,优化并非总是一件好事!

尼克·霍尔特(Nick Holt):

调试服务器代码的最佳方法是使用远程调试。

首先,您需要在服务器启动脚本的JVM参数中添加以下内容:

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

这将导致JVM在指定的端口上进行侦听,然后您可以从IDE中针对该端口启动远程调试会话,并进行调试,就像代码在同一进程中运行一样。

以这种方式工作可以避免您如此频繁地重新启动服务器,从而避免了Websphere启动时间的问题。

如果服务器上的二进制文件和IDE中的源代码不同步,您可能会得到一些奇怪的结果,但是总的来说这不是问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Websphere Application Server导入设置

在 WebSphere Application Server (WAS) 上运行 ChromeDrive

WebSphere Application Server 6.1对Java 1.6的支持?

Websphere application server start access denied

Java WebService-WebSphere Application Server

部署Jenkins之后,应用程序启动发行Websphere Application Server 8.5

为什么Spring Security config在Websphere Application Server上生成cvc-complex-type.2.4.c?

Websphere Application Server 7(WAS)中EJB的默认JNDI名称是什么?

什么是IBM WebSphere Application Server中受监视的部署的轮询间隔

Websphere Application Server中的策略集的父/子关系是什么?

删除或删除现有Websphere Application Server的配置文件

如何为Websphere Application Server启用CORS支持

从适配器访问WebSphere Application Server资源

IBM WebSphere Application Server运行时的清单

getServletContext()。getRealPath(“”)在WebSphere Application Server Liberty中返回null

Websphere Application Server 9 Tomahawk20中的Popupcalendar

IBM Websphere Application Server中单元级别的JVM args

在 WebSphere Application Server 上设置 HSTS 标头

是否可以在不重新启动应用程序的情况下重新加载WebSphere Application Server(WAS)中的共享库?

如何将Websphere Application Server 8.0添加到IBM Rational Application Developer 8.5.5

Websphere Server错误启动服务器失败

如何在 WebSphere Application Server v9 上将 URL http 重定向到 https

eclipse + WDT +自由:如何配置eclipse以不创建“ WebSphere Application Server Liberty”项目?

如何在Bluemix上垂直和水平扩展WebSphere Application Server?

使用IBM WebSphere Application Server Liberty概要文件配置Mysql数据源

尝试命中WebSphere Application Server上部署的应用程序时缺少资源异常

有没有办法从IBM Websphere Application Server管理控制台检索EAR?

如何在Eclipse中增加WebSphere Application Server V8.5 Liberty Profile的堆大小?

更改WebSphere Application Server传统ND V9的根目录