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 wh

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 allowed

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&A on > topics of interest to this comm

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 so

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

Re: Loading Super Classes with ClassLoader in Tomcat

2011-10-10 Thread Filippo Machi
lic CustomClassloader(ClassLoader parent) { >super(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

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" ha scritto: > > Dear Us

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 wrote: > 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" or blank chara

Re: Issues with getRemoteAddress

2011-05-27 Thread Filippo Machi
On Fri, May 27, 2011 at 11:20 AM, André Warnier 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 serve

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

Re: Issues with getRemoteAddress

2011-05-27 Thread Filippo Machi
se > it could also be more restrictive, and /only/ accept requests from 127.0.0.1 > e.g.) > > This is not really security yet, but it is an easy way to separate 90% of > the trash, from the real requests. Thanks for the advice, we're going to consider that. Even if the mos

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

Re: Issues with getRemoteAddress

2011-05-26 Thread Filippo Machi
nt about the rewrite. May 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, F

Re: Issues with getRemoteAddress

2011-05-26 Thread Filippo Machi
t;external > service") contain links, and these links are sometimes relative (e.g. href="/img/logo.gif"..) and sometimes absolute (e.g. 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

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 is