Stefan Reich wrote:

Here is what we could do. The servlet statistics are #number of operations, mix/Max/TotalTime in miliseconds.
Neither of the operations is unlikely to ever exceed the range of an integer. Unlike longs, integer assignments are atomic. If we keep the statistics in a volatile int, we make sure different threads see the most current value, without the need to lock. We will miss a few updates, due to different threads overwriting their changes under high load, but they are only statistics, and transient by nature anyway. I did the same thing with JTA and EntityBean statistics.

we are looking for a point in the request/servlet where locking already occurs. If we find one we will add the stat update there, if not, maybe a volatile will do it....


Jules


Stefan


On Thursday, Feb 27, 2003, at 05:26 US/Pacific, Jules Gosnell wrote:

Stefan Reich wrote:

I tested JSR-77 support in 3.2 and noticed the following issues:

* EntityBeanStatsImpl: PooledCount shows up always as zero
* JTAStatsImpl: results are always zero because the TranactionManagerService doesn't register itself as an MBean
* JCAConnectionPoolStatsImpl: WaitingThreadCount probably not connected
* JCAStatsImpl: only lists default datasource
* JMSResource needs to be hooked up.


The following stats don't show up at all: JavaMail, JDBCStats, ServletStats and URLStats.


The ServletStats are currently not filled out because acquiring them will add a significant point of contention to each servlet.

We hope to have a solution soon.


Jules (Jetty Integrator)





------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development






_______________________________________________________________________ _
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
_______________________________________________________________________ _



------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development





________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________


------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to