4 Replies Latest reply on Feb 2, 2015 1:28 AM by swiderski.maciej

    Why build in KIE Workbench slows down when project have maven dependency?

    przemyslaw_krawczyk

      Hi,

      When I put some dependency to my project - my project build time is very, wery slow.

      Example from pom:

          <dependency>

            <groupId>com.fasterxml.jackson.core</groupId>

            <artifactId>jackson-databind</artifactId>

            <version>2.3.0</version>

          </dependency>

       

      It looks like a builder scans classes from dependency.

      I see many WARNINGS in log file:

      WARN  [org.guvnor.common.services.builder.Builder] (default task-46) Verification of class XXX failed and will not be available for authoring.

       

      How can I resolve this issue?

      Can I configure which classes should be scanned?

       

      Przemek

        • 1. Re: Why build in KIE Workbench slows down when project have maven dependency?
          swiderski.maciej

          scanning is required to be able to provide access to classes (usually model) to the authoring screens so you can use them in your rules, models, processes and so on.

           

          I'll check if there is an option to somehow filter it or customize behavior to speed up build time.

           

          HTH

          • 2. Re: Why build in KIE Workbench slows down when project have maven dependency?
            swiderski.maciej

            it was addressed in 6.2 so will be included in upcoming final version - see jira (and linked bzs) for details.

             

            HTH

            • 3. Re: Why build in KIE Workbench slows down when project have maven dependency?
              ahmedza

              Hi Maciej,

               

              Even the startup of kie workbench is very slow.and takes extra time. It tries to load all the artifact jars that are built and deployed through workbench.

               

              Have a look at the timestamp in the below log.

               

              16:40:50,451 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (MSC service thread 1-1) KieModule was added:ZipKieModule[ ReleaseId=org.drools:drools-wb-rest-defaultapprover:6.0.3-redhat-6file=/apps/jboss/redhat-iit/jboss-eap-6.1/standalone/tmp/vfs/deploymentdce1d0225f705f12/drools-wb-rest-defaultapprover-6.0.3-redhat-6.jar-6692cb022abdd7fa/drools-wb-rest-defaultapprover-6.0.3-redhat-6.jar]

              16:40:53,500 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-1) WELD-001440 Scope type @javax.enterprise.context.SessionScoped() used on injection point [field] @Inject @SessionScoped private org.kie.workbench.common.screens.explorer.backend.server.ExplorerServiceImpl.identity

              16:40:53,502 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-1) WELD-001440 Scope type @javax.enterprise.context.SessionScoped() used on injection point [field] @Inject @SessionScoped private org.kie.workbench.common.screens.explorer.backend.server.ExplorerServiceImpl.sessionInfo

              16:40:53,563 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-1) WELD-001440 Scope type @javax.enterprise.context.SessionScoped() used on injection point [field] @Inject @SessionScoped private org.guvnor.inbox.backend.server.InboxServiceImpl.identity

              16:40:53,576 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-1) WELD-001440 Scope type @javax.enterprise.context.RequestScoped() used on injection point [field] @Named @RequestScoped @Inject private org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.deploymentUnits

              16:40:53,704 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-1) WELD-001440 Scope type @javax.enterprise.context.SessionScoped() used on injection point [field] @Inject @SessionScoped private org.uberfire.backend.server.UserServicesImpl.identity

              16:40:53,735 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-1) WELD-001440 Scope type @javax.enterprise.context.RequestScoped() used on injection point [field] @RequestScoped @Inject private org.jbpm.designer.repository.vfs.VFSRepository.descriptor

              16:40:54,076 INFO  [org.apache.sshd.common.util.SecurityUtils] (MSC service thread 1-1) BouncyCastle not registered, using the default JCE provider

              16:40:54,973 INFO  [org.guvnor.m2repo.backend.server.GuvnorM2Repository] (MSC service thread 1-1) Maven Repository root set to: /apps/jboss/redhat-iit/maven-repository

              16:40:55,329 INFO  [stdout] (MSC service thread 1-1)  wagon http use multi threaded http connection manager maxPerRoute 20, max total 40

              16:44:04,800 WARN  [org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl] (MSC service thread 1-1) Error when deploying unit org.jbpm:HelloWorld:1.0 [strategy=SINGLETON] error message Cannot find KieModule: org.jbpm:HelloWorld:1.0

              16:44:04,821 INFO  [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-1) Setting preference 'type' to 'kjar'.

              16:44:04,822 INFO  [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-1) Setting preference 'drools.dateformat' to 'dd-MMM-yyyy'.

              16:44:04,822 INFO  [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-1) Setting preference 'drools.defaultlanguage' to 'en'.

              16:44:04,823 INFO  [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-1) Setting preference 'rule-modeller-onlyShowDSLStatements' to 'false'.

              16:44:04,823 INFO  [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-1) Setting preference 'designer.context' to 'designer'.

              16:44:04,823 INFO  [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-1) Setting preference 'drools.defaultcountry' to 'US'.

              16:44:04,824 INFO  [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-1) Setting preference 'drools.datetimeformat' to 'dd-MMM-yyyy hh:mm:ss'.

              16:44:04,824 INFO  [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-1) Setting preference 'build.enable-incremental' to 'true'.

              16:44:04,825 INFO  [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-1) Setting preference 'designer.profile' to 'jbpm'.

              16:44:04,857 INFO  [org.jbpm.executor.impl.ExecutorImpl] (MSC service thread 1-1) Starting Executor Component ...

                       - Thread Pool Size: 1

                       - Interval: 3 Seconds

                       - Retries per Request: 3

               

              SUGGESTION :

              There should be a configuration to load the artifacts on demand.

              • 4. Re: Why build in KIE Workbench slows down when project have maven dependency?
                swiderski.maciej

                that's the whole point of the workbench - once you deploy your projects they will be there after restart. So if you don't want to have them any more make sure you undeploy them. So it's configurable - just deploy what you actually need.

                 

                HTH