tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: tomcat on windows 2012 weirdness
Date Thu, 11 Dec 2014 21:10:01 GMT
Hash: SHA256


On 12/11/14 4:00 PM, Jeffrey Janner wrote:
> I noticed the ridiculous number of session issue on one of my
> servers, but it wasn't Windows 2012, but 2008 R2.  Don't think the
> windows version has anything to do with it, but something about the
> Tomcat version. Looking at the manager, I had a couple hundred
> really old sessions, several hours expired, that were still showing
> up in the list.  When I click on the "expire" button, they all went
> away. Noticed this when I was starting the upgrade to the latest
> Tomcat 7 release, and haven't checked back to see if it is still an
> issue since the upgrade.  If I get a little time later today, I'll
> recheck.

I think this can happen if Tomcat's background processing thread dies.
That can happen for a few reasons, including a transient OOME where
the GC can catch-up once the offending thread (e.g.
BackgroundProcessor) dies and releases its local references.

Once that happens, sessions will never automatically die.

I can't remember if clicking "expire sessions (now)" just wakes up the
background thread (which would do nothing, of course), or if it
synchronously does a cleanup (which would fix the issue, but only

- -chris

>> -----Original Message----- From: Cris Berneburg - US
>> [] Sent: Thursday, December 11, 2014
>> 10:28 AM To: Subject: tomcat on windows
>> 2012 weirdness
>> Hi Folks
>> I'm having trouble with my JSP web app using Tomcat 6 and 7 on
>> Windows Server 2012.
>> The issue is that no matter what file I request in the browser
>> URL, it always returns the app welcome file, that is, the login
>> page.  Even when requesting an image.  The one exception is that
>> after logging in, the main menu page appears, but none of the
>> graphics or CSS files load. Clicking on the app links, it just
>> brings up the welcome page again. Checking the Tomcat log files,
>> I see that Tomcat is returning the welcome page instead of the
>> files requested in the main menu page.
>> Using the Tomcat manager, I see that my application has a
>> ridiculous number of sessions, instead of just one.  I interpret
>> that for every single file requested, a new Tomcat session is
>> being generated and possibly invalidated.
>> FYI, using the same setup on Windows Server 2003 and 2008 works
>> fine. Opening the same firewall ports on all three OS's has been
>> done.  Even disabling the firewall on 2012 does not affect the
>> issue in any way. And to make things even weirder, accessing the
>> application from a browser on the server itself using localhost
>> works fine!
>> I wonder if there is some mystery setting somewhere that is
>> crippling the app.  Got any suggestions?  Please help.  Thanks!
>> -- Cris Berneburg, Lead Software Engineer CACI, IRMA Project,
>> 703-679-5313
>> ---------------------------------------------------------------------
To unsubscribe, e-mail:
>> For additional commands, e-mail:
> ---------------------------------------------------------------------
To unsubscribe, e-mail:
> For additional commands, e-mail:
Version: GnuPG v1
Comment: GPGTools -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message