Re: How to check no of user request coming in tomcat application in a minute

2022-09-08 Thread Christopher Schultz

Priyanka,

On 9/8/22 13:20, Kumawat, Priyanka wrote:
Do you want to be able to pick an arbitrary minute, or are you 
more interested in e.g. "the most recent minute or activity"?


We wanted to count the number of users hitting the application on 
tomcat/Apache , as an example for today how many users hits/send

request to the application


Requests != users.


How shall we check this request , please suggest.


I think you need to have a more well-defined question.

For example:

For a given day, we'd like to know how many requests we get per-minute, 
so we want data that looks like this:


date,hour,minute,request_count
2022-09-08,00,01,123
2022-09-08,00,02,456
2022-09-08,00,03,789
2022-09-08,00,04,876
2022-09-08,00,05,256
...

If you want to know the number of users, you'll have to define "user". 
And you probably won't be able to get that information from the 
access-log without some additional work. If you mean "established user 
session", then you'll have to probe Tomcat to find out how many sessions 
exist on whatever schedule you want. If you mean "established session 
with authentication" then you'll have to do a different kind of probe.


If you want to know how many unique authenticated-users made requests 
during a specific minute, that's yet another question and one that CAN 
be answered by looking at the access-log, as long as you add some 
convenient information to it (the user principal) and then use some 
text-processing tools to collate the information.


-chris


-Original Message-
From: Christopher Schultz 
Sent: 08 September 2022 20:04
To: users@tomcat.apache.org
Subject: Re: How to check no of user request coming in tomcat application in a 
minute

Koustav,

On 9/8/22 10:06, Naha, Koustav wrote:

Just want to know how can we calculate the number of user request processed by 
tomcat in a particular minute.


Do you want to be able to pick an arbitrary minute, or are you more interested in e.g. 
"the most recent minute or activity"?


Can we do it from Apache access logs?


Sure.

$ grep '08/Sep/2022:14:32:' access.log | wc


Version

*   Tomcat 8.5.5


Ouch. That version is 6 years old with published security vulnerabilities. I 
strongly suggest that you upgrade ASAP.


*   Apache 2.4


I'm gonna guess that this is out-of-date, too. Latest is 2.4.54 from back in 
June 2022.

-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



DXC Technology Company -- This message is transmitted to you by or on behalf of 
DXC Technology Company or one of its affiliates. It is intended exclusively for 
the addressee. The substance of this message, along with any attachments, may 
contain proprietary, confidential or privileged information or information that 
is otherwise legally exempt from disclosure. Any unauthorized review, use, 
disclosure or distribution is prohibited. If you are not the intended recipient 
of this message, you are not authorized to read, print, retain, copy or 
disseminate any part of this message. If you have received this message in 
error, please destroy and delete all copies and notify the sender by return 
e-mail. Regardless of content, this e-mail shall not operate to bind DXC 
Technology Company or any of its affiliates to any order or other contract 
unless pursuant to explicit written agreement or government initiative 
expressly permitting the use of e-mail for such purpose.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How to check no of user request coming in tomcat application in a minute

2022-09-08 Thread Kumawat, Priyanka
Hi Christopher,

> Do you want to be able to pick an arbitrary minute, or are you more 
> interested in e.g. "the most recent minute or activity"?

We wanted to count the number of users hitting the application on tomcat/Apache 
, as an example for today how many users hits/send request to the application ,
How shall we check this request , please suggest.

Thanks & Regards,

Priyanka Kumawat | Middleware Admin
T +91.7879364483
EMail - priyanka.kuma...@dxc.com
DL - ams-leveraged-webadmin-offsh...@dxc.com

DXC Technology


-Original Message-
From: Christopher Schultz 
Sent: 08 September 2022 20:04
To: users@tomcat.apache.org
Subject: Re: How to check no of user request coming in tomcat application in a 
minute

Koustav,

On 9/8/22 10:06, Naha, Koustav wrote:
> Just want to know how can we calculate the number of user request processed 
> by tomcat in a particular minute.

Do you want to be able to pick an arbitrary minute, or are you more interested 
in e.g. "the most recent minute or activity"?

> Can we do it from Apache access logs?

Sure.

$ grep '08/Sep/2022:14:32:' access.log | wc

> Version
>
>*   Tomcat 8.5.5

Ouch. That version is 6 years old with published security vulnerabilities. I 
strongly suggest that you upgrade ASAP.

>*   Apache 2.4

I'm gonna guess that this is out-of-date, too. Latest is 2.4.54 from back in 
June 2022.

-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



DXC Technology Company -- This message is transmitted to you by or on behalf of 
DXC Technology Company or one of its affiliates. It is intended exclusively for 
the addressee. The substance of this message, along with any attachments, may 
contain proprietary, confidential or privileged information or information that 
is otherwise legally exempt from disclosure. Any unauthorized review, use, 
disclosure or distribution is prohibited. If you are not the intended recipient 
of this message, you are not authorized to read, print, retain, copy or 
disseminate any part of this message. If you have received this message in 
error, please destroy and delete all copies and notify the sender by return 
e-mail. Regardless of content, this e-mail shall not operate to bind DXC 
Technology Company or any of its affiliates to any order or other contract 
unless pursuant to explicit written agreement or government initiative 
expressly permitting the use of e-mail for such purpose.


Re: How to check no of user request coming in tomcat application in a minute

2022-09-08 Thread Christopher Schultz

Koustav,

On 9/8/22 10:06, Naha, Koustav wrote:

Just want to know how can we calculate the number of user request processed by 
tomcat in a particular minute.


Do you want to be able to pick an arbitrary minute, or are you more 
interested in e.g. "the most recent minute or activity"?



Can we do it from Apache access logs?


Sure.

$ grep '08/Sep/2022:14:32:' access.log | wc


Version

   *   Tomcat 8.5.5


Ouch. That version is 6 years old with published security 
vulnerabilities. I strongly suggest that you upgrade ASAP.



   *   Apache 2.4


I'm gonna guess that this is out-of-date, too. Latest is 2.4.54 from 
back in June 2022.


-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org