Select to view content in your preferred language

How to count the number of users of a particular service?

2069
8
12-28-2018 01:02 AM
JamalNUMAN
Legendary Contributor

How to count the number of users of a particular service?

 

For example, in the screenshot below, I couldn’t figure out how to count the number of users of the indicated service.

 

Are there simple tools that can performed this task?

 

Thank you

 

Best

 

Jamal

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
8 Replies
Aled_Jones
Regular Contributor

Hey Jamal,

I'm not sure about active connections, apart from viewing the connections to the SDE.

However ArcGIS server Statistics maybe useful in this case.

It may not give you the number of users but it can give you a very good idea of the usage of your map service.

Hope that helps,

Al

JamalNUMAN
Legendary Contributor

Thank you for the help Aled Jon

 

It appears that this tool is very good one to understand the traffic on a particular service. However, the ArcGIS Server says that the statistics needs to be enabled. How this can be performed?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
Aled_Jones
Regular Contributor

Yep it's a great tool. 

To enable statistics on your server, open the admin rest directory and head to "usagereports".

Here you will see settings and you can enable it from here (this may require a restart of the services).

Here's the url: http://*gis.gisserver.web*/argis/admin/usagereports/settings

Aled_Jones
Regular Contributor

Just to add to this -

Automating statistics can be done with a python script to envoke report templates. These can be customised in the code and called as needed, this is quite tedious though as each service needs to be referenced. Example: Export service statistics to a file—ArcGIS Server Administration (Linux) | ArcGIS Enterpris... 

Alternatively, the data that dictates the statistics can be found in .DAT(-U/-I) files can be found in arcgis server directories -> arcgissystem -> statistics.

These can be queried using numpy. 

JamalNUMAN
Legendary Contributor

Many thanks for the prompt help. It is enabled now.

 

I’m not sure why ArcGIS Server fails to accept ticking the checkbox. Is this a known issue?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
Aled_Jones
Regular Contributor

No issue here Jamal.

The server hasn't registered any statistics and will begin collecting at your set interval from this point onwards. 

Test this by using a few map services over 30 mins (the default interval) and check back.

If this still isn't working.

Check the .DAT files to see if they increase in size, if they are, there is a issue.

FrédéricPRALLY
Esri Contributor

Hi Jamal,

Use Internet Explorer to enable a new report stat for each services.

More detail from this bug:

BUG-000104435: In ArcGIS GIS Server, the New Report radio buttons a.. 

Hope this help you,

Fred

JamalNUMAN
Legendary Contributor

Thank you Aled and Frédéric for the help

 

  • The size of the .dat-I and .dat-u are quite small. Are these files are temporary and automatically deleted?
  • Does this mean the failure in selection is browser issue?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine