tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: tomcat on windows 2012 weirdness
Date Thu, 11 Dec 2014 21:10:01 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jeffrey,

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
temporarily).

- -chris

>> -----Original Message----- From: Cris Berneburg - US
>> [mailto:cberneburg@caci.com] Sent: Thursday, December 11, 2014
>> 10:28 AM To: users@tomcat.apache.org 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: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUiggpAAoJEBzwKT+lPKRY1o0P/RasZl5zmrF2XEZZlA962zoW
JXDkZiV/GLXr3+EXy3hJjSLDrrGdil5i4msWgviGpO4nqh3a3svv3u4FAPcqz2xx
QVHK3RBC4ZWmo+BZTt+IZKSItG8YwPtekJiZHS2MRyuCKildUyEeTDHMMSs1Nwpi
J54hoyYEvNmG1rQmgH8XPfiu9dodiVD4eIhFSDI4Q65YwyfrfLhbF0vOxBOg3EdC
WYy+rANckEg3XRjNYLBOxN3ffO7bzQ/kBmPzHMFQPRCJmKoYxDN5zazeYpOHMN83
4pAObmADCYkEl4MD0GRJRQVu4OtfMRMNbcYMVNEKK3fM8twjPszJuFmK2FZRkdL+
zjuGuWSHdipZxLmx6ww09butoFdkfr2w7l6X6qi1PgYTlvrc7BbP6n9DWKwlj+mH
8AZm6OdychHSGhfL7FPCgU6+Bc+RNy3lKN3BnGVJlTtW9zHSYdHlHLH1a0GgJtrP
Szl9hZDl602ClzZ8tHXzL5G4GGWb47T+gVx/8FqFU6aTUzdrEIogxvF298SBKzvE
wH8wvz/YzJz1pcBA5B2xOPYIgRWPbUCyj9yqEwtqRVNwPGLpGSA4SHEP6T37Zec4
q60Dvvsfz09EYbrgpFoykxDLjRAVFBhd2h2rZS7/YYw+e4SA6WwAxLsaRZ/9Z2Tf
KX9GEXWUoWBbI4xKB3kx
=o+lP
-----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