Understanding NIO connector

2019-10-10 Thread Filippo Machi
Hello everybody, I am trying to understand in which way tomcat is handling incoming connections. We have a spring boot application in production that is using tomcat embedded (version 8.x) and since we are experiencing some issues with Too Many Files open, we would like to understand properly in

Re: Trying to chase down "too many connection" problems with DB

2018-03-24 Thread Filippo Machi
*1) I think this is the really burning question in my mind: Why is the server opening NEW connections when there are dozens of them already open? Does this mean that (as I suspect) all those connections are abandoned? If so, why are they not getting cleaned up, when we have removeAbandoned set to

Re: Best way to find out how many DB connections that are open at any given time

2017-01-10 Thread Filippo Machi
Ciao Joleen, maybe you could retrieve this information connecting via JMX (JConsole, VisualVM) to the tomcat instances. According to the way the datasource is configured, you could find a JMX bean exposing this information. Before that, tomcat should be launched in a way JMX connections are

Re: [PROPOSAL] Tomcat Webinar series

2015-11-12 Thread Filippo Machi
Ciao Mark, it would be great! Thanks for all your work :) On Thu, Nov 12, 2015 at 11:29 PM, Mark Thomas wrote: > All, > > I've been wondering if there would be any interest in a Tomcat Webinar > series. I'm thinking ~10 minutes of presentation followed by Q on > topics of

Re: Memory leaks and IllegalStateException caused (probably) by a Singleton object

2012-10-03 Thread Filippo Machi
Ciao Nick, according to my own experience, I saw some logs at SEVERE very similar to what you posted here when I used hot deploy for a web application I worked on and that application used threadlocal variables and launched some threads that tomcat didn't control directly. These logs are part of

Re: Babysitting ThreadLocals

2011-11-23 Thread Filippo Machi
Ciao Christopher, i heard Joda has a thread safe date parser/fotmatter..remember to check it doesn't use threadlocals too :) Hth Fil Il giorno 23/nov/2011 17.57, Christopher Schultz ch...@christopherschultz.net ha scritto: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 11/23/11

Re: Loading Super Classes with ClassLoader in Tomcat

2011-10-10 Thread Filippo Machi
Ciao Piter, usually class loaders are arranged unto a hierarchy, who's the parente classloader of the one you're using to define the class fronte the byte array? It should've be the classloader whose scope us your webapp.. Hth Fil Il giorno 10/ott/2011 19.27, Peter Lavin lav...@cs.tcd.ie ha

Re: Loading Super Classes with ClassLoader in Tomcat

2011-10-10 Thread Filippo Machi
(parent); } p Filippo Machi wrote: Ciao Piter, usually class loaders are arranged unto a hierarchy, who's the parente classloader of the one you're using to define the class fronte the byte array? It should've be the classloader whose scope us your webapp.. Hth Fil Il giorno 10

Re: Issues with getRemoteAddress

2011-05-27 Thread Filippo Machi
tomorrow, when the setup of the production environment is completed and all our application are migrated to the new environment. bye Fil Filippo Machi wrote: Ciao Christopher, we don't trust 85.18.x.x., it doesn't belong to us, that's why I posted my question. We're not able

Re: Tomcat 5.5.27, session lost, cookies

2011-05-27 Thread Filippo Machi
Ciao! Please read my comment inline.. On Fri, May 27, 2011 at 12:12 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filippo, On 5/26/2011 10:50 AM, Filippo Machi wrote: One of our legacy (non java) server was used to put a blank

Re: Issues with getRemoteAddress

2011-05-27 Thread Filippo Machi
On Fri, May 27, 2011 at 11:20 AM, André Warnier a...@ice-sa.com wrote: Filippo Machi wrote: we're using tomcat 7.0.12 Ok. 1) You have serverA running Tomcat, and Tomcat listens on port 8080. The (network) IP address of serverA is : 85.214.x.x (apart from the loopback

Re: Tomcat 5.5.27, session lost, cookies

2011-05-27 Thread Filippo Machi
On Fri, May 27, 2011 at 12:26 PM, Diego Ruotolo druot...@noemalife.comwrote: Hi everybody ! Thanks to all of you for your replies. Unfortunately (or fortunately) I spent the whole morning trying to reproduce the problem but everything works fine today! @Filippo: Ciao! There are no strange

Issues with getRemoteAddress

2011-05-26 Thread Filippo Machi
Hi all, we're experiencing an issue with the getRemoteAddress method (HttpServletRequest). We don't know whether is something known depending on tomcat or if it's something malicious, affecting our servers. We have a filter that authorizes incoming requests using different patterns, one of these

Re: Issues with getRemoteAddress

2011-05-26 Thread Filippo Machi
absolute (e.g. a href= http://someserver.company.com/img/logo.gif;..), it may be that some user accesses take one route through the network, and other user acesses take another route, and this may explain why getRemoteAddress sometimes shows different addresses. Filippo Machi wrote: Hi all

Re: Issues with getRemoteAddress

2011-05-26 Thread Filippo Machi
we assume that a redirect will cause the same symptom? thanks Fil On Thu, May 26, 2011 at 4:04 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filippo, On 5/26/2011 8:22 AM, Filippo Machi wrote: The service I was talking about

Re: Tomcat 5.5.27, session lost, cookies

2011-05-26 Thread Filippo Machi
Ciao Diego! While working with cookies, we had some issues handling not valid characters. One of our legacy (non java) server was used to put a blank (' ') character as value of a cookie. But it seems that blank it's a forbidden char so tomcat was not able to parse the cookie value. Is it possible