-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Richard,

On 10/22/13 6:57 PM, Richard Pierce wrote:
> 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. However, the server is not restarting- just
> init gets recalled, even with no load on the box at all. I have no
> idea where to begin debugging this, but it does appear to be
> affecting performance.
> 
> The API states "The servlet container calls the init method exactly
> once after instantiating the servlet."
> 
> I added an instance and static variable to the servlet, to see
> whether the init method was being called multiple times on the same
> instance or if new instances were being created.
> 
> Initialized: 1 times (local), 28 total (static);
> Thead=http-127.0.0.1-51443-1  Time: Tue Oct 22 18:40:36 EDT 2013 
> Initialized: 1 times (local), 29 total (static);
> Thead=http-127.0.0.1-51443-1  Time: Tue Oct 22 18:40:41 EDT 2013 
> Initialized: 1 times (local), 30 total (static);
> Thead=http-127.0.0.1-51443-1  Time: Tue Oct 22 18:40:46 EDT 2013 
> Initialized: 1 times (local), 31 total (static);
> Thead=http-127.0.0.1-51443-1  Time: Tue Oct 22 18:40:51 EDT 2013
> 
> Obviously it is happening every 5 seconds, but WHAT is happening?
> 
> 
> Tomcat version: Apache Tomcat/6.0.35 OS: Linux version
> 2.6.18-194.11.3.el5

Is your servlet perhaps using SingleThereadModel?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSZ+rsAAoJEBzwKT+lPKRYlcIP/23Ch7Hien8CDbDM86vZmqBo
yjPMk+2Sc5AV2bH5pwUw3QHhU6bHBQ8m56cTKwKceuiR3fWgCCCCHXhZ7hDvbEoO
txLMJkEf71+g7vk435MXiRJgf8UrbDVncLI7hlWiAnOQAgbQHCM9+DHU1pdYdkSa
qFOk+cPOqY32yJaRa+RJNPuel/9bwXV32E5nTX8xejvq5XeKlJMEgRtRbbN0IoIt
hOAjJ9kODYPuq4pSpyvtaHIpBC1m8D9voqLRZgL5yn0TSXUKT/tw59MD8P5MnuRi
id1mBtAMMsEglpimKGfhGwcrQ3DoDl10ykKQe7dTt/WySveusolzD5UngH5nxXBl
cjpscCN6SuRA7ndSnXxvd6xMYykBiZViYcFCDBY+dWANFmdKgLwBwxj9u1AnV49k
2DyU/r/QiweLj6mEsoJs/WORnkUflnDiUKo6YT/TOW05GdajcoCF9ONVYx+QJ/co
viJAzh2r0fm5Nw1xBiOc0O1wiu51LLnWKzr9ptkD7uEro9D4dWSzL6yWbhIJlyEE
2F8eMOC4ZhxK6EnBYsFA9G9uL5gjXoGKugJlfNpYy9SL5sleB0EMvya8tfMKaCUy
yjVprnEAG48/xobyiBhZP86QUYHHFX9siXCz97/7Vk+lxX5VXZN654pq92B6JJGI
Hhugrhw8a79zq9+zbiIF
=bdUq
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to