You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by chuikingman <ch...@yahoo.com.hk> on 2010/03/03 06:32:39 UTC
check number of http connection in tomcat
I use tomcat .
I want to know how to check the number of http connection in the existing
Tomcat web server ??
Any advice ???
--
View this message in context: http://old.nabble.com/check-number-of-http-connection-in-tomcat-tp27764524p27764524.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: check number of http connection in tomcat
Posted by André Warnier <aw...@ice-sa.com>.
Bill Barker wrote:
>
>
> "Caldarale, Charles R" <Ch...@unisys.com> wrote in message
> news:99C8B2929B39C24493377AC7A121E21F96CB875138@USEA-EXCH8.na.uis.unisys.com...
>
>>> From: André Warnier [mailto:aw@ice-sa.com]
>>> Subject: Re: check number of http connection in tomcat
>>>
>>> 1) the correct link is probably : http://XXXx:8080/manager
>>
>> That will get you a 404 (at least on non-stone-age Tomcats). The
>> actual manager URL is:
>> http://XXXx:8080/manager/html
>>
>
> It's nice to see that 3.3.2 is still so popular. I've gotten two
> questions about it in one week :).
>
> Actually, the OP had the correct URL for TC 3.3.2. It's called admin
> there, but works more like the manager for TC 4.0+. Since it is from
> the stone-age, it has considerably less functionality.
>
> To answer the OP, the instructions are in the index.html file under the
> /webapps/admin directory. The short answer is that if you haven't
> changed the conf/apps-admin.xml (yes, TC 3.3 was the first one to have
> context configuration files), then you need to edit the
> conf/users/admin-users.xml to enable a user for the admin app. The file
> posted by the OP is in the wrong format (it is for TC 4.0+).
>
> Of course, one of the things that the TC 3.3 admin app lacks is the
> ability to show the number of connections, so this will likely be of
> little use to the OP ;). It mostly lets you start and stop webapps.
> Since it shares connectors with later Tomcat versions, this information
> is available via JMX however.
>
I told you, we need guys over 50 to answer questions about Tomcat 3.3.2.
Maybe there's hope for us after all.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: check number of http connection in tomcat
Posted by Bill Barker <bi...@verizon.net>.
"Caldarale, Charles R" <Ch...@unisys.com> wrote in message
news:99C8B2929B39C24493377AC7A121E21F96CB875138@USEA-EXCH8.na.uis.unisys.com...
>> From: André Warnier [mailto:aw@ice-sa.com]
>> Subject: Re: check number of http connection in tomcat
>>
>> 1) the correct link is probably : http://XXXx:8080/manager
>
> That will get you a 404 (at least on non-stone-age Tomcats). The actual
> manager URL is:
> http://XXXx:8080/manager/html
>
It's nice to see that 3.3.2 is still so popular. I've gotten two questions
about it in one week :).
Actually, the OP had the correct URL for TC 3.3.2. It's called admin there,
but works more like the manager for TC 4.0+. Since it is from the
stone-age, it has considerably less functionality.
To answer the OP, the instructions are in the index.html file under the
/webapps/admin directory. The short answer is that if you haven't changed
the conf/apps-admin.xml (yes, TC 3.3 was the first one to have context
configuration files), then you need to edit the conf/users/admin-users.xml
to enable a user for the admin app. The file posted by the OP is in the
wrong format (it is for TC 4.0+).
Of course, one of the things that the TC 3.3 admin app lacks is the ability
to show the number of connections, so this will likely be of little use to
the OP ;). It mostly lets you start and stop webapps. Since it shares
connectors with later Tomcat versions, this information is available via JMX
however.
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: check number of http connection in tomcat
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: André Warnier [mailto:aw@ice-sa.com]
> Subject: Re: check number of http connection in tomcat
>
> 1) the correct link is probably : http://XXXx:8080/manager
That will get you a 404 (at least on non-stone-age Tomcats). The actual manager URL is:
http://XXXx:8080/manager/html
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: check number of http connection in tomcat
Posted by André Warnier <aw...@ice-sa.com>.
chuikingman wrote:
> I try to use tomcat manager .
> There is account role admin in the linux dir
> But when I access http://XXXx:8080/admin/index.html
> I input the user name "tomcatadmin" and password"tomcat ".
> It is failed and show not authorized.
> I paste the /conf/users/tomcat-users.xml file below
> <tomcat-users>
> <role rolename="manager"/>
> <role rolename="admin"/>
> <user name="tomcat" password="tomcat" roles="tomcat" />
> <user name="role1" password="tomcat" roles="role1" />
> <user name="both" password="tomcat" roles="tomcat,role1" />
> <user name="tomcatadmin" password="tomcat" roles="admin,manager" />
> </tomcat-users>
> Could you advice what is wrong for the password ??
> How can I fix it .......
> Please advice
>
As explained previously, I am really guessing here, because your version
of Tomcat is so old..
But assuming it works like more recent versions :
1) the correct link is probably : http://XXXx:8080/manager
(admin is another application)
2) make sure that around your <tomcat-users> section above, there are no
XML comment signs like
<!--
<tomcat-users>
....
-->
(and if you remove them, restart Tomcat)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: RE: check number of http connection in tomcat
Posted by chuikingman <ch...@yahoo.com.hk>.
I try to use tomcat manager .
There is account role admin in the linux dir
But when I access http://XXXx:8080/admin/index.html
I input the user name "tomcatadmin" and password"tomcat ".
It is failed and show not authorized.
I paste the /conf/users/tomcat-users.xml file below
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user name="tomcat" password="tomcat" roles="tomcat" />
<user name="role1" password="tomcat" roles="role1" />
<user name="both" password="tomcat" roles="tomcat,role1" />
<user name="tomcatadmin" password="tomcat" roles="admin,manager" />
</tomcat-users>
Could you advice what is wrong for the password ??
How can I fix it .......
Please advice
Guifre Bosch Fabregas wrote:
>
> in linux you can use:
> ps -ef | grep http | grep -v grep | wc -l
>
> This command returns the number of "http" active process
>
> El 03/03/2010 07:42, "Caldarale, Charles R" <Ch...@unisys.com>
> escribió:
>
>> From: chuikingman [mailto:chuikingman@yahoo.com.hk]
>> Subject: check number of http connection in tomcat
>>
>> I use tomcat .
>
> Congratulations. What version? What platform?
>
>
>> I want to know how to check the number of http connection in the
>> existing Tomcat web server ??
> ...
> It's not perfectly clear what you want, but the netstat tool is available
> on
> most platforms and will display all active connections. The manager
> webapp
> that is part of the standard Tomcat download shows the number of active
> sessions, and Lambda Probe (www.lambdaprobe.org) and MoSKito (
> moskito.anotheria.net) can give you detailed statistics.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user...
>
>
--
View this message in context: http://old.nabble.com/check-number-of-http-connection-in-tomcat-tp27764524p27765631.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: RE: check number of http connection in tomcat
Posted by Guifre Bosch Fabregas <gu...@gmail.com>.
in linux you can use:
ps -ef | grep http | grep -v grep | wc -l
This command returns the number of "http" active process
El 03/03/2010 07:42, "Caldarale, Charles R" <Ch...@unisys.com>
escribió:
> From: chuikingman [mailto:chuikingman@yahoo.com.hk]
> Subject: check number of http connection in tomcat
>
> I use tomcat .
Congratulations. What version? What platform?
> I want to know how to check the number of http connection in the
> existing Tomcat web server ??
...
It's not perfectly clear what you want, but the netstat tool is available on
most platforms and will display all active connections. The manager webapp
that is part of the standard Tomcat download shows the number of active
sessions, and Lambda Probe (www.lambdaprobe.org) and MoSKito (
moskito.anotheria.net) can give you detailed statistics.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: user...
RE: check number of http connection in tomcat
Posted by Joseph Morgan <jo...@ignitesales.com>.
>> and that any people here who have actually used it are probably over 50 years old.
>> And you know that after 35, it is downhill all the way : you start forgetting things and so on.
Hey... I resemble that remark! They always say that the 2nd thing to go is memory. I don't remember what the first one is!
-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com]
Sent: Wednesday, March 03, 2010 2:40 AM
To: Tomcat Users List
Subject: Re: check number of http connection in tomcat
chuikingman wrote:
> It is tomcat-3.3.2 in red hat linux AS4 , kernel 2.6.9
> Can you take exmaple how to use manager webapp ........
> Please advice ....
>
Tomcat 3.3.2 is so old that most people on this list may not even
remember if there existed a manager application in it, never mind how to
get it and install it and configure it under RedHat.
The current released version is Tomcat 6.0. Before that, there have
been Tomcat 5.5 and Tomcat 5.0 and Tomcat 4.1, at least.
If you want to get help for that or any other Tomcat-related subject, I
would strongly recommend that you upgrade that Tomcat to a more recent
version (and probably also the Java JVM).
In case the above is not clear enough : it is not that nobody here
/would want/ to help you; they would if they could.
But Tomcat 3.3.2 is so old that some of the people here were probably
still in school when it was released, and that any people here who have
actually used it are probably over 50 years old. And you know that
after 35, it is downhill all the way : you start forgetting things and
so on. Got it ?
---------------------------------------------------------------------
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
Re: check number of http connection in tomcat
Posted by André Warnier <aw...@ice-sa.com>.
chuikingman wrote:
> It is tomcat-3.3.2 in red hat linux AS4 , kernel 2.6.9
> Can you take exmaple how to use manager webapp ........
> Please advice ....
>
Tomcat 3.3.2 is so old that most people on this list may not even
remember if there existed a manager application in it, never mind how to
get it and install it and configure it under RedHat.
The current released version is Tomcat 6.0. Before that, there have
been Tomcat 5.5 and Tomcat 5.0 and Tomcat 4.1, at least.
If you want to get help for that or any other Tomcat-related subject, I
would strongly recommend that you upgrade that Tomcat to a more recent
version (and probably also the Java JVM).
In case the above is not clear enough : it is not that nobody here
/would want/ to help you; they would if they could.
But Tomcat 3.3.2 is so old that some of the people here were probably
still in school when it was released, and that any people here who have
actually used it are probably over 50 years old. And you know that
after 35, it is downhill all the way : you start forgetting things and
so on. Got it ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: check number of http connection in tomcat
Posted by chuikingman <ch...@yahoo.com.hk>.
It is tomcat-3.3.2 in red hat linux AS4 , kernel 2.6.9
Can you take exmaple how to use manager webapp ........
Please advice ....
n828cl wrote:
>
>> From: chuikingman [mailto:chuikingman@yahoo.com.hk]
>> Subject: check number of http connection in tomcat
>>
>> I use tomcat .
>
> Congratulations. What version? What platform?
>
>> I want to know how to check the number of http connection in the
>> existing Tomcat web server ??
>
> It's not perfectly clear what you want, but the netstat tool is available
> on most platforms and will display all active connections. The manager
> webapp that is part of the standard Tomcat download shows the number of
> active sessions, and Lambda Probe (www.lambdaprobe.org) and MoSKito
> (moskito.anotheria.net) can give you detailed statistics.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/check-number-of-http-connection-in-tomcat-tp27764524p27765147.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: check number of http connection in tomcat
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: chuikingman [mailto:chuikingman@yahoo.com.hk]
> Subject: check number of http connection in tomcat
>
> I use tomcat .
Congratulations. What version? What platform?
> I want to know how to check the number of http connection in the
> existing Tomcat web server ??
It's not perfectly clear what you want, but the netstat tool is available on most platforms and will display all active connections. The manager webapp that is part of the standard Tomcat download shows the number of active sessions, and Lambda Probe (www.lambdaprobe.org) and MoSKito (moskito.anotheria.net) can give you detailed statistics.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org