|
POST
|
Hello @NaveedAhmed2 , In addition to what @CodyPatterson has mentioned. It would be great if you can check ArcGIS DataStore logs and if they show anything in regards to this. A documentation which can help with that : Access log files Additionally, we can also try to utilize some DataStore command line utilities to help us dig deeper, if you can share the screenshot of the following, that would help in understanding the issue: describedatastore Check for and install software patches and updates Hope it helps!
... View more
07-15-2024
08:23 AM
|
1
|
1
|
2232
|
|
POST
|
Hello @gisarchitect @RedaAli While I may not be able to address all of your concerns, I will do my best to answer as many as I can. Kindly find the details below (Hope it doesn't end up being a boring response 😁😞 Connection Pooling and Management: How does ArcGIS Server handle database connections in this scenario? Does it use connection pooling to manage and reuse connections efficiently? ArcGIS Server uses connection pooling to manage and reuse database connections efficiently. Connection pooling minimizes the overhead of opening and closing database connections by keeping a pool of active connections that can be reused by different service instances. Even if the ArcGIS Server is not utilizing the database, it will still have a "sleeping connection" to the database. You can validate this by querying the "sys.dm_exec_sessions" table in SQL Server with "s.login_name = 'RegisteredwithArcGISServer' AND s.status IN ('running', 'sleeping')". If 20 users are accessing the feature service simultaneously, does this result in 20 individual connections to SQL Server, or are connections pooled and shared across instances? When 20 users access the feature service simultaneously, ArcGIS Server will not necessarily create 20 individual connections to SQL Server. Instead, it uses a pool of connections that are shared across service instances. The exact number of connections depends on the configuration of the service and the demand placed on the server, which controls the connections created by ArcGIS Server. Service Instance Configuration: Given that the feature service has a maximum of 20 instances, does this configuration imply that up to 20 connections could be established with the SQL Server, assuming high load? Yes, up to 20 connections could potentially be established with SQL Server. This assumes that each instance requires a separate connection and that all instances are actively serving requests. However, if a connection completes a request and is free, it will be reused instead of creating a new connection. What best practices can be followed to configure the minimum and maximum number of service instances to optimize connection usage? This depends on several variables, with the major factor being "how fast the service can address the request from the client." The faster it addresses the request, the sooner that instance will be free to answer new requests. If the instance is reused, so is the DB connection (no new connection needed). These are controlled by a few properties on the service, including: Maximum time a client can use a service Maximum time a client will wait to get a service Maximum time an idle instance can be kept running Recycling Documents that would help in extensively understanding these capabilities include: Tune and configure services Configure service instance settings Anticipate and accommodate users Additionally, what helps me a lot is "monitoring and adjustment," i.e., regularly monitoring the usage of service instances and adjusting the configuration as needed. Tools like ArcGIS Monitor can help track service performance and database connection usage. Registered connection files in ArcGIS Server When multiple geodatabases are registered from the same SQL Server instance, does this count as multiple users even if they are connected using the same SQL Server user account? This depends on the architecture you want to apply. Database Authentication: Essentially, ArcGIS Server will use the account you used to register the database connection, so all connections to SQL will show that account. In this case, you can create a separate account in SQL Server specifically for ArcGIS Server and use that for all connections (not recommended if you want editor tracking). Operating System Authentication: In this case, use a domain account/local account with the same username and password on both the SQL and ArcGIS Server machines for the ArcGIS Server service. Add it as a login to the SQL Server instance and map it to a user you create in the database. ArcGIS Server will use this account to connect to the database. This would fall under the licensing process you are referring to. From what I could understand from different blogs, When multiple geodatabases are registered from the same SQL Server instance, each connection to the SQL Server counts as a separate user or device from a licensing perspective, even if they are connected using the same SQL Server user account. This is because SQL Server Client Access Licenses (CALs) are based on the number of distinct connections, not just the user account used for those connections. I can say that I am no expert in SQL Server Licensing. Hence, I did some research on this and read a lot of blogs and in these cases YouTube videos help me a lot. I will try to summarize what I could understand briefly Licensing Obligations: Multiple Users or Devices: Each connection to the SQL Server, whether coming from different geodatabases or multiple instances of the same geodatabase, counts towards your SQL Server CALs. Thus, you need to license based on the number of unique connections rather than the single user account. Connection Pool Consideration: The connections in the pool represent the number of distinct sessions or instances that interact with SQL Server. Licensing should account for these connections as each connection could potentially be a different user or device. Licensing Based on Connection Pool: SQL Server CALs: We need to consider and keep in mind to license SQL Server based on the total number of connections expected in the connection pool, not just the user account used to establish those connections. Each connection pool entry is treated as a distinct user or device for licensing purposes. Key Points (From various sources) Multiple Geodatabases: If you have multiple geodatabases registered from the same SQL Server instance, each connection from these geodatabases counts as a separate user or device. Single User Account: Licensing could not be based solely on the single SQL Server user account but rather on the number of concurrent connections in the connection pool. Compliance: We can ensure compliance by licensing the maximum number of concurrent connections to SQL Server, reflecting the actual usage and number of connections that may be active at any given time. Ensuring Compliance with SQL Server Standard Edition Licensing Constraints Furthermore, again from reading different blogs and this time some YouTube Videos as well, SQL Server Standard Edition has licensing constraints based on the number of connections, here are some strategies and configurations to help ensure compliance and avoid exceeding these limits: Strategies to Manage and Limit Concurrent Connections Optimize Connection Pooling: Connection Timeout Settings: Configure shorter idle timeouts for connections to ensure that unused connections are promptly closed. This helps in keeping the number of active connections within the limits. Max Pool Size: Set the maximum pool size for database connections to a value that complies with your SQL Server licensing. This can be configured in the database connection string used by ArcGIS Server. Configure Service Instances: Minimum and Maximum Instances: Set appropriate minimum and maximum instances for your ArcGIS Server services. By limiting the maximum number of instances, you can control the number of concurrent connections to SQL Server. Instance Recycling: Configure service instance recycling to periodically release and refresh instances, helping to manage the connection pool more effectively. Monitor and Adjust: Monitoring Tools: Use tools like ArcGIS Monitor and SQL Server Management Studio to track the number of active connections, monitor usage patterns, and identify peak usage times. Alerts and Notifications: Set up alerts to notify you when the number of active connections approaches the licensing limit, allowing you to take preemptive action. Implement Efficient Query Practices: Optimize Queries: Ensure that your queries are optimized to reduce the load on SQL Server, thus potentially reducing the number of connections required. Batch Processing: Where possible, use batch processing to handle multiple requests within a single connection. Load Balancing: Distribute Load: If feasible, distribute the load across multiple SQL Server instances. This can help in spreading out the connections and avoiding overloading a single instance. User and Connection Management: Dedicated Accounts: Create dedicated SQL Server accounts for different services or applications to better track and manage connections. User Session Management: Implement policies to manage user sessions, such as limiting the duration of sessions or enforcing logouts after a period of inactivity. Configuration Examples Example of Connection String with Max Pool Size: Sample query: Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;Max Pool Size=50;Connection Timeout=30; Setup Service Instance Configuration in ArcGIS Server in association accordingly Example of Monitoring Setup: ArcGIS Monitor: Set up to track active connections, instance usage, and performance metrics. SQL Server Management Studio: As mentioned before you can monitor “sys.dm_exec_sessions” table and monitor that for “s.session_id = c.session_id” (could be more detailed as well). Hopefully this doesn't cause more confusion. I understand that the response is a bit long but I tried to keep it as short as possible and not miss out on any key points. Hope it helps!
... View more
07-15-2024
08:09 AM
|
2
|
1
|
3913
|
|
POST
|
Hello @CW-GIS , It would be great if you can share details from the logs generated by WebGISDr process (usually created where you store the properties file). It will help us in understanding at which step this is failing/which steps take such long time. Additionally, an easy way to isolate this problem is to switch Portal logging level to "DEBUG" and run "exportsite" operation from Portal Admin endpoint by following the steps in below document : https://developers.arcgis.com/rest/enterprise-administration/portal/export-site/#file-store-request-parameters While this is running check Portal logs with "DEBUG" for more detailed error message which will help in understanding (If possible share that here) Note : Remember to switch the logging back to way it was otherwise it can consume a lot of storage on the machine The reason that this will help isolate is because it is what "WeebGISDr" essentially does in case of Portal for ArcGIS. If you can share these, we can probably look for the root cause of this. Hope this helps!
... View more
07-15-2024
02:18 AM
|
0
|
0
|
2505
|
|
POST
|
Hi Community, I am trying to achieve this new capability which ESRI released which allows to show "Related Records" on Web Scene by using Hosted Scene layers. However, the data on the related records shows blank. Version : ArcGIS Enterprise 11.3 Workflow: Publish Hosted Scene Layers Add the Scene layer to Web Scene/Local Web Scene Enable display "related record Display" on Pup-ups by following the below documentation: Configure pop-ups in a scene—Portal for ArcGIS | Documentation for ArcGIS Enterprise Select the feature and it will show the presence of related records. However, when you click on that it will not shows data from that related table. Add the associated feature service to Web Map and enable display of related record. It will show all the data. Can anyone share some thoughts or have experienced such issue before?
... View more
07-03-2024
11:55 PM
|
0
|
1
|
1107
|
|
POST
|
Hello @AkhilRajT , Apologies for delay in response got occupied with some stuff. I tested with creating a custom script as per ESRI documentation and it works for me as expected. This leads me to believe that there is something with the script or template you are utilizing. Is it possible for you to share the script and a sample copy of the template you are utilizing, I can test with that on my end. Additionally, I am sure it's not but I wanted to confirm that neither the print service nor Application is publicly shared? Hopefully you can share the details. Stay Safe! -Archit
... View more
05-29-2024
09:46 PM
|
0
|
0
|
4300
|
|
POST
|
Hello @AkhilRajT , Thanks for clarifying that. It would be very helpful in narrowing down the cause. I would run the same test in one of my 11.2 environment today and will try to gather more information on this. Will share more details soon on this. In the meantime can you confirm the the print tool you have created on 11.2, was it able to print the Sample server 6 service which I shared above. I would like to if that is working or failing? -Archit
... View more
05-12-2024
10:10 PM
|
0
|
3
|
4447
|
|
POST
|
Hello @AkhilRajT , That clarifies it a bit. It seems to me that the layer which is in the map could be causing a problem. In order to further understand can you try the following: https://************/server/rest/services/dev/GIS_Plot/FeatureServer/0 Is this service secured? Is this service coming from Hosted Server? Can you try to create a WebMap with the following service and try to Print https://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer Can you try the same Print Service in Web App Builder (Make sure you create the Web Map in Map viewer Classic which would be used in Web App Builder) Are you able to open the REST API of the service you are trying to print on ArcGIS Server Machine (Launch the browser with ArcGIS Server service account) We are trying to understand if the workflow requires print service which can Print secured service (with embedding ags file) These workflows should allow us to understand the behavior better and come up with a defined solution. Hope it helps! -Archit
... View more
05-08-2024
05:24 AM
|
0
|
5
|
4503
|
|
POST
|
Hello @AkhilRajT , Can you share "Info" level logs for the Geoprocessing service. To set the logging level for the Geoprocessing Service specifically, follow the below document: Enabling info-level geoprocessing messages : Troubleshooting geoprocessing REST services—ArcGIS Server | Documentation for ArcGIS Enterprise Once, you enable this run the tool again in Experience Builder Application and in another Tab Navigate to "ArcGIS Server Manager" > Site > Jobs > Under Service select the GP service and query. This will show you the Job ID generated for the latest run of the tool. Once you open that, it will show you details of the JOB run. If you can share that it would shed some more light on what is actually failing in the process. Hope it helps! -Archit
... View more
05-02-2024
05:17 AM
|
0
|
7
|
4621
|
|
POST
|
Hello @SciotoCoJT , You can take a different approach, let me try to describe that below: Move the cache to a shared location and allow ArcGIS Server Service account Full privileges on this folder. You can follow the steps as per below document depending on you cache type https://enterprise.arcgis.com/en/server/latest/publish-services/windows/copying-caches.htm Add a Cache Directory to ArcGIS Server (as the Image would be very large, would not recommend keeping them on same machine as ArcGIS server) but following the link below: https://enterprise.arcgis.com/en/server/latest/administer/windows/adding-a-server-directory-in-manager.htm Publish the Image service to ArcGIS Server, while publishing Navigate to configuration Tab > Select edit option on Imagery Under Layer Drawing Section > Dynamically from Data (this is default but make sure to check) Publish the Service After the service publishes, access the server manager and access the caching tab for the new service From here, change the caching to "using tiles from a cache" and specify the cache directory path to the copied folder from previously Save and Restart the Service. Things to really make sure as Cached Service would not allow any deviations: Publish a new using the same naming convention as the previous Image service & cache folder. For example, if the Service is called Test_Image_Service and the cache folder is Test_Image_Service, make sure you use the same name when publishing a new service. Keeping the name same for the copied folder and the service is crucial. Once this workflow is done, You can add these services as an Item to Portal for ArcGIS or if they are federated (not sure as you didn't reply to @A_Wyn_Jones's query) the items will visible by default. Do let me know if you encounter issue in this workflow. Hope it helps! -Archit
... View more
04-28-2024
11:38 PM
|
0
|
1
|
4123
|
|
IDEA
|
Hello @AbiDhakal , I did some testing and have some findings I would like to share, which are mentioned below: To view changes in ArcGIS web AppBuilder the map has to be configured in Map viewer classis, As I understand the cause behind this is ArcGIS API 3.x for JavaScript on which Map Viewer Classic and ArcGIS Web AppBuilder are built. Any configuration of Attribute Inspector window or Pop-ups window created in Map Viewer will be honored in ArcGIS Experience builder and ArcGIS Dashboards not in Web AppBuilder. Map Viewer Classic in ArcGIS Online has been marked for deprecation with the ArcGIS Online June 2023 update and I assume this is consistent with same time release of ArcGIS Enterprise. For more details : Deprecation: Map Viewer Classic in ArcGIS Online Deprecation (esri.com) I agree that there is no specific section for Map viewer (I would not expect on for Map Viewer classis due point 3 mentioned above) but I do see a lot of ideas posted for "Map Viewer" posted in https://community.esri.com/t5/arcgis-online-ideas/idb-p/arcgis-online-ideas and few of them got addressed as well. Hence, I think that "Ideas Exchange" would be better to share this concern (not saying that here it's incorrect). Furthermore, I do think that it would be a better approach to migrate the workflow to Map Viewer (as I am doing the same) and log the concerns on the Map viewer as it would stay for a longer time. Hope it helps! -Archit
... View more
04-28-2024
10:53 PM
|
0
|
0
|
980
|
|
POST
|
Hello @Joshua-Young, The services published through database views would not allow us the capability for the below reasons: Feature services do not support publishing from Database Views: https://enterprise.arcgis.com/en/server/latest/publish-services/windows/prepare-data-for-feature-services.htm#GUID-6C906CA5-54C8-4E9F-BDB8-8BC4A23FC485 As they are "virtual table whose contents are defined by a query" and by design they do not support the base capabilities required for sharing content with Sync Capability. Furthermore, even if I "Register with Geodatabase" these capabilities would not be available as they are not supported on a view. Kindly find some screenshots below: I tried to do some digging from SQL Server side itself and it doesn't seem possible, below is the documentation set I am trying to research from: https://learn.microsoft.com/en-us/sql/relational-databases/views/views?view=sql-server-ver16 Furthermore, I think the solution you have may be the only way. Hope it helps!
... View more
04-27-2024
10:21 PM
|
0
|
0
|
1999
|
|
POST
|
Hello @Joshua-Young , I would assume that you have published this view and Map Service to ArcGIS. As per my understanding it should work if the collaboration is set to "As Reference", check point 7 in the documentation below: https://enterprise.arcgis.com/en/portal/latest/administer/windows/create-a-collaboration.htm#ESRI_SECTION1_5A45FBB2A7544A3CB5D7A060A9379238 Furthermore, there are more details about sharing layers and views in the following documentation: https://enterprise.arcgis.com/en/portal/latest/administer/windows/share-content-with-collaboration-participants.htm#ESRI_SECTION1_12BAA02A007F498D8B07467EFB188DE4 Additionally, I did some testing as I have map services which are created from views as well and created a distributed collaboration. I noticed that the content is shared as expected from a map service (referenced data from EGDB). It would be great if you can share more details about the collaboration settings, check portal logs and share it. You can also find "Sync" detailed logs at Portal Sharing Rest API as shown in the below documentation: https://developers.arcgis.com/rest/users-groups-and-items/sync.htm The error "data is not configured for sync" indicates that it's trying to share it through collaboration as "Copies" which I believe would not be supported. Hope it helps! -Archit
... View more
04-25-2024
04:21 AM
|
0
|
0
|
2054
|
|
POST
|
Hello @GISCloud , I would like to request if you can check the following to check if the service cache/service is created properly: Check if these tools are running in ArcGIS Server Manager, if yes, restart these tools: System/SceneCachingControllers (GPServer) System/SceneCachingTools (GPServer) To find them navigate to ArcGIS Server Manager > Services > System Are we able to navigate to the JSON Rest API of the Scene Service Navigate to ArcGIS Server Rest endpoint > sign in > Hosted > fins the scene service > Select the service (should open up the JSON end point) : Helps us validate weather service is created properly Switch the ArcGIS Server logs to "DEBUG" and try to access the service, this should register more details (make sure once logs are collected switch the logging the way you want as DEBUG can cause consumption of disk space very quickly) If you want share the logs with me and we can have a look to narrow down the cause of this. If possible try another with another data. Hope it helps!
... View more
04-13-2024
10:59 PM
|
0
|
0
|
1799
|
|
POST
|
Hello @StefanStamenković , Thanks for sharing the details. While I analyze the script you have shared as it seems a bit modified than usual. I would like to bring the following to attention and consideration: Can you confirm that you are using Web-Tier to check that: Navigate to ArcGIS Server Manager > Security > What you see under configuration settings Confirm the Version of ArcGIS Server you are working with Make Sure that ArcGIS Server Connection is "User Connection" Can we try the basic script and steps recommended by ESRI in the following article, this will help us make sure if the modifications are causing any problems: Publish a custom print service with embedded credentials from ArcGIS Pro to a standalone ArcGIS Server site Here are some initial tests I ran: Configured you script at my end with Sample Server 6 credentials ags file (as I do not have standalone server) (Made sure that the connection Type is USER) Made some basic changes in script to help me understand things better and handle things better (mentioned below) Used "Web Map as JSON" from ESRI article Publish a custom print service with embedded credentials from ArcGIS Pro to a standalone ArcGIS Server site Published it as a Web Tool To Portal for ArcGIS (11.1) Added a secured Hosted Service and a Secured service from Sample Server 6 and ran Print in Web App Builder Widget and it seems to work Changes Made in the script (very-initial) (attached updated): Wrapped some parts of code in 'try-except' to catch specific exceptions that might occur during execution. Added exception handling for both map export and layout export functions Additionally, I think "Web-Tier Authentication" could be the culprit here, Can you check this post about ArcGIS Server Windows Service account with IWA. It would be great if you can try the attached script, publish it as geoprocessing service, Set the logging level for Geoprocessing service and try to run the tool and what happens. Hope it helps! -Archit
... View more
03-27-2024
12:14 AM
|
0
|
0
|
2506
|
|
POST
|
Hello @mabdraboh, I tested this on 11.2 several types of environment listed below and the results : ArcGIS Enterprise Single Machine Deployment : Works ArcGIS Enterprise High Availability (With All ArcGIS Server Roles on individual Multi-machine and ArcGIS DataStore all Roles in High-Availability) : Shows "[ERROR] OH36" (even though all Datastore registrations are correct) but proceeds with the process in comparison to previous version where it used to exit the tool run. And I can confirm that the tool works in certain scenarios for 11.2 environment but still completes the run. Hence, I would request if you can share more details about the error perhaps we can try to check what is happening. @JTessier I tested what you mentioned as well. I coped the "operationalhealth" folder from 11.2 to 11.1 environment and it gives the same error mentioned above "[ERROR] OH36" as mentioned before. Hope it helps! -Archit
... View more
03-25-2024
11:42 PM
|
1
|
1
|
3416
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | Monday | |
| 1 | a week ago | |
| 1 | a week ago | |
| 5 | a week ago | |
| 3 | a week ago |