2013/10/23 Caldarale, Charles R <chuck.caldar...@unisys.com>: >> From: Richard Pierce [mailto:rpie...@empoweredbenefits.com] >> Subject: Servlet init method called multiple times > >> The init() method of all of my servlets is being called every 10 seconds or >> so. >> I verified this by adding a System.out to the init() methods of my servlets. > > Add a stack trace (Thread.dumpStack()) in addition to your System.out() print > to find out where the calls are coming from. >
+1 2) Configure an AccessLogValve. (Tomcat 6 has an example of one in its server.xml, but it is not enabled by default). >From the names of those threads I would assume that they process incoming HTTP connections. 3) Add logging of destroy() methods. Those should match your init() ones, unless your init() method fails. Your logging of "1 times (local)," apparently means that a new servlet instance is initialized each time. 4) Autodeployment process usually runs every 10 seconds and may trigger redeploy or reload of a web application. (It does not match your "every 5 seconds" log messages nor those thread names.) Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org