Bug 1029262

Summary: [Performance] Test run report response time is more than 200 seconds and cause MySQL Server CPU nearly 100%
Product: [Other] TCMS Reporter: Xiong Zhi Ming <zxiong>
Component: ApplicationAssignee: Yuguang Wang <yuwang>
Status: VERIFIED --- QA Contact: Nobody <nobody>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DevelCC: cqi, junzhang, ryang, vchen, zxiong
Target Milestone: ---Keywords: Improvement, Performance
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
MySQL Server CPU Used% none

Description Xiong Zhi Ming 2013-11-12 02:19:43 UTC
Created attachment 822738 [details]
MySQL Server CPU Used%

Description of problem:
Test run report response time is more than 200 seconds and cause MySQL Server CPU nearly 100%

Version-Release number of selected component (if applicable):
V3.8.4

How reproducible:
100%

Steps to Reproduce:
1. Open a test run
2. Click Report
3.

Actual results:
231 seconds 

Expected results:
less than 15 seconds

Additional info:
test env.
Server	Function	OS	CPU	Memory	Software
------  --------        ---     ---     ------  -----------
dhcp-8-146.nay.redhat.com	DB Server	Red Hat Enterprise Linux Server release 6.3	1 CPU (4 Cores)	4G	MySQL 5.1.67
tcms-test.app.eng.nay.redhat.com	Web Server	Red Hat Enterprise Linux Server release 5.1	2VCPU	2GB	"Apache Http Server 2.2
nitrate3.8.5-1"
dhcp-8-145.nay.redhat.com	JMeter load generator	Red Hat Enterprise Linux Server release 6.3	1 CPU (8 Cores)	8G	JMeter 2.9

Comment 1 Xiong Zhi Ming 2013-12-24 08:54:50 UTC
TestRun_Report elapsed time is closely related to the number of test cases of test run. Running report of test run which has 1000 test cases, it spend about 238855 ms, but Opening Test Run Report which has test cases takes 25375 ms. It's about 10 times.

Comment 2 yangqiu 2014-05-04 10:32:24 UTC
From the report 
https://docs.engineering.redhat.com/display/reporting/TCMS+V3.8.7-hotfix+performance+testing+report
Loading testrun_report page with 724 cases spent 1.98s.