You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dhaval Jaiswal <dh...@via.com> on 2013/03/05 17:41:31 UTC
suddenly created many connections
I have seen suddenly so many established connections like below on my
system.
There is http & tomcat both are running on the same machine.
Previously it was not there. only last 3 days i am observing it. moreover
since then i have installed nagios on the same server to measure the
activity of the server.
tcp 0 0 ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:36290
ESTABLISHED -
tcp 0 0 ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:41666
ESTABLISHED -
tcp 0 0 ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:52930
ESTABLISHED -
Can some one explain me.
Re: suddenly created many connections
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Dhaval,
On 3/5/13 10:41 AM, Dhaval Jaiswal wrote:
> I have seen suddenly so many established connections like below on
> my system.
>
> There is http & tomcat both are running on the same machine.
>
> Previously it was not there. only last 3 days i am observing it.
> moreover since then i have installed nagios on the same server to
> measure the activity of the server.
>
> tcp 0 0 ::ffff:192.168.4.5:8009
> ::ffff:192.168.4.5:36290 ESTABLISHED - tcp 0 0
> ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:41666 ESTABLISHED -
> tcp 0 0 ::ffff:192.168.4.5:8009
> ::ffff:192.168.4.5:52930 ESTABLISHED -
>
> Can some one explain me.
Looks like you have Tomcat listening on a private interface to port
8009 (which is the default AJP/1.3 port) and another process on the
local machine is connected to it (most likely Apache httpd).
Did you know that AJP connections are intended to be (and, in a
default configuration, are) persistent? That means that if you forward
10 connections from httpd -> Tomcat, you will likely have 10
connections maintained between httpd -> Tomcat for a while -- a few
minutes probably.
All of this you can configure: just read the documentation for mod_jk
and the AJP connectors (remember: there are 3 of them: BIO, NIO, and APR).
> Yes, i have observed this behavior after installing nagios.
Did you notice different behavior before? Or are you only now noticing
that AJP connections are long-lived?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEAREIAAYFAlE20t8ACgkQ9CaO5/Lv0PCUFQCePm1hhg3mCWbGkJGG+9lEABfK
ta0AnjgdEAzvm4DTDumQu7ydHlAY5Qwp
=aF7y
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: suddenly created many connections
Posted by Dhaval Jaiswal <dh...@via.com>.
Yes, i have observed this behavior after installing nagios.
As of now on the same server httpd apache web server & tomcat is running.
On Tue, Mar 5, 2013 at 11:09 PM, Howard W. Smith, Jr. <
smithh032772@gmail.com> wrote:
> Dhaval,
>
> I have seen suddenly so many established connections like below on my
> > system.
> >
> > There is http & tomcat both are running on the same machine.
> >
> >
> it might be best for you to inform the list with more details on any/all
> responsibilities/jobs/processes of this system of yours.
>
> http & tomcat = ? http = apache httpd? what all is tomcat doing? is there a
> web app running on tomcat serving many requests?
>
>
>
> > Previously it was not there. only last 3 days i am observing it. moreover
> > since then i have installed nagios on the same server to measure the
> > activity of the server.
> >
>
> are you saying that you observed this behavior prior to or after installing
> nagios?
>
>
> >
> > tcp 0 0 ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:36290
> > ESTABLISHED -
> > tcp 0 0 ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:41666
> > ESTABLISHED -
> > tcp 0 0 ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:52930
> > ESTABLISHED -
> >
> > Can some one explain me.
> >
>
> FYI, sometime within the last 2 to 3 weeks, I did a 'netstat' in Command
> Prompt on my development and production servers (Microsoft Windows Server
> 2008). This was really my first time doing this, and I recognized a lot of
> 'imap' connections on the production server. So, after some research
> (searching google/stackoverflow.com), I refactored my javamail code that
> was responsible for the many (or infinite # of) imap TCP connections
> showing up in 'netstat' output, and now, I no longer have the infinite # of
> imap TCP connections any longer.
>
> So, you really have to examine your 'system'. Evidently, the TCP
> connections are all considered as 'working as designed' (according to
> someone's coding/implementation or some third party tool/software).
>
> Howard
>
Re: suddenly created many connections
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Dhaval,
I have seen suddenly so many established connections like below on my
> system.
>
> There is http & tomcat both are running on the same machine.
>
>
it might be best for you to inform the list with more details on any/all
responsibilities/jobs/processes of this system of yours.
http & tomcat = ? http = apache httpd? what all is tomcat doing? is there a
web app running on tomcat serving many requests?
> Previously it was not there. only last 3 days i am observing it. moreover
> since then i have installed nagios on the same server to measure the
> activity of the server.
>
are you saying that you observed this behavior prior to or after installing
nagios?
>
> tcp 0 0 ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:36290
> ESTABLISHED -
> tcp 0 0 ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:41666
> ESTABLISHED -
> tcp 0 0 ::ffff:192.168.4.5:8009 ::ffff:192.168.4.5:52930
> ESTABLISHED -
>
> Can some one explain me.
>
FYI, sometime within the last 2 to 3 weeks, I did a 'netstat' in Command
Prompt on my development and production servers (Microsoft Windows Server
2008). This was really my first time doing this, and I recognized a lot of
'imap' connections on the production server. So, after some research
(searching google/stackoverflow.com), I refactored my javamail code that
was responsible for the many (or infinite # of) imap TCP connections
showing up in 'netstat' output, and now, I no longer have the infinite # of
imap TCP connections any longer.
So, you really have to examine your 'system'. Evidently, the TCP
connections are all considered as 'working as designed' (according to
someone's coding/implementation or some third party tool/software).
Howard