Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying folders/apps 7 times?

 
Marcus Fernstrom
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings!

I run a server with Tomcat, and I've noticed something odd, over time it's taking longer and longer to start/restart, and I finally started digging into it when restarting took about 15-20 minutes (For just Tomcat)
What I found was that the folders/applications are being deployed 7 times each!

I have no idea what would cause something like that, I don't even know in what end to start looking for the cause, I'm hoping that someone here recognizes the issue and could point me in the right direction.
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marcus,
It does seem to be a very peculiar problem. Maybe its some issue with the tomcat itself. Try deploying the same applications to a separate ( a fresh tomcat 7 ) instance and see if the issue persists there.
 
Marcus Fernstrom
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I run it for OpenBD so I asked the same question on a different forum, a fellow coder had run into the same problem and it had to do with "deploying" subfolders.
The fix was simple:

In the virtualhost setup: deployOnStartup="true" autoDeploy="false" deployIgnore=".*"
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad you were able to solve your problem and thanks for sharing the solution !
 
Marcus Fernstrom
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe it helps someone else running into the same problem

Yeah everything was being deployed, including subfolders, which of course exists for every project/app, so over time the number of "deployments" grew quite a bit.

It's been running smooth ever since, and I'm glad I had a chance to learn a bit more about Tomcat.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic