• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deploying folders/apps 7 times?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 440
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic