Hi Boes, I also found with eclipse 3.5+, the deployment seems slower than before. I'm still investigating the root cause.
In deployment process, GEP will pass all artifacts(EAR,WAR,JAR) to WTP. As I know, WTP will analyze these artifacts, generate many objects, package&extract them. I've ever tried a big EAR and found most time is consumed by WTP. But I haven't further investigated the process in WTP. If possible, could you provide your app for me to double check the problem? Although we haven't found the root cause, there may be some workaround for you 1) To speed up the deployment of JSP, you can select "No re-deployment when only JSP files are updated" in "Test environment" section of server "Overview" page. You may find the page after double click server instance in "Servers" view. 2) Put all lib you will never change as shared library in Geronimo server 3) Avoid automatic publishing. If automatic publishing is enabled, any save action on an deployed artifact will trigger publishing. It's inconvenient for a big artifact. I suggest you disable it and manually publish it when all your changes have been completed. You can select "Never publish automatically" in "Publishing" section of server "Overview" page. Hope it helps! 2010/3/30 boes <[email protected]> > > Hi, > > I have an Enterprise Application (EAR) that I develop in Eclipse > (galileo-SR1). When I publish my EAR to the started local Geronimo V2.1.4 > server, it takes more then 3 minutes to finish. I use GEP version 2.2. > During the process 1 CPU is constantly running at 100%, so it looks like > the > system is very busy. The status bar shows 'Publishing to Apache Geronimo > V2.1 at localhost (0%)' and it stays on 0% almost to the end of the > publishing process. > > When I export the application as an .ear file to the file system and then > deploy the application to the same Geronimo server using the Geronimo > console, I found that writing the EAR to the filesystem takes 2 seconds to > complete, and the deployment of the EAR to Geronimo takes about 8 seconds. > > My EAR consists of 8 web applications (WAR) and one utility project (JAR). > Deployment to the production environment also takes less then 10 seconds. > The application itself is extensively used and stable. > > Is there a logical reason why publishing takes much more time then > deployment? Are they two different things that can't be compared? > > I tried to get some more info on what the publishing process is actually > doing in those three minutes. In the server settings in Eclipse I set the > console output to 'Debug', but I did not get any output from GEP. Is there > an option to make GEP verbose and let it print what it is doing? > > I found that adding dependencies to a project slows down the publishing > process. I started with a new EAR project with one WAR, which had only one > html page. It takes a second to publish this EAR to Geronimo. Then I > extended the geronimo-application.xml deployment despriptor by adding some > dependencies to existing libraries in the Geronimo repository. This > increases the publish time to 30 seconds. How can that be explained? > > Is there any more info on GEP? What is it doing when it publishes an EAR to > Geronimo? What can I do to speed up publishing? > > Thanks for any help and information on this subject. > > Boes > > > -- > View this message in context: > http://n3.nabble.com/Publish-with-GEP-takes-minutes-while-deploy-takes-10-seconds-tp684484p684484.html > Sent from the Development mailing list archive at Nabble.com. > -- Best Regards, Delos
