Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Helena, On 3/7/19 03:12, Helena Carbajo wrote: > In response to John: >> Are you building Tomcat from source? If so, you could instrument >> the code in another location (I'm not exactly sure where that >> would be, so I would have to defer to some

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-07 Thread Helena Carbajo
In response to John: >Are you building Tomcat from source? If so, you could instrument the >code in another location (I'm not exactly sure where that would be, so >I would have to defer to someone else who is elbow deep in that code >at the moment). >Thoughts? I have an application that uses a t

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Helena, On 3/6/19 03:07, Helena Carbajo wrote: >> Getting closer but my question still stands. What problem are you >> trying to solve. > >> Note that by the time startTime is set, a thread has been >> allocated so it won't give you the time you ar

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-06 Thread John Dale
Greetings; >From Mark below: "by the time startTime is set, a thread has been allocated so it won't give you the time you are looking for" Are you building Tomcat from source? If so, you could instrument the code in another location (I'm not exactly sure where that would be, so I would have to d

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-06 Thread Helena Carbajo
>are you looking to measure request handling time? >if so, startTime will not give you what you need since threads get >reused by many requests. Sorry, I don't really understand what you mean. From what I see in the code the start time is set in Http11InputBuffer when processing the request head

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-06 Thread John Dale
are you looking to measure request handling time? if so, startTime will not give you what you need since threads get reused by many requests. Sincerely, John On 3/6/19, Helena Carbajo wrote: > >I want to know how much time my requests have to wait before they are > handle, but I finally mana

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-06 Thread Helena Carbajo
>I want to know how much time my requests have to wait before they are handle, but I finally manage to get it by inheritance. I just had to create the class in the same package. Sorry to ask again about the same issue. It seems that creating the class in the same package is not an ideal solution

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-06 Thread Helena Carbajo
>Getting closer but my question still stands. What problem are you trying >to solve. >Note that by the time startTime is set, a thread has been allocated so >it won't give you the time you are looking for. I want to know how much time my requests have to wait before they are handle, but I finall

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-05 Thread Mark Thomas
On 05/03/2019 14:29, Helena Carbajo wrote: > >I can think of a couple of other ways of doing this but what problem are >> you trying to solve? > > I need it in order to calculate the time requests spend in the queue since > the arrive at the server until a thread process them. I haven't seen any

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-05 Thread Helena Carbajo
>I can think of a couple of other ways of doing this but what problem are >you trying to solve? I need it in order to calculate the time requests spend in the queue since the arrive at the server until a thread process them. I haven't seen any other parameter to make this calculation. Helena El

Re: Get startTime of coyoteRequest object from RequestFacade

2019-03-05 Thread Mark Thomas
I can think of a couple of other ways of doing this but what problem are you trying to solve? Mark On 05/03/2019 13:35, Helena Carbajo wrote: > Hi! > I'd like to get the startTime field of a request. The problem is that what > I get is a RequestFacade, which has the > org.apache.catalina.connect

Get startTime of coyoteRequest object from RequestFacade

2019-03-05 Thread Helena Carbajo
Hi! I'd like to get the startTime field of a request. The problem is that what I get is a RequestFacade, which has the org.apache.catalina.connector.Request object that holds the org.apache.coyote.Request object. Yet, the catalina.connector.Request is a protected field, and doesn't have a getter me