5
5
5etroff2014-12-09 11:42:30
Java
5etroff, 2014-12-09 11:42:30

Why does deploy to tomcat7 via maven hang?

I deploy via tomcat7-maven-plugin . First with the command mvn tomcat7:deploy , and then mvn tomcat7:redeploy .

Uploading : dev.server.ru:8080/manager/text/deploy?path=%2F&up...
Uploaded: dev.server.ru:8080/manager/text/deploy?path=%2F&up... (90924 KB at 9180.5 KB/sec)
[INFO] tomcatManager status code:200, ReasonPhrase:OK
[INFO] OK - Undeployed application at context path /
[INFO] OK - Deployed application at context path /
[INFO] -------- -------------------------------------------------- --------------
[INFO] BUILD SUCCESS
[INFO] ---------------------- --------------------------------------------------
[INFO] Total time: 4:30.703s
[INFO] Finished at: Tue Dec 09 13:22:45 OMST 2014
[INFO] Final Memory: 26M/485M
[INFO]---------------------------------------------------- ------------------------

After about 3-4 deployments, everything stops working, viz. Maven shows this step for a long time:
Uploading : dev.server.ru:8080/manager/text/deploy?path=%2F&up...
Uploaded: dev.server.ru:8080/manager/text/deploy?path=%2F&up... (90924 KB at 9180.5 KB/sec)

Although if you go to dev.server.ru:8080 the application is already running and running.
You have to interrupt the work of the CTRL + C
command. And then, when you try to deploy, it freezes at the step:
Uploading : dev.vseplatezhi.ru:8080/manager/text/deploy?path=%...

And only restarting tomcat helps to fix everything.
What could be the problem? And in what direction do you need to dig in order to solve the problem?
Software versions used:
Server version: Apache Tomcat/7.0.28
Server built: Apr 8 2014 08:47:08
Server number: 7.0.28.0
OS Name: Linux
OS Version: 3.2.0-4-amd64
Architecture: amd64
JVM Version: 1.7.0_55-b13
JVM Vendor: Oracle Corporation
Apache Maven: 2.2.1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
protven, 2014-12-09
@protven

Show the jmap -heap $PID command, where $PID is the process of the running tomcat.
Wang that your permgen is running out due to constant redeploys.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question