加快 Weblogic Server 启动时间 [英] Speed up Weblogic Server startup times

查看:58
本文介绍了加快 Weblogic Server 启动时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的工作中,我们使用 Weblogic Server 来托管企业门户.哪个没问题.

At my work, we use Weblogic Server to host an enterprise portal. Which is fine.

然而,我最近有机会在一些副项目中使用 Tomcat,我对速度的惊人差异感到震惊.Tomcat 启动需要 3-5 秒,部署一个中型项目需要 10-15 秒.Webblogic 启动需要 3-5 分钟,部署最多需要 10 分钟.这会扼杀任何迭代开发.

However, I've recently had the opportunity to use Tomcat for some side projects, and I am struck by the incredible difference in speed. Tomcat takes 3-5 seconds to start up, and 10-15 seconds to deploy a medium-sized projects. Wewblogic takes 3-5 minutes to start, and up to 10 minutes to deploy. This kills any iterative development.

我是否不得不接受它缓慢而臃肿的状态,或者我可以做些什么来加快它的速度?有人有这方面的经验吗?

Am I going to have to resign myself to its being slow and bloated, or is there anything I can do to speed it up? Anyone have experience with this?

推荐答案

你不能把青蛙变成公主.我有点想知道 weblogic 的那些启动时间 - 它们看起来有点过分,你绝对不是在 linux 上运行的?

You will not be able to turn the frog into a princess. I would wonder slightly about those startup times for weblogic - they seem a bit excessive, you're not running on linux by any chance ?

如果您正在运行嵌套存档(耳朵内的战争等)以及目录扫描技术(休眠、弹簧等),您可以尝试在部署之前将其全部解压到相应的分解结构;众所周知,它会有所帮助.

If you're running nested archives (wars within ears etc) and also directory-scanning technologies (hibernate, spring etc), you may try unpacking it all to the corresponding exploded structure before deploying; it has been known to help a bit.

Tomcat 包含 weblogic 所具有的一个非常小的特性子集.我们开发在 jetty 上,但部署在 weblogic 上用于验收/生产环境,而且效果很好.你可以用 tomcat 做同样的事情.

Tomcat contains a very small subset of the features weblogic has. We develop on jetty but deploy on weblogic for acceptance/production environments and this works fairly well. You can do the same with tomcat.

Tomcat 是一个相当严格的容器,而 weblogic 是宽松的,因此您通常只会在部署到 weblogic 时遇到一些小麻烦,特别是只要您持续执行这两项操作.

Tomcat is a fairly strict container whilst weblogic is lenient, so you'll normally have only minor troubles deploying to weblogic, especially as long as you continuously do both.

您还可以使用像 javarebel 之类的工具来进行非常漂亮的热部署并避免所有这些重新启动.

You can also use a tool like javarebel to do really nifty hot-deployment and avoid all those restarts.

这篇关于加快 Weblogic Server 启动时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆