Thursday, 13 March 2014

Analysis Error: Transaction end time is less than the scenario start time

problem Details:




We got analysis errors when we generating analysis file. The error messages are:

Analysis Error log: <12/7/2011 2:26:26 AM>
75004 Transaction : <http://3.239.241.106/mobileappstore/style/Popup/popup.css> InstanceID: 4294967300 VUser info:Host:3.239.16.186, Group:mobile_central.1, Script:mobile_central.1, ID:2. End Time: 1323238583.76075 Transaction end time is less than the scenario start time
75004 Transaction : <http://3.239.241.106/mobileappstore/style/styleStore.css> InstanceID: 4294967301 VUser info:Host:3.239.16.186, Group:mobile_central.1, Script:mobile_central.1, ID:2. End Time: 1323238583.8461 Transaction end time is less than the scenario start time
75004 Transaction : <http://3.239.241.106/mobileappstore/style/Popup/jquery-1.4.js> InstanceID: 4294967302 VUser info:Host:3.239.16.186, Group:mobile_central.1, Script:mobile_central.1, ID:2. End Time: 1323238583.97401 Transaction end time is less than the scenario start time
75004

Is there any solutions for this issue?

 

ProblemSolution:


Try the Collate option (Controller -> Results -> Collate Results)
First, try the Collate option: Controller -> Results -> Collate

Results. If this fails, then,
1. On the controller machine, go to Result -> Results setting to verify the result location.
2. Navigate to the result directory on the controller.
3. Locate the file named remote_results.txt and open it in any word editor
4. On remote_results.txt, you will see the location of the .eve file on remote host. For example
MyHost=c:\temp\brr1\netdir\test\myhost_1.eve
5. Go to that specific host, and copy of the .eve file to the controller machine's result directory.
6. Open the Result file ( .lrr) in Analysis .

If the scenario crashed, or ended prematuerly then set "FullData=1" in the lrr file of the result folder:
1. Open the Result file ( .lrr) in notepad
2. Search for the [Data Collection] section
3. Create/modify the value or FullData to 1
Example:
[Data Collection]
FullData=1

This will help in cases that the result files ( *.eve) contains useful data but the Controller did not manage to write to the lrr that it has the data. FullData will be zero in this case. Setting it to 1 will enable you to view what data was saved.

If the result still failed to come up, it is very likely that the _t_rep.eve file in the controller is not completely generated. In order to save what can be saved, run the scenario again, for a short interval(5 mins) saving the results in a folder different than the old results folder. The _t_rep.eve file and the .lrr file in the new result directory need to be edited. In the _t_rep.eve file there is a line (first one) which maybe something like this:

"28 11 1018300521 2 4627103 22735576 5481115"

The 11 is the event code for start scenario.
The 1018300521 is the start time and it needs to be moved backward to match the beginning of the first load test.
The same must be done for the scenario start time specified in the

.lrr file. For example,

[Scenario]
Start_time=1018300521

Put here the same number.

After this replace the binary eve files(.eve or .gzl) from the new load test result with the ones collected from the LoadGenerators resulted from old scenario run. Back up the data folder in the new results directory. Copy the data folder from the old results directory in the new results directory. Now the results can be analyzed.

If the exact time of start of the first load test is not known. Select any start time that will definitely fall before the estimated start time of the original scenario. For eg; say 10000 seconds less than the one in the new load test. Make a few iteration until you find out what exactly was the first event's time.

Note:

The duration of scenario in the new result will not be accurate.
It is advised not to overwrite the old result directory in these cases since it consists of the summary data and the monitoring data created even before collation.

7 comments: