Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Shutdown issue

 
Joe Harry
Ranch Hand
Posts: 10091
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have a strange error when I shutdown my Tomcat instance:


I guess it has got to do with Log4j. How can I bettwr avoid this?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think this is directly due to Log4j. Log4J normally wouldn't spawn threads. I think you'll need to dig deeper.
 
Joe Harry
Ranch Hand
Posts: 10091
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the message above shows that a ThreadLocal of type org.apache.log4j.helpers.ThreadLocalMap was created and this is from the Log4j API?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't ask me! Like I said, it requires some more digging. But log4j is essentially a linear, synchronous process. Unless you're using some sort of channel that queues and forwards log messages or something.
 
Joe Harry
Ranch Hand
Posts: 10091
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would it be a good idea to completely ignore this message as it seems to happen only during shutdown and startup intervals.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic