Hi Boes, Could you open a JIRA for it? It would be appreciated if you could upload the two applications as attachments.
2010/3/30 boes <[email protected]> > Hello Delos, > > I created two EAR projects. Both having three WAR's in the EAR. The WAR's > are created in Eclipse as 'Dynamic Web Project'. > > The only difference between the two projects is in the HiThereSlow > projectthat I changed geronimo-application.xml. I added dependencies to > some libraries that do exist in the Geronimo repository. The libs are in > the repository after a fresh installation of > geronimo-tomcat6-javaee5-2.1.4. > > Although I added the depency tags, the libraries are not used by the > application. Publishing the two projects shows that the project with the > depencies (HiThereSlow) takes much more time to publish than the one > without (HiThere). On my old laptop it takes 15 seconds to publish > HiThereSlow, where HiThere is published in a second. Adding more empty > WAR's to the HiThereSlow EAR will increase the publishing times almost > linear with the number of WAR's. > > I can't see why the publishing process should do anything with the > dependencies in geronimo-application.xml. Maybe it does some verification, > but it should not do so. Deploying HiThereSlow using the Geronimo console > on the running Geronimo server is going very fast. > > Please let me know if this information is of any use. If you have some > more questions or don't understand my English (I'm Dutch) please let me > know. > > > Gert-Jan Boesschen Hospers (Boes) > > > > > > > > > > > > > > > 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 <[hidden > > email]<http://n3.nabble.com/user/SendEmail.jtp?type=node&node=685980&i=0>> > > > > >> > >> 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 > > > > > > ______________________________________ > > View message @ > > > http://n3.nabble.com/Publish-with-GEP-takes-minutes-while-deploy-takes-10-seconds-tp684484p684965.html > > > > To unsubscribe from Publish with GEP takes minutes, while deploy takes 10 > > > seconds, click > > <Link Removed> > > > > Gert-Jan Boesschen Hospers > > Idematica > Elzenlaan 23 > 1214 KJ Hilversum > 06 24253633 > > > *HiThere.ear* (6K) Download > Attachment<http://n3.nabble.com/attachment/685980/0/HiThere.ear> > *HiThereSlow.ear* (6K) Download > Attachment<http://n3.nabble.com/attachment/685980/1/HiThereSlow.ear> > > ------------------------------ > View this message in context: Re: Publish with GEP takes minutes, while > deploy takes 10 > seconds<http://n3.nabble.com/Publish-with-GEP-takes-minutes-while-deploy-takes-10-seconds-tp684484p685980.html> > > Sent from the Development mailing list > archive<http://n3.nabble.com/Development-f342155.html>at Nabble.com. > -- Best Regards, Delos
