-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Chuck,
On 8/30/15 8:52 PM, Caldarale, Charles R wrote: >> From: Jerry Malcolm [mailto:techst...@malcolms.com] Subject: >> Webapp killing entire Tomcat process > >> But in my opinion, no matter what happens in the code, TC >> shouldn't completely die, correct? > > Nope, it's all one process, and any thread can take it out. > Running with a security manager reduces the chance, but doesn't > preclude it. Simple silliness such as calling System.exit() will > also stop everything. > >> I guess my question is, do you have any suggestions for anything >> my code might do that could kill the process? At least it might >> give me a start at what to look for. > > The first step is to stop running Tomcat as a service, and instead > start it from a command prompt using the startup.bat script. You > can also attach a debugger this way and watch what's going on, set > breakpoints, etc. +1 Having access to stdout/stderr is very helpful. I'm not sure what the Windows service runner does with those streams, but you ought to find them and look at the history. If it's not a System.exit() (which would be very susprising to find in a web application's code), it's more likely to be something like a JVM bug or some native component (like tcnative) crashing the JVM. Even OOME doesn't kill the JVM... it just likely lobotomizes the application that's currently running within it. - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJV5GihAAoJEBzwKT+lPKRYUb8P/0uvJukA9SJFrWCjwo+FwVAG eGTJVYbny38xd02+3hNTfXrfVPENzDhwWaTEkvcXUUp3jy/IgEgzQJdfTmVe55PM sYY5CiFgDSsSYkHZ125k7En3GiIH94pGhL6CojXIvW7Z8oGL0L9WIoPC6QQSjcUc VYBfcYTY+lCli8lkU6OXbnfAZ8aOJoyuG7SQCffor/5ZHS09tLTCry52J+hTf+ro K5Fop10Wpk3r7dOUF5hBVC9xk4kJZpiMLxeKdXDfjp10QHF8AeJ5r0B0halTfl4G GEzboxsAgF/cavktnmUsVrJvarG8mlHl2anvjHegnKPqrU+i0zMRRt5ul/kqZGxI sEfKZow8jw6n/Bc1KinfeK+C65wQ24rKSEi28hUyFDh6Rve1DvRZn5MsyK2//xpG 6u2mZIQMjW0jbsazRqDbA0YVBiKkUHlI3bHpRBKklC4wQ477KeMiB1AX70l0hocr 3mzjimG6hb4U+Am8lI6MSGjU4djU9Vl8HtlCSDiovldV7GhQInceRRCZL04BHDaG qLy+G6QqwJyc51d8jDjakP9DqvFFf0x14Z63+Dwog/kmNp33b3sRAMXr0uF8aUIK 4/ZyKULqv1oRk5ZBIRDa++da3ZHDI6YHmrPVIxfH+XHcfG3AqXlPGoOCEQ9txvG6 QKgbLnzjQwOrV/WkAJae =Y0v/ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org