Re: More tomcat Statistics...

2006-01-10 Thread anita kulshreshtha


--- Joe Bohn [EMAIL PROTECTED] wrote:

 Anita,
 
 Why extend from CountStatistic instead of
 TimeStatistic?  Can't we use 
 StartTime (from Statistic - parent of TimeStatistic)
 for the StartupTime 
 AIUI, StartTime in Statistic is to keep the time
when the statistics gathering started. It can be used
to compute other information for a given sampling
interval. The startupTime is slightly different. It is
the time taken to start the context (webapp).  
 and TotalTime for the ProcessingTime?  
I could use TotalTime of TimeStatistics for this.
I do not like filling all the other attributes (max,
min, count) to undefined values (-1 ?). I would prefer
the Count, its Unit can be used to format it correctly
in UI. 
That would
 just leave TldScanTime 
   in the extension class.  What is TldScanTime use
 for?
TldScanTime is the time to Scan the TLD contents
of all tag library descriptor files (including those
that are inside the jars 'accessible' to this webapp)
and register any application event listeners found
there. StartupTime is made up of tldScanTime, time to
load all servlets etc. May be tomcat users can comment
if is useful for performance tuning?  
  It brings me to another type of statistics say
'availability' which has a boolean value. Monitoring
tools constantly sample this value, and come up with
availability graphs and sometime take corrective
action. How do we represent this? Tomcat does provide
'availability' stats for an app. 

Thanks
Anita
 
 
 Joe
 
 anita kulshreshtha wrote:
  OK, for the time being I will call them
  CountStatistic and proceed. Later I could change
 them
  to the following for better readability.
  StaticTimeStatistics extends CountStatistics  and
  StaticTimeStatisticsImpl extends
 CountStatisticsImpl
  
  Thanks
  Anita
  
  --- Aaron Mulder [EMAIL PROTECTED]
  wrote:
  
  
 Boy, my head is just not in this at the moment.  I
 need to get some
 time to poke around the statistics interfaces a
 bit
 before I can
 render an intelligent opinion.  :)
 
 Thanks,
 Aaron
 
 On 1/8/06, anita kulshreshtha
 [EMAIL PROTECTED]
 wrote:
 
 Aaron, Joe and Others,
  I am attaching WebModuleStats that are
 
 available
 
 for an app from tomcat. Should we define another
 TimeStatstic to deal with static time data?
 
 The
 
 following
 long getProcessingTime(),
 long getStartupTime(), and
 long getTldScanTime()
fall under this catagory.
 
 Thanks
 Anita
 
  
  
  
  
  __ 
  Yahoo! DSL � Something to write home about. 
  Just $16.99/mo. or less. 
  dsl.yahoo.com 
  
  
  
 
 -- 
 Joe Bohn
 joe.bohn at earthlink.net
 
 He is no fool who gives what he cannot keep, to
 gain what he cannot 
 lose.   -- Jim Elliot
 




__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



Re: More tomcat Statistics...

2006-01-09 Thread Joe Bohn

Anita,

Why extend from CountStatistic instead of TimeStatistic?  Can't we use 
StartTime (from Statistic - parent of TimeStatistic) for the StartupTime 
and TotalTime for the ProcessingTime?  That would just leave TldScanTime 
 in the extension class.  What is TldScanTime use for?


Joe

anita kulshreshtha wrote:

OK, for the time being I will call them
CountStatistic and proceed. Later I could change them
to the following for better readability.
StaticTimeStatistics extends CountStatistics  and
StaticTimeStatisticsImpl extends CountStatisticsImpl

Thanks
Anita

--- Aaron Mulder [EMAIL PROTECTED]
wrote:



Boy, my head is just not in this at the moment.  I
need to get some
time to poke around the statistics interfaces a bit
before I can
render an intelligent opinion.  :)

Thanks,
   Aaron

On 1/8/06, anita kulshreshtha [EMAIL PROTECTED]
wrote:


Aaron, Joe and Others,
I am attaching WebModuleStats that are


available


for an app from tomcat. Should we define another
TimeStatstic to deal with static time data?


The


following
long getProcessingTime(),
long getStartupTime(), and
long getTldScanTime()
  fall under this catagory.

Thanks
Anita







__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 






--
Joe Bohn
joe.bohn at earthlink.net

He is no fool who gives what he cannot keep, to gain what he cannot 
lose.   -- Jim Elliot


More tomcat Statistics...

2006-01-08 Thread anita kulshreshtha
Aaron, Joe and Others,
 I am attaching WebModuleStats that are available
for an app from tomcat. Should we define another
TimeStatstic to deal with static time data? The
following  
long getProcessingTime(), 
long getStartupTime(), and
long getTldScanTime()
   fall under this catagory.

Thanks 
Anita



__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 
package org.apache.geronimo.management.geronimo.stats;

import javax.management.j2ee.statistics.CountStatistic;
import javax.management.j2ee.statistics.TimeStatistic;

public interface WebModuleStats {
// ---
//   static data 
// ---

/**
 * @return The cumulative processing times of requests by
 * all servlets in this Context
 */
public long getProcessingTime();

/**
 * @return The time this context was started.
 */
public long getStartTime();

/**
 * @return The time (in milliseconds) it took to 
 * start this context.
 */
public long getStartupTime();

public long getTldScanTime();

// ---
//   Transient data 
// ---
/**
 * Gets the time (in seconds) that an expired session had been
 * alive. (count, max, total)
 *
 * @return Time (count, max, total) that an expired session had been
 * alive.
 */
public TimeStatistic getSessionAliveTime();
/**
 * Sets the time (in seconds) that an expired session had been
 * alive.
 * @param maxActive
 * @param minTime
 * @param sessionMaxAliveTime
 * @param sessionTotalAliveTime total ? average is available
 */
public void setSessionAliveTime(int maxActive, int minTime, int sessionMaxAliveTime,
int sessionTotalAliveTime);

/** 
 * Returns the total number of sessions created by this manager 
 *
 * @return Total number of sessions created by this manager 
 */
public CountStatistic getSessionCount();

/** 
 * Gets the number of currently active sessions.
 *
 * @return Number of currently active sessions
 */
public CountStatistic getActiveSessionCount();

/**
 * Gets the number of sessions that have expired.
 *
 * @return Number of sessions that have expired
 */
public CountStatistic getExpiredSessionCount();

/**
 * Gets the number of sessions that were not created because the maximum
 * number of active sessions was reached.
 *
 * @return Number of rejected sessions
 */
public CountStatistic getRejectedSessionCount();

/**
 * Used by the native implementation 
 */

/** 
 * Sets the total number of sessions created by this manager.
 *
 * @param sessionCounter Total number of sessions created by this manager.
 */
public void setSessionCount(int sessionCounter);

/** 
 * Sets the number of currently active sessions.
 *
 * @param sessionCounter Number of currently active sessions
 */
public void setActiveSessionCount(int activeSessionCount);
 
/**
 * Sets the number of sessions that have expired.
 *
 * @param expiredSessions Number of sessions that have expired
 */   
public void setExpiredSessionCount(int expiredSessionCount);

/**
 * Sets the number of sessions that were not created because the maximum
 * number of active sessions was reached.
 *
 * @param rejectedSessions Number of rejected sessions
 */
public void setRejectedSessionCount(int rejectedSessionCount);

public void setStartTime();

public void setLastSampleTime();

}

Re: More tomcat Statistics...

2006-01-08 Thread Aaron Mulder
Boy, my head is just not in this at the moment.  I need to get some
time to poke around the statistics interfaces a bit before I can
render an intelligent opinion.  :)

Thanks,
Aaron

On 1/8/06, anita kulshreshtha [EMAIL PROTECTED] wrote:
 Aaron, Joe and Others,
  I am attaching WebModuleStats that are available
 for an app from tomcat. Should we define another
 TimeStatstic to deal with static time data? The
 following
 long getProcessingTime(),
 long getStartupTime(), and
 long getTldScanTime()
fall under this catagory.

 Thanks
 Anita


Re: More tomcat Statistics...

2006-01-08 Thread anita kulshreshtha
OK, for the time being I will call them
CountStatistic and proceed. Later I could change them
to the following for better readability.
StaticTimeStatistics extends CountStatistics  and
StaticTimeStatisticsImpl extends CountStatisticsImpl

Thanks
Anita

--- Aaron Mulder [EMAIL PROTECTED]
wrote:

 Boy, my head is just not in this at the moment.  I
 need to get some
 time to poke around the statistics interfaces a bit
 before I can
 render an intelligent opinion.  :)
 
 Thanks,
 Aaron
 
 On 1/8/06, anita kulshreshtha [EMAIL PROTECTED]
 wrote:
  Aaron, Joe and Others,
   I am attaching WebModuleStats that are
 available
  for an app from tomcat. Should we define another
  TimeStatstic to deal with static time data?
 The
  following
  long getProcessingTime(),
  long getStartupTime(), and
  long getTldScanTime()
 fall under this catagory.
 
  Thanks
  Anita
 




__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com