Bug 690508

Summary: Call time statistics of EJB beans are not correctly generated on subsequent requests for the statistics in no bean methods are executed between requests
Product: [Other] RHQ Project Reporter: bkramer <bkramer>
Component: OperationsAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0.1CC: hrupp, loleary
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
The EAR file used for testing
The screen shot that shows generated statistics none

Description bkramer 2011-03-24 10:24:20 EDT
Description of problem:
Call time statistics of EJB 2.1 stateless session beans are not correctly generated after some load on JON 2.4.1

Version-Release number of selected component (if applicable):
JON 2.4.1

How reproducible:
every time.

Steps to Reproduce:

1) Install EAP 5.1
2) copy all configuration to etat1 and etat2
3) remove messaging from etat1/deploy and etat2/deploy
4) deploy EAR to etat1/deploy and etat2/deploy
5) add virtual IP addresses bound to localhost as root via:

     [root@dhcp-64-60 chrome]# ip addr add dev lo
     [root@dhcp-64-60 chrome]# ip addr add dev lo

6) start Jboss instances:
    ./run.sh -c etat1 -b 
    ./run.sh -c etat2 -b

7) Install JON 2.4.1, install the corresponding JON agent 
8) Let JON 2.4.1 import those two EAP 5.1 instances
9) In JON on both TestBeans include Call Time Measurement and set collection interval to 1min
10 Put some load on the web app by calling the following script a few seconds/minutes:


while [ 1 ]
        for url in $URLS 
                wget $url -a etat.log

11) Go to Operations, request "View Method Statistics" and check the output (should look fine);
12) Stop the script;
13) Repeat step 11 - and check the result - the following report is generated:

Method Name 	Count 	Total Time 	Min Invocation Time 	Max Invocation Time 	Actions
sayHello 	0 	0 	9223372036854775807 	0 	
remove 	0 	0 	9223372036854775807 	0 	
create 	0 	0 	9223372036854775807 	0 	

Actual results:

Expected results:

Additional info: attached etat.ear.tar.gz and callTimeStatistics_stop1.png files
Comment 1 bkramer 2011-03-24 10:26:01 EDT
Created attachment 487345 [details]
The EAR file used for testing
Comment 2 bkramer 2011-03-24 10:26:43 EDT
Created attachment 487346 [details]
The screen shot that shows generated statistics
Comment 3 Larry O'Leary 2011-03-24 20:04:16 EDT
The behavior appears to be a bug in AS. Remove JON from the picture and use twiddle:

./twiddle.sh -s "${serverUrl}" -u "${jmxUser}" -p "${jmxPassword}" get "${mBeanName}" "${mBeanAttr}"

You will see that the InvokeStats are equally incorrect using your test-case.