Re: PSI-PROBE query

2012-12-10 Thread Felix Schumacher

Hi Vicky,

Am 09.12.2012 19:56, schrieb vicky:

Yes Chris, i am pretty sure that nobody is accessing the application.

The moment i start my Tomcat the Request Count  reaches values of
400+ within few seconds, this value is getting incremented by 6
everytime (eg: 6,12,18,24,30)
which port do you use to connect to psi-probe itself? We often use the 
http-connector, which would be 8080 in your case.


Regards
 Felix


Whereas my AJP Connector Request Count  is showing the correct
numbers depending  on the requests which all are redirected from
APache.

As of now i have not configured the AccessLogValve , but will try
out this option definitely

Please suggest 

Thanks
Vicky



 From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, 9 December 2012 10:29 PM
Subject: Re: PSI-PROBE query

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 12/9/12 7:05 AM, vicky wrote:

I am trying to gather statistical information about the number of
requests served by my tomcat (forwarded from Apache MPM worker) 
for this i am using /PSI-PRobe
(http://code.google.com/p/psi-probe/) application. I have enclosed
the PROBE screenshot as well for your reference,


Sorry, this list strips attachments. Please copy/paste the numbers
into a followup post.


in this Request Time , Processing Time  values  for  http-8080
  connector are keep on increasing even when no one is accessing
the application.


Are you sure nobody is accessing the application? Do you have an
AccessLogValve (or Filter) enabled?


I am wondering how can i get the report of number of requests which
all are served by my tomcat instance, i am not able to relate to
the numbers which all are getting displayed in the Probe
Application. Does i am doing something wrong in interpreting the
Probe Application output


If you want to know which requests are taking a long time, configure
(or re-configure) an AccessLogValve to include the total time for the
request. Then sort your log file by response-time and start at the
longest response to see what's going on.

Psi Probe likely uses JMX (or maybe gets the data directly from 
Tomcat

in the same way that the JMX beans get their data), so all that same
data is available the JMX. Attach to Tomcat using jconsole, 
jvisualvm,

etc. and poke around: there's a lot of good information in there.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDEw2kACgkQ9CaO5/Lv0PCrswCgh1e7HpCS7uLtr9jiq9Qg+q1Y
7EQAn2+z7X/0mEBdzL5nZazdJh/D4SAh
=1U+/
-END PGP SIGNATURE-

-
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: PSI-PROBE query

2012-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 12/9/12 1:56 PM, vicky wrote:
 Yes Chris, i am pretty sure that nobody is accessing the 
 application.
 
 The moment i start my Tomcat the Request Count  reaches values
 of 400+ within few seconds, this value is getting incremented by 6 
 everytime (eg: 6,12,18,24,30)
 
 Whereas my AJP Connector Request Count  is showing the correct 
 numbers depending  on the requests which all are redirected from 
 APache.

Let me guess: you are accessing PsiProbe via HTTP from your web
browser. Every request you make to get a page probably has some other
dependencies (images, stylesheets, etc.). Try enabling your
request-logger on the client (Firefox and Chrome have these built-into
the browser) and look at the traffic.


I'll bet you are being scared of your own shadow.

 As of now i have not configured the AccessLogValve , but will
 try out this option definitely

You must configure this in order to figure out what is happening.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDF9SYACgkQ9CaO5/Lv0PCVFQCcCeLt9llY0/X2mrbdfWnq86PU
BHYAn09OOgS99sgTQ6YBvllQfrTsQ7g+
=/Q41
-END PGP SIGNATURE-

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



Re: PSI-PROBE query

2012-12-10 Thread vicky
Chris,
 
You was right as usual :)
 
A lot of  to  fro  requests are happening from my browser to the Probe 
application which looks like the Ajax calls  
because of that the request count value for my http-8080  connector
is keep on increasing even when nobody is accessing it.This all i came to know 
after installing  TAMPER-DATA which is a firefox extension (for request 
logging).Thanks for making me aware about this 
 
I am accessing the PSI-PROBE application over HTTP port  eg:- 
http://localhost:8080/probe/connectors.htm
 
 
Now my question is that how we can monitor the request counts which all coming 
to my
HTTP connector specifically for my application. ???
 
Is there a way by which i can configure two HTTP connector's one for PROBE 
application  one for my own application.???
 
or do you have any better solution . Please suggest 
 
Thanks
Vivek  


 From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org 
Sent: Monday, 10 December 2012 8:13 PM
Subject: Re: PSI-PROBE query
  
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 12/9/12 1:56 PM, vicky wrote:
 Yes Chris, i am pretty sure that nobody is accessing the 
 application.
 
 The moment i start my Tomcat the Request Count  reaches values
 of 400+ within few seconds, this value is getting incremented by 6 
 everytime (eg: 6,12,18,24,30)
 
 Whereas my AJP Connector Request Count  is showing the correct 
 numbers depending  on the requests which all are redirected from 
 APache.

Let me guess: you are accessing PsiProbe via HTTP from your web
browser. Every request you make to get a page probably has some other
dependencies (images, stylesheets, etc.). Try enabling your
request-logger on the client (Firefox and Chrome have these built-into
the browser) and look at the traffic.


I'll bet you are being scared of your own shadow.

 As of now i have not configured the AccessLogValve , but will
 try out this option definitely

You must configure this in order to figure out what is happening.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org/
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDF9SYACgkQ9CaO5/Lv0PCVFQCcCeLt9llY0/X2mrbdfWnq86PU
BHYAn09OOgS99sgTQ6YBvllQfrTsQ7g+
=/Q41
-END PGP SIGNATURE-

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

Re: PSI-PROBE query

2012-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 12/10/12 12:24 PM, vicky wrote:
 A lot of to  fro  requests are happening from my browser to the 
 Probe application which looks like the Ajax calls  because of that
 the request count value for my http-8080  connector is keep on
 increasing even when nobody is accessing it.This all i came to
 know after installing TAMPER-DATA which is a firefox extension
 (for request logging).Thanks for making me aware about this

FWIW, Firefox can do request logging without any additional
extensions. Just go to Tools | Web Developer | Web Console. By
default, it will lot all network activity like GET
http://www.apache.org/; and show you the response code. You can also
configure it to get all the headers, etc for you if you double-click
on any log entry.

 I am accessing the PSI-PROBE application over HTTP port eg:- 
 http://localhost:8080/probe/connectors.htm
 
 Now my question is that how we can monitor the request counts
 which all coming to my HTTP connector specifically for my
 application. ???

You can't really do that. Instead, you could install a secondary
connector on a different port (perhaps accessible only from localhost,
or at least with a firewall rule that requires a certain source
subnet) which is used exclusively for serving Psi-Probe requests.

Then you only run your metrics on the primary connector and ignore
the secondary connector.

 Is there a way by which i can configure two HTTP connector's one
 for PROBE application  one for my own application.???

See above.

If you want to make the webapps /inaccessible/ from the other
connector (so you can *only* access PsiProbe from one connector and
*only* access your webapp from the other), you'll need to define two
separate services, each with one Connector, one Engine, one
Host, and then only deploy one application to each Host.

I don't think it's worth it, though: you can use policy + firewall to
separate things such that you can't get to the secondary port, and you
can add a valve/filter that only allows access to PsiProbe from that
same source (IP, subnet, etc.).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDGYIEACgkQ9CaO5/Lv0PD7KgCbBzrKm3lon2v1ufQTHHEKB/HW
r0gAoI/K+VPRWSppJ/17k2RJ3srNXPd5
=gqq0
-END PGP SIGNATURE-

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



Re: PSI-PROBE query

2012-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 12/9/12 7:05 AM, vicky wrote:
 I am trying to gather statistical information about the number of 
 requests served by my tomcat (forwarded from Apache MPM worker) 
 for this i am using /PSI-PRobe
 (http://code.google.com/p/psi-probe/) application. I have enclosed
 the PROBE screenshot as well for your reference,

Sorry, this list strips attachments. Please copy/paste the numbers
into a followup post.

 in this Request Time , Processing Time  values  for  http-8080
  connector are keep on increasing even when no one is accessing
 the application.

Are you sure nobody is accessing the application? Do you have an
AccessLogValve (or Filter) enabled?

 I am wondering how can i get the report of number of requests which
 all are served by my tomcat instance, i am not able to relate to
 the numbers which all are getting displayed in the Probe
 Application. Does i am doing something wrong in interpreting the
 Probe Application output

If you want to know which requests are taking a long time, configure
(or re-configure) an AccessLogValve to include the total time for the
request. Then sort your log file by response-time and start at the
longest response to see what's going on.

Psi Probe likely uses JMX (or maybe gets the data directly from Tomcat
in the same way that the JMX beans get their data), so all that same
data is available the JMX. Attach to Tomcat using jconsole, jvisualvm,
etc. and poke around: there's a lot of good information in there.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDEw2kACgkQ9CaO5/Lv0PCrswCgh1e7HpCS7uLtr9jiq9Qg+q1Y
7EQAn2+z7X/0mEBdzL5nZazdJh/D4SAh
=1U+/
-END PGP SIGNATURE-

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



Re: PSI-PROBE query

2012-12-09 Thread vicky
Yes Chris, i am pretty sure that nobody is accessing the application.

The moment i start my Tomcat the Request Count  reaches values of 400+ within 
few seconds, this value is getting incremented by 6 everytime (eg: 
6,12,18,24,30)

Whereas my AJP Connector Request Count  is showing the correct numbers 
depending  on the requests which all are redirected from APache.

As of now i have not configured the AccessLogValve , but will try out this 
option definitely

Please suggest 

Thanks
Vicky



 From: Christopher Schultz ch...@christopherschultz.net
To: Tomcat Users List users@tomcat.apache.org 
Sent: Sunday, 9 December 2012 10:29 PM
Subject: Re: PSI-PROBE query
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Vicky,

On 12/9/12 7:05 AM, vicky wrote:
 I am trying to gather statistical information about the number of 
 requests served by my tomcat (forwarded from Apache MPM worker) 
 for this i am using /PSI-PRobe
 (http://code.google.com/p/psi-probe/) application. I have enclosed
 the PROBE screenshot as well for your reference,

Sorry, this list strips attachments. Please copy/paste the numbers
into a followup post.

 in this Request Time , Processing Time  values  for  http-8080
  connector are keep on increasing even when no one is accessing
 the application.

Are you sure nobody is accessing the application? Do you have an
AccessLogValve (or Filter) enabled?

 I am wondering how can i get the report of number of requests which
 all are served by my tomcat instance, i am not able to relate to
 the numbers which all are getting displayed in the Probe
 Application. Does i am doing something wrong in interpreting the
 Probe Application output

If you want to know which requests are taking a long time, configure
(or re-configure) an AccessLogValve to include the total time for the
request. Then sort your log file by response-time and start at the
longest response to see what's going on.

Psi Probe likely uses JMX (or maybe gets the data directly from Tomcat
in the same way that the JMX beans get their data), so all that same
data is available the JMX. Attach to Tomcat using jconsole, jvisualvm,
etc. and poke around: there's a lot of good information in there.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDEw2kACgkQ9CaO5/Lv0PCrswCgh1e7HpCS7uLtr9jiq9Qg+q1Y
7EQAn2+z7X/0mEBdzL5nZazdJh/D4SAh
=1U+/
-END PGP SIGNATURE-

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