[ 
https://issues.apache.org/jira/browse/GERONIMO-3490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531512
 ] 

Viet Hung Nguyen commented on GERONIMO-3490:
--------------------------------------------

The start time does not change with every sample. The formula I used was 

getStatsOnMs() * (-1) + System.currentTime() = (System.currentTime - 
statsStartedAt) * (-1) + System.currentTime()
                                                                                
   = statsStartedAt <== what we want

The lastSampleTime is updated every click because jetty does not provide 
that...we do with System.currentTime(). Anything that jetty provides for jetty 
connectors is not updated until after the browser is closed. Also, there are 
some statistics (i.e. busyThreads, bytesReceived, bytesSent, requestTime) that 
Jetty does not provide although it may seem like it from our current 
implementation. Should we throw an UnsupportedException or move these stats to 
just the tomcat specific code or something else?

Also the Jetty Container stats does not always have to be on. I believe you can 
turn them off, we just haven't been able to configure it to do so. But that 
should probably be discussed in another jira.

> Missing Jetty Connector stats
> -----------------------------
>
>                 Key: GERONIMO-3490
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3490
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.1
>         Environment: windows xp
>            Reporter: Viet Hung Nguyen
>            Assignee: Anita Kulshreshtha
>         Attachments: geronimo-3490.patch, geronimo-3490b.patch
>
>
> Jetty6 provides connector statistics, but they are not being surfaced in 
> Geronimo's source code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to