View Issue Details

IDProjectCategoryView StatusLast Update
0004073Compliance Test Tool (CTT) Unified Architecture6 - Performance Problempublic2019-08-09 15:36
ReporterBernd Edlinger Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
PlatformPCOSWindowsOS Version8.1
Product Version1.03.340.378 
Target Version1.03Fixed in Version1.03.341.381 
Summary0004073: Subscription Services/Subscription Basic/063.js subscription times out
Description

On a not very fast windows machine it happened that the
subscription times out because the CreateMonitoredItems.js took 500ms to
prepare the request parameters.

This loop in ServiceBased/MonitoredItemServiceSet/CreateMonitoredItems.js
took 500 ms to create 500 UaMonitoredItemCreateRequest objects:

for( i = 0; i < MonitoredItems.length; i++ ) {
    createMonItemsRequ.ItemsToCreate[i] = new UaMonitoredItemCreateRequest();
    createMonItemsRequ.ItemsToCreate[i].ItemToMonitor.AttributeId = MonitoredItems[i].AttributeId;
    createMonItemsRequ.ItemsToCreate[i].ItemToMonitor.NodeId = MonitoredItems[i].NodeId;
    createMonItemsRequ.ItemsToCreate[i].ItemToMonitor.IndexRange = MonitoredItems[i].IndexRange;
    createMonItemsRequ.ItemsToCreate[i].ItemToMonitor.DataEncoding = MonitoredItems[i].DataEncoding;
    createMonItemsRequ.ItemsToCreate[i].MonitoringMode = MonitoredItems[i].MonitoringMode;
    createMonItemsRequ.ItemsToCreate[i].RequestedParameters.ClientHandle = MonitoredItems[i].ClientHandle;
    createMonItemsRequ.ItemsToCreate[i].RequestedParameters.SamplingInterval = MonitoredItems[i].SamplingInterval;
    createMonItemsRequ.ItemsToCreate[i].RequestedParameters.QueueSize = MonitoredItems[i].QueueSize;
    createMonItemsRequ.ItemsToCreate[i].RequestedParameters.DiscardOldest = MonitoredItems[i].DiscardOldest;

    if( MonitoredItems[i].Filter !== undefined && MonitoredItems[i].Filter != null ) createMonItemsRequ.ItemsToCreate[i].RequestedParameters.Filter = MonitoredItems[i].Filter;
}

Everything would work fine, if the Services/Subscription Basic/016.js
limits the number of MIs to 50, instead of 500.

TagsNo tags attached.
Files Affected

Relationships

duplicate of 0003995 closedAlexander Allmendinger Subscription Basic/063 

Activities

Paul Hunkar

2017-12-01 15:35

administrator   ~0008761

This points to multiple items that need to be fixed in the C++ infrastructure -

1) Allow async processing for monitored item
2) Provide a C++ helper that will create a list of monitored items (faster than Java script)

Alexander Allmendinger

2018-08-04 13:20

developer   ~0009258

The creation of the MonitoredItem has been moved to the initialize script and therefore the test scripts do not run through the same loop each time causing such delays. Script which are affected by that change are:
040, 041, 049, 053, 055, 058, 059, 061, 063, Err-016, Err-017, Err-019, Err-020, Err-021, Err-022, Err-023, Err-024 and the initialize

Paul Hunkar

2019-08-09 15:36

administrator   ~0010738

reviewed in CMP call

further updated fixes to an older mantis issue 3995

Issue History

Date Modified Username Field Change
2017-11-27 09:55 Bernd Edlinger New Issue
2017-11-27 09:55 Bernd Edlinger Status new => assigned
2017-11-27 09:55 Bernd Edlinger Assigned To => Alexander Allmendinger
2017-11-27 10:59 Bernd Edlinger Summary Services/Subscription Basic/016.js subscription times out => Services/Subscription Basic/063.js subscription times out
2017-11-27 11:02 Bernd Edlinger Summary Services/Subscription Basic/063.js subscription times out => Subscription Services/Subscription Basic/063.js subscription times out
2017-12-01 15:32 Paul Hunkar Target Version => 1.04
2017-12-01 15:35 Paul Hunkar Note Added: 0008761
2018-08-04 13:20 Alexander Allmendinger Note Added: 0009258
2018-08-04 13:20 Alexander Allmendinger Status assigned => resolved
2018-08-04 13:20 Alexander Allmendinger Fixed in Version => 1.03.341.381
2018-08-04 13:20 Alexander Allmendinger Resolution open => fixed
2018-08-06 16:38 Alexander Allmendinger Relationship added duplicate of 0003995
2019-01-28 14:15 Paul Hunkar Category Performance Problem => 6 - Performance Problem
2019-08-09 15:34 Paul Hunkar Target Version 1.04 => 1.03
2019-08-09 15:36 Paul Hunkar Status resolved => closed
2019-08-09 15:36 Paul Hunkar Note Added: 0010738