tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Apache Tomcat service has been shutting down/stopping randomly.
Date Tue, 21 May 2013 18:49:22 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

James,

On 5/21/13 1:25 PM, James Snider wrote:
> Below is the most recent Exception Access Violation tcnative Error
>  we are receiving. This error log is generated every time the
> service randomly stops causing us to believe this to be the
> primary catalyst.

So now the big question: can you reliably trigger the "primary
catalyst"? If so, we can try a few things.

First, figure out how to blow-up your application. That shouldn't be
that tough: just make sure you exercise the code that uses ImageIO to
write directly to a ServletOutputStream. Since you said that you
aren't using ImageIO, this might present a challenge.... but you are
going to have to find it.

Next, implement the OutputStream-wrapper[1] in the code that bombs.

Then, try to bomb your webapp again. If it no longer bombs, then you
are probably done: congratulations. If it still bombs, you might have
missed a use of ImageIO: look again, re-wrap and re-try.

If that does not work, we could use some more information about your
environment. IIRC, you have installed Tomcat 7.0.40 including the
bundled tcnative library, on Microsoft Windows in a directory called
"Tomcat 5.5" because of some hard-coded paths. So, everything is
TC7.0.40, the library is statically-linked, and the tcnative version
is 1.2.27. Can you confirm the above and also confirm the versions of
tcnative, APR, and OpenSSL you have? They should all be displayed in
your catalina.out log file (or wherever stdout goes when you launch
Tomcat) near the beginning of the output after a fresh TC launch.

If you are in production and just want to stop crashing, then you
should switch connectors: use either the BIO or NIO connectors and you
should avoid the fatal crash that occurs when the native stream has
(likely) been closed and nulled-out.

- -chris

[1] http://wiki.apache.org/tomcat/FAQ/KnownIssues#ImageIOIssues
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRm8GxAAoJEBzwKT+lPKRYg6kP/3WHQ6+iWjqxo4VEhKio0vos
fvY7YBu3LOGg0Yu0h1Flvl26JNo+iAW4fl+KsAetZVZQFX3GBV7mN4meKh5GuS60
ft3eu9fXL+i0oPQUyy4m4IK2RmuBbMSNp0f9q0MtifRpIOlyW4/XfcLesgiFsOxM
dLHoWFYppDwW812x7zdjCzSZxlvNgVhPPnO9UipfM4oGMH5FSqTe/c19Omi7s4gv
La2WpRSF2QDAQ5ldEXfblsOd2fSo8nDJEkJ7MwYb60/w6eEmxxJO2Y+NZfesA9wU
HXXqUcNevU0CsiEsE4Ji05CzHPgNg+EGsaAYhjeZSVkdmBl6frm40SuKAe5c7rVc
mRPgq5TyHnvr46ypar6vWoxaF4HVl0vNRgc1/jGE3y2WdCFBRm3K8wVWFGzrYaRd
1bbeyXxsEsxlkt8YvaL4/IXrvqOV9zhh1N9WuiR2lV5f4rWxwnBzX96J2VhA6/CI
JyIeSl+f8G7Bm7H/Ey0Vxz97lq1iDWB6W+V4psKksXzgdghOh5TagnVg1mOW7ZC2
mGuCffu5bQcbW8hwmAZhMBbUujxGOupSAyrlBezFR2iCLOMrMQq38dmHW6juG440
APhCun1hiLENNAFsfmn3YvQXawG30hEs1jdZpJ91iJjHwQkIaKviJEvLkK1svMAt
jFIkQ8854CUckhcWLYnS
=Uu3w
-----END PGP SIGNATURE-----

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


Mime
View raw message