Application deploy is taking a long time in JBoss EAP 6 installed in a remote directory

Solution Verified - Updated -

Issue

The application deploy is slow in the Host Controller. The same application deploys in less than 5 minutes in the Domain Controller, but it takes more than 40 minutes in the Host Controller servers and timeout.

INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "application.war" (runtime-name: "application.war")
ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 307) JBAS013412: Timeout after [2400] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'deploy' at address '[("deployment" => "application.war")]'

Thread dumps indicate that it is executing jandex during the deploy:

"MSC service thread 1-8" #20 prio=5 os_prio=0 tid=0x0000100264037000 nid=0x109d5 runnable [0x000010022356d000]
   java.lang.Thread.State: RUNNABLE
    at java.util.ArrayList.toArray(ArrayList.java:408)
    at java.util.jar.JarVerifier.mapSignersToCertArray(JarVerifier.java:398)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:242)
    at java.util.jar.JarVerifier.update(JarVerifier.java:228)
    at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:482)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    - locked <0x00000007ac7f0b60> (a java.io.BufferedInputStream)
    at java.io.DataInputStream.readFully(DataInputStream.java:195)
    at java.io.DataInputStream.readFully(DataInputStream.java:169)
    at org.jboss.jandex.Indexer.verifyMagic(Indexer.java:441)
    at org.jboss.jandex.Indexer.index(Indexer.java:697)
    at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:100)
    at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:177)
    - locked <0x000000072a202a50> (a org.jboss.as.server.deployment.DeploymentUnitPhaseService)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2064)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1987)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
   Locked ownable synchronizers:
    - <0x00000006c1096d88> (a java.util.concurrent.ThreadPoolExecutor$Worker)

"MSC service thread 1-8" #20 prio=5 os_prio=0 tid=0x0000100264037000 nid=0x109d5 runnable [0x000010022356d000]
   java.lang.Thread.State: RUNNABLE
    at java.io.FileInputStream.readBytes(Native Method)
    at java.io.FileInputStream.read(FileInputStream.java:233)
    at org.jboss.vfs.VFSUtils.copyStream(VFSUtils.java:439)
    at org.jboss.vfs.VFSUtils.copyStream(VFSUtils.java:418)
    at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:496)
    at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:533)
    at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:107)
    at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:93)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:177)
    - locked <0x0000000796f03750> (a org.jboss.as.server.deployment.DeploymentUnitPhaseService)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2064)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1987)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
   Locked ownable synchronizers:
    - <0x00000006c1096d88> (a java.util.concurrent.ThreadPoolExecutor$Worker)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content