|
POST
|
Hi all I will check both suggestions next time I am in client site. Please remember that CPU, memory and disk space statistics continue to be monitored without any problem Thanks
... View more
07-22-2025
10:03 PM
|
0
|
0
|
815
|
|
POST
|
Hi all You used python toolbox where the python code is embedded into the toolbox. I use simple toolbox where the tool is pointing (by reference) to the script (py separate file). Then when you publish you get the same structure where you have a py file with the script. It is easier to handle and you can use IDLE like pycharm that really help you get your code right. Move to simple py file mean only to copy the execute function into a different file and define new toolbox. You might deleted something by mistake while editing the toolbox. Sometime when there is a strange error the problem is really in one of the previous lines.
... View more
07-22-2025
10:01 PM
|
0
|
0
|
1112
|
|
POST
|
The publish process change the script. You can find the published script under C:\arcgisserver\directories\arcgissystem\arcgisinput (after the changes) Sometime the publishing process add some single quote somewhere (I have no idea why). It is not supported to change the published script directly but if you go there, find the extra quote and delete it you should get it up and running. Have fun
... View more
07-21-2025
10:13 PM
|
2
|
1
|
1149
|
|
POST
|
I have Monitor 2024.0 It was working fine but one day it stopped give me information about services. The Server host (memory and cpu) are fine and I can see them. I can see the list of services (mainly gp services) but I get no info about how many times they been called or response time. I can see all info in server manager. The monitor even getting the min/max instances info. Running the observer manually or checking the log just say that the request fail. I tried also to disconnect the server and register again but it does not help. Any idea?
... View more
07-21-2025
07:01 AM
|
0
|
8
|
877
|
|
POST
|
I have a GpService that create a shape file. In my code I am writing this file to %scratchFolder%\aaa.shp It is created in this directory (as it should): \\disk1\arcgisserver\directories\arcgisjobs\agritest_gpserver\1234\scratch\aaa.shp Where the 1234 is the job number. I can use the %scratchFolder%\aaa.shp in my code after is it created (Describe or read it by cursor). I need to use this file in the calling program so I return the %scratchFolder%\aaa.shp as an output parameter. The path that I get is: C:\Users\arcgis\AppData\Local\Temp\agritest_gpserver\1234\scratch\aaa.shp Where arcgis is the owner of the Enterprise and 1234 is the same job number. This dir exists on the server but it is empty. It looks like it created there temporary and was transferred to the jobs directory after the service ended. Any way to get the job directory in the code of the gp service so I can return the correct directory?
... View more
07-21-2025
06:54 AM
|
0
|
0
|
223
|
|
POST
|
I have Pro 3.4 that uses Python 3.11 When I use the same python in pychrm it think it is 3.9 In the attached screen shot you can see a few lines in Pro Python window that show the version and a screen from pycharm that show different version taken from the same directory. In some other machines when I have Pro 3.3 pycharm see version 3.1 that is not supported and does not include all the features of 3.11 Anybody see this?
... View more
07-01-2025
06:13 AM
|
0
|
3
|
923
|
|
POST
|
Is the first parameter to the tool (ducts) a layer in pro or a FC on disk? It must be a layer in Pro since the spatial join is on a layer and not on the real data. You can always use the Gp tool once and then copy the code from the History window.
... View more
06-18-2025
12:33 AM
|
0
|
1
|
1251
|
|
POST
|
Portal does not have Python env, only server does. The best way to run Python in server is to use GP service but there should be something calling this service. Stand alone python can be run using the server python env.
... View more
06-17-2025
12:01 AM
|
0
|
0
|
526
|
|
POST
|
If you use the python that comes with server it should use the server license see here: https://enterprise.arcgis.com/en/server/latest/develop/windows/scripting-service-publishing-with-arcpy.htm Note that sometime when you install both Pro and server on the same machine there is a mix between the python installations and it uses the wrong license even if you use the server's python. It better not to install Pro on the server machine.
... View more
06-15-2025
12:55 AM
|
2
|
1
|
573
|
|
POST
|
I found the way to do it but it still in testing. First you create and publish a separate script ("child") that do the part that should be executed in parallel. It gets parameters just like any gp service. Then you write a tool that run gp service (use this: https://enterprise.arcgis.com/en/server/10.8/publish-services/windows/using-a-service-in-python-scripts.htm#ESRI_SECTION1_76BCC792830C479298250C5C06652EE6 ). In such a script you can control the number of parallel instances, giving each one a different variable and then check that all instances are finished before continue the father script that aggregate or append the results. the child script should return his private results to the caller somehow (url to the results or string). After the father script was running in Pro I had not problem publishing it as gp service as a "father" service. Running this father service I could see the number of running processes for the "child" service going up when the father script run a few instances of the child in parallel.
... View more
06-03-2025
03:43 AM
|
0
|
0
|
511
|
|
POST
|
Hi all My message setting is info and I get NO messages. I am aware of the resources problem. If you use multiprocessing wisely you can limit the number of parallel processes. If you have a server with many cores and each gp service do a lot of work but does not called very often you should be able to get better performance. Currently the tool just ended without calling the function I need to run in parallel. Again, it works on Pro so my code is working. Something in the server env stopping it. Thanks
... View more
05-23-2025
12:44 AM
|
0
|
0
|
647
|
|
POST
|
I would like to use multiprocessing module in python to use more cores in process that I can split to independent parts. I create a small script. Running it in Pro works (but open a CMD window) and I could publish it to the server. It does not work on the server and gives no error message. Second test that I tried is to write a python that uses multiprocessing. Then create a short bat file that call this script. Then my main script in pro just do os.system(bat file). Again, runs in Pro, published with no comments but does not run on server. Found this: https://community.esri.com/t5/python-questions/usage-of-multiprocessing-in-a-python-based/m-p/50820#M4017 from few years back with no answer. Anybody have an idea? Thanks
... View more
05-22-2025
06:53 AM
|
0
|
4
|
708
|
|
POST
|
Hi Marco We are going to use local PostgreSQL to keep very few (5-10) layers with about 1-2M features each. We need best performance with drawing and some statistics in dashboards. Can you give a few hints about the configuration assuming that I do not have the time to become an expert in PostgreSQL configuration? Thanks
... View more
05-20-2025
08:49 PM
|
0
|
1
|
738
|
|
POST
|
Hi Marco Thanks for the information but our configuration are a little different. Both the hosted database and the stand alone Postgres are in the same network segment and have identical network. The question is really did esri done any tricks to make the hosted better then just standard installation of Postgres? Thanks
... View more
05-13-2025
09:27 PM
|
0
|
1
|
815
|
|
POST
|
We have some simple large layers (about 1M features) that we like to display and use in Dashboards with some statistics. We can save them to hosted database (that is really Postgres) or build our out Postgres database. There are some advantages and disadvantage to both option. Do you think the performances should be different? Do you think esri build the Postgres of the hosted in a different way that we install a local Postgres? Thanks
... View more
05-12-2025
10:00 PM
|
0
|
5
|
917
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 1 | 12-15-2025 10:07 PM | |
| 1 | 09-17-2025 06:35 AM | |
| 2 | 07-21-2025 10:13 PM | |
| 2 | 06-15-2025 12:55 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|