Results 1 to 3 of 3

Thread: Spring Roo very Slow

  1. #1
    Join Date
    May 2011
    Posts
    2

    Default Spring Roo very Slow

    I am using spring roo to manage my project which has about 90 classes. I had about 75% of the classes implemented and then generated the controllers and UI for the same.

    After that point any changes I made to the existing classes, either to add more relationships or extra attributes. Roo was very slow in making changes to the files.

    Also when I quit roo shell and open it later, it consumes a lot of CPU resources to load completely before I can start using roo commands in the shell.

    Any work around to speed up loading / making roo update the files when I make changes would be really appreciated.

    Thanks in Advance
    Santhosh

  2. #2
    Join Date
    Dec 2005
    Posts
    930

    Default

    Load the Roo shell and run the "metadata status" command. Paste the output here - I want to see what components are consuming the most time.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  3. #3
    Join Date
    May 2011
    Posts
    2

    Default Metadata information

    Thank you for the reply. Shown below is the metadata info.

    ~.domain.cbed.usageabe.usagespecabe.UsageSpecVersi on roo> metadata status
    000019 ms; 002164 call(s): org.springframework.roo.classpath.TypeLocationServ iceImpl
    000037 ms; 002164 call(s): org.springframework.roo.project.AutomaticProjectUp gradeService
    000058 ms; 000492 call(s): org.springframework.roo.addon.json.JsonMetadata
    000062 ms; 000492 call(s): org.springframework.roo.addon.serializable.Seriali zableMetadata
    000062 ms; 000492 call(s): org.springframework.roo.addon.entity.IdentifierMet adata
    000065 ms; 000492 call(s): org.springframework.roo.addon.property.editor.Edit orMetadata
    000086 ms; 000492 call(s): org.springframework.roo.addon.solr.SolrWebSearchMe tadata
    000113 ms; 000492 call(s): org.springframework.roo.addon.gwt.GwtMetadata
    000125 ms; 000492 call(s): org.springframework.roo.addon.solr.SolrMetadata
    000158 ms; 000492 call(s): org.springframework.roo.addon.configurable.Configu rableMetadata
    000292 ms; 002616 call(s): org.springframework.roo.addon.configurable.Configu rableMetadataProviderImpl
    000508 ms; 014662 call(s): org.springframework.roo.addon.property.editor.Edit orMetadataProvider
    000578 ms; 014662 call(s): org.springframework.roo.addon.solr.SolrWebSearchMe tadataProvider
    000624 ms; 016682 call(s): org.springframework.roo.addon.json.JsonMetadataPro vider
    000626 ms; 014662 call(s): org.springframework.roo.addon.solr.SolrMetadataPro vider
    000647 ms; 014662 call(s): org.springframework.roo.addon.serializable.Seriali zableMetadataProviderImpl
    000947 ms; 000554 call(s): org.springframework.roo.addon.test.IntegrationTest Metadata
    000967 ms; 000492 call(s): org.springframework.roo.addon.plural.PluralMetadat a
    001247 ms; 000640 call(s): org.springframework.roo.addon.plural.PluralMetadat aProviderImpl
    001261 ms; 000574 call(s): org.springframework.roo.addon.tostring.ToStringMet adata
    001296 ms; 000565 call(s): org.springframework.roo.addon.web.mvc.controller.c onverter.ConversionServiceMetadata
    001400 ms; 014724 call(s): org.springframework.roo.addon.test.IntegrationTest MetadataProvider
    001533 ms; 000002 call(s): org.springframework.roo.project.MavenProjectMetada taProvider
    001554 ms; 000492 call(s): org.springframework.roo.addon.dbre.DbreMetadata
    001810 ms; 013875 call(s): org.springframework.roo.addon.web.mvc.controller.c onverter.ConversionServiceMetadataProvider
    002095 ms; 000492 call(s): org.springframework.roo.addon.entity.EntityMetadat a
    002252 ms; 000492 call(s): org.springframework.roo.addon.javabean.JavaBeanMet adata
    002275 ms; 014662 call(s): org.springframework.roo.addon.dbre.DbreMetadataPro viderImpl
    002404 ms; 002591 call(s): org.springframework.roo.addon.javabean.JavaBeanMet adataProvider
    002471 ms; 000492 call(s): org.springframework.roo.addon.finder.FinderMetadat a
    002610 ms; 005376 call(s): org.springframework.roo.addon.tostring.ToStringMet adataProvider
    003366 ms; 087990 call(s): org.springframework.roo.addon.entity.IdentifierMet adataProviderImpl
    003599 ms; 005895 call(s): org.springframework.roo.addon.finder.FinderMetadat aProviderImpl
    004079 ms; 000651 call(s): org.springframework.roo.addon.dod.DataOnDemandMeta data
    005347 ms; 047060 call(s): org.springframework.roo.classpath.javaparser.JavaP arserMetadataProvider
    006283 ms; 016655 call(s): org.springframework.roo.addon.dod.DataOnDemandMeta dataProvider
    006313 ms; 006119 call(s): org.springframework.roo.addon.entity.EntityMetadat aProviderImpl
    104223 ms; 000941 call(s): org.springframework.roo.addon.web.mvc.controller.s caffold.WebScaffoldMetadata
    141449 ms; 000073 call(s): org.springframework.roo.classpath.PhysicalTypeIden tifier
    238409 ms; 009987 call(s): org.springframework.roo.addon.web.mvc.controller.s caffold.WebScaffoldMetadataProviderImpl
    397763 ms; 000522 call(s): org.springframework.roo.addon.web.mvc.jsp.JspMetad ataListener
    400474 ms; 000522 call(s): org.springframework.roo.addon.web.mvc.jsp.JspMetad ata
    433458 ms; 002164 call(s): org.springframework.roo.project.ProjectPathMonitor ingInitializer
    [DefaultMetadataService@7542ff45 validGets = 2746003, recursiveGets = 2717, cachePuts = 9939, cacheHits = 2445734, cacheMisses = 300269, cacheEvictions = 293252, cacheCurrentSize = 1438, cacheMaximumSize = 100000]
    ~.domain.cbed.usageabe.usagespecabe.UsageSpecVersi on roo>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •