Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

(Aside:This has been originally asked as part of that FAQ: What is PROPERTY ( CompletedReq')?, but hey, we can convert comments into questions, too, so here we are, Breck...)

I have not tested that but there description is identical, both in v12 and v17:

Req:
The number of times the server has been entered to allow it to handle a new request or continue processing an existing request.
ReqCountActive:
The number of times the server has been entered to allow it to handle a new request or continue processing an existing request.

asked 23 Nov '15, 14:30

Volker%20Barth's gravatar image

Volker Barth
40.2k361549822
accept rate: 34%

converted 24 Nov '15, 07:50


Question: Are the Req and ReqCountActive properties the same?

No, they are not... and it goes further than that.

The cumulative Req server property has been around forever and it has always been useful.

The cumulative ReqCountActive connection property was introduced in Version 9 and is also useful.

Both properties are prominently displayed by Foxhound as server and connection-level requests-per-second measurements of Throughput.

However... The database and engine-level ReqCountActive properties were introduced in Version 12 and have no known purpose or usefulness; they are not recorded by Foxhound.

Here is an excerpt from the Foxhound internal docs...

           Recorded
              by
Scope      Foxhound?  Property        SQL Anywhere Versions     Notes
---------- ---------  --------------  ------------------------  -----
connection   yes      ReqCountActive  - - - - 9 10 11 12 16 17  
database     no       ReqCountActive  - - - - - -- -- 12 16 17  not cumulative, does not match server Req or connection ReqCountActive
engine       yes      Req             5 6 7 8 9 10 11 12 16 17  
engine       no       ReqCountActive  - - - - - -- -- 12 16 17  not cumulative, does not match server Req or connection ReqCountActive

Here is a simple query that was repeated while 10 V17 connections were busy pounding away at a cumulative rate of 12,000 transactions per second...

SELECT CONNECTION_PROPERTY ( 'ReqCountActive', 15 ), DB_PROPERTY ( 'ReqCountActive' ), PROPERTY ( 'Req' ), PROPERTY ( 'ReqCountActive' );

CONNECTION_PROPERTY('ReqCountActive',15),DB_PROPERTY('ReqCountActive'),PROPERTY('Req'),PROPERTY('ReqCountActive')
'28','0','4358','0'
'19357','0','197690','0'
'84316','0','844765','0'
'135113','0','1347953','0'
'207971','0','2071532','0'

As you can see, the database and engine-level ReqCountActive properties were always zero (yes, dbsrv17 -zt was specified) while the connection-level ReqCountActive was approximately 1/10th the value of the server-level Req (as expected).

Here is an adhoc query against the Foxhound database that shows the server-level Req property = SUM ( connection-level ReqCountActive ):

SELECT sample_detail.sample_set_number,
       sample_detail.Req, 
       SUM ( sample_connection.ReqCountActive ) AS "SUM ( ReqCountActive )"
  FROM sample_detail INNER JOIN sample_connection
    ON sample_detail.sample_set_number = sample_connection.sample_set_number
 WHERE sample_detail.sampling_id = 12
   AND sample_detail.sample_set_number BETWEEN 93081 AND 93185
 GROUP BY sample_detail.sample_set_number,
       sample_detail.Req
 ORDER BY sample_detail.sample_set_number;

   sample_set_number                  Req SUM ( ReqCountActive ) 
-------------------- -------------------- ---------------------- 
               93081                79316                  74540 
               93094               553347                 549128 
               93107              1007281                1006445 
               93120              1507909                1504002 
               93133              2029523                2025734 
               93146              2569196                2564751 
               93159              3087456                3083358 
               93172              3598468                3595030 
               93185              4027857                4027021 
(9 rows)
Execution time: 0.002 seconds
permanent link

answered 23 Nov '15, 16:04

Breck%20Carter's gravatar image

Breck Carter
32.5k5417261050
accept rate: 20%

converted 24 Nov '15, 09:18

Volker%20Barth's gravatar image

Volker Barth
40.2k361549822

Comment Text Removed

I think (and somebody can correct me if I'm wrong), that the number has a similar meaning, but Req counts all requests since the server started, whereas ReqCountActive counts all requests for all active connections (i.e. it decreases when a connection is closed). ReqCountActive is only counted while the RequestTiming server property is ON. ReqCountActive and ReqTimeActive are paired together so that you could calculate, say, the average request time.

See http://dcx.sap.com/index.html#sqla170/en/html/3bc92fda6c5f1014a489d6c2c7723e3d.html

and http://dcx.sap.com/index.html#sqla170/en/html/8176b8c76ce210149d3bb4fd6b8f4d21.html

I agree that the the documentation on the list of database server properties could be more clear. Feel free to post a comment on dcx to that effect.

permanent link

answered 23 Nov '15, 15:03

Phil%20Mitchell's gravatar image

Phil Mitchell
1.9k1831
accept rate: 27%

converted 24 Nov '15, 09:19

Volker%20Barth's gravatar image

Volker Barth
40.2k361549822

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×24

question asked: 23 Nov '15, 14:30

question was seen: 1,726 times

last updated: 24 Nov '15, 07:50