We just started a project in ADF, Oracle's Java EE framework. Usually we develop in Tomcat, then deploy into the production WebLogic servers.
But we realized ADF requires a WebLogic server installed locally to develop in Eclipse/JDeveloper. This is really heavyweight, even configured as dev, it is killing our machines, and taking a long time to deploy.
So, are there any configuration parameters we could tweak so WebLogic takes as few resources as possible? Are there any alternatives we could use?
We are mostly concerned about memory (it is taking a wonderful 800MB,) and startup time (~2 minutes)
Deploying servlets from the WebLogic Console. You may hot deploy ("register") and undeploy ("unload") servlets from the WebLogic Console without having to restart the WebLogic Server. Note: Hot deploying or hot undeploying a servlet from the WebLogic Console is only effective for the current server session.
Oracle WebLogic Server 14c (14.1. 1.0. 0) is a scalable, enterprise-ready Java Platform, Enterprise Edition 8 (Java EE 8) application server. Learn how to develop, secure, deploy, and administer Java EE applications, such as web applications, EJBs, web services, and more.
On the memory consumption issue, you might want to try setting the memory parameters of the JVM used by your WebLogic server. Log in to your WL Web Admin Console and go to Environment/Servers/[your server]/Configuration/Server Start and, on the "Arguments", setting something like -Xms256m -Xmx256m
will set your JVM's initial (Xms) and maximum (Xmx) heap size to 256 megabytes. You will want to play around with these numbers and find the best values for your environment. But please be aware that your Eclipse instance might be consuming a lot of memory as well.
Regarding the startup time, although a bit larger than I would expect, they seem OK. This problem is very frequent, and I don't think you will be able to definitely solve it. WebLogic has much more features than Tomcat, and this reflects in other characteristics of the environment (like startup time). You might find some useful tips here, though: Speed up Weblogic Server startup times
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With