Tomcat 7.0.68 war deploy is slow

649 views
Skip to first unread message

Anant Sajnani

unread,
Apr 17, 2016, 7:54:06 PM4/17/16
to Codehaus Cargo
I have a war project that is 132 MB and it takes over 5 mins to deploy(log below) when you deploy through maven cargo tomcat 7.0.68 container plugin . It takes usually 40 seconds to deploy when i run it through tomcat with cargo. It appears that it is the exploding of the war that takes time. Is there a way I can debug why it is it taking so much time. I have increased jvm meory but it is no use.

INFO: Deployment of web application archive /Users/ecd456/git/nsbapi/nsb-app/target/cargo/configurations/tomcat7x/webapps/nsb-app.war has finished in 322,650 ms

Apr 17, 2016 3:41:35 PM org.apache.catalina.startup.HostConfig depl


<plugins>

<plugin>

<groupId>org.codehaus.cargo</groupId>

<artifactId>cargo-maven2-plugin</artifactId>


<configuration>

<container>

<containerId>${tomcat.containerId}</containerId>

<log>/Users/ecd456/git/nsbapi/nsb-app/log.txt</log>

<output>/Users/ecd456/git/nsbapi/nsb-app/log1.txt</output>

<artifactInstaller>

<groupId>org.apache.tomcat</groupId>

<artifactId>tomcat</artifactId>

<version>${tomcat.version}</version>

</artifactInstaller>

<dependencies>

<dependency>

<groupId>javax.jms</groupId>

<artifactId>jms</artifactId>

</dependency>

<dependency>

<groupId>org.apache.tomcat</groupId>

<artifactId>tomcat-catalina-jmx-remote</artifactId>

</dependency>

<dependency>

<groupId>com.capitalone.chassis</groupId>

<artifactId>tomcat-extensions</artifactId>

</dependency>

<dependency>

<groupId>org.apache.logging.log4j</groupId>

<artifactId>log4j-api</artifactId>

</dependency>

<dependency>

<groupId>org.apache.logging.log4j</groupId>

<artifactId>log4j-core</artifactId>

</dependency>

<dependency>

<groupId>commons-logging</groupId>

<artifactId>commons-logging</artifactId>

</dependency>

<dependency>

<groupId>org.apache.logging.log4j</groupId>

<artifactId>log4j-jcl</artifactId>

</dependency>

<dependency>

<groupId>org.apache.logging.log4j</groupId>

<artifactId>log4j-1.2-api</artifactId>

</dependency>

<dependency>

<groupId>org.apache.logging.log4j</groupId>

<artifactId>log4j-slf4j-impl</artifactId>

</dependency>


</dependencies>

<systemProperties>

<JAVA_OPTS>-verbose:class -Xms512m -Xmx2056m</JAVA_OPTS>

<host.name>127.0.0.1</host.name>

<listen.port>${tomcat.port}</listen.port>

</systemProperties>

<timeout>600000</timeout>

</container>

<configuration>


<properties>

<cargo.servlet.uriencoding>UTF-8</cargo.servlet.uriencoding>

<cargo.servlet.port>${tomcat.port}</cargo.servlet.port>

<cargo.jvmargs>

-Xmx2048m

-XX:PermSize=1024m

-XX:ReservedCodeCacheSize=1024m

-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005</cargo.jvmargs>

</properties>



<configfiles>

<configFile>

<file>${project.build.directory}/tomcat-users.xml</file>

<todir>conf/</todir>

<tofile>tomcat-users.xml</tofile>

</configFile>



</configfiles>

</configuration>

<deployables>


 Can you please help me to figure out how to diagnose the issue?

S. Ali Tokmen

unread,
Apr 18, 2016, 1:05:49 AM4/18/16
to codehau...@googlegroups.com
Hi Anant

As explained in https://codehaus-cargo.github.io/cargo/Debugging.html the easiest, when you're using Codehaus Cargo with Maven2/Maven3, is to run mvn with the -X option.

You'll then have a lot of debug logs.

Hope this helps

S. Ali Tokmen
http://ali.tokmen.com/
http://contact.ali.tokmen.com/

From: Anant Sajnani
Sent: ‎18/‎04/‎2016 01:54
To: Codehaus Cargo
Subject: [codehaus-cargo] Tomcat 7.0.68 war deploy is slow

--
You received this message because you are subscribed to the Google Groups "Codehaus Cargo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-carg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/13854d8b-41d0-4e61-ab20-925c221c8d01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages