<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Server REST API Query in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128888#M4950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written a code that use list of oids and I have added the condition of paging but I haven't modified my function return oids (&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #24292e; font-family: 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;get_object_ids&lt;SPAN style="color: #001000; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: medium;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;. But if returnIdsOnly is ignored with offset no problem: I have removed the condition in code:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/nicogis/DownloadService/commit/ab17f3f7226fc6cae9e3ad50d87bc602d5c9dae6#diff-8b2ce0edefcb93d71209983a53b2b9d0L225" title="https://github.com/nicogis/DownloadService/commit/ab17f3f7226fc6cae9e3ad50d87bc602d5c9dae6#diff-8b2ce0edefcb93d71209983a53b2b9d0L225"&gt;Fixed services that support paging · nicogis/DownloadService@ab17f3f · GitHub&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Tanu, but you could receive this error with a simple request rest query with returnIdsOnly ( there is no limit on the number of object IDs returned in the ID array response ) so can be useful do paging of oids&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="406091" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/423703_Cattura.PNG" /&gt;&lt;/P&gt;&lt;P&gt;I have generated about 8000000 oids&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="406093" alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/423713_Cattura.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;In some server with high number of services I had 'Unable to process request. Error handling service request :Cannot obtain a free instance.; nested exception is: java.lang.OutOfMemoryError: GC overhead limit exceeded'. (&amp;nbsp;&lt;A class="link-titled" href="https://plumbr.io/outofmemoryerror/gc-overhead-limit-exceeded" title="https://plumbr.io/outofmemoryerror/gc-overhead-limit-exceeded"&gt;GC overhead limit exceeded – Plumbr&lt;/A&gt; ) so &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;I had also the need change 'app server maximum heap size' for allocate more memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2018 18:47:57 GMT</pubDate>
    <dc:creator>nicogis</dc:creator>
    <dc:date>2018-10-02T18:47:57Z</dc:date>
    <item>
      <title>ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128877#M4939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering if it's possible to create a script that loops through an ArcGIS Server REST API query in order to retrieve all features contained within the layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have a query created that returns the expected results, but it only returns 1000 records...the default value set when publishing the service.&amp;nbsp; Is it possible to loop through the next 1000 records, and the next 1000 records after that until I have all the features within that layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128877#M4939</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2015-01-14T15:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128878#M4940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have access to the server you can change the number returned, but I am guessing you do not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The features only return a set # but the IDsOnly query returns everything. I ran a test and using where:1=1 I got 2,500 responses. When I did the same query using IDsOnly, I got 250,418. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query for IDsOnly, get them all. Now you know how many features exist and the range of OBEJCTIDs. Run multiple ajax queries using the objectids parameter and comma seperatinig them using array index 0-998 then 999 to 1998.....etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://server/...../0/query?f=json" rel="nofollow" target="_blank"&gt;http://server/...../0/query?f=json&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;objectIds=1,2,3,4,5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="http://server/...../0/query?f=json" rel="nofollow" target="_blank"&gt;http://server/...../0/query?f=json&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;objectIds=6,7,8,9&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 15:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128878#M4940</guid>
      <dc:creator>PaulCrickard</dc:creator>
      <dc:date>2015-01-14T15:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128879#M4941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have been waiting for a paging feature for REST queries to get around this issue, but until then there is only workarounds.&amp;nbsp; Pauls solution is probably the most thorough, If you know the data and general approximate size (most later versions of Server support a getCount query which just returns the number of records) you could specify different where queries.&amp;nbsp; I think an elegant solution would be some recursive function that uses a finer and finer geographic mesh to make a series of geographic intersection calls until each region returns less results than the max number allowed.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 16:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128879#M4941</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2015-01-14T16:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128880#M4942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/55897"&gt;Paul Crickard&lt;/A&gt;‌ -- this is helpful.&amp;nbsp; Not the way I was hoping to do it, but it does work as a way of retrieving thousands of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the tip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 17:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128880#M4942</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2015-01-14T17:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128881#M4943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, thanks. I didn't know about the IDsOnly. I have done this in the past by ordering by objectid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some pseudocode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;while True:
&amp;nbsp;&amp;nbsp;&amp;nbsp; q = getEverythingGreaterThanID(maxid)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ordered by objectid of course
&amp;nbsp;&amp;nbsp;&amp;nbsp; doSomethingWithIt(q)
&amp;nbsp;&amp;nbsp;&amp;nbsp; if q.has_key('exceededTransferLimit') == False:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # exit the loop. We're done here. No more to see here. Go Home
&amp;nbsp;&amp;nbsp;&amp;nbsp; maxID = getMaxID(q)
&amp;nbsp;&amp;nbsp;&amp;nbsp; #Repeat&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like your way better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:16:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128881#M4943</guid>
      <dc:creator>JasonTipton</dc:creator>
      <dc:date>2021-12-11T07:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128882#M4944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have posted a simple script in this thread: &lt;A _jive_internal="true" href="https://community.esri.com/thread/118781#445572" title="https://community.esri.com/thread/118781#445572"&gt;https://community.esri.com/thread/118781#445572&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 18:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128882#M4944</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-14T18:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128883#M4945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At 10.3, two new parameters (resultOffset and &lt;SPAN class="usertext"&gt;resultRecordCount&lt;/SPAN&gt;) are added to query operation to support pagination.&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Map_Service_Layer/02r3000000p1000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Map_Service_Layer/02r3000000p1000000/"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Map_Service_Layer/02r3000000p1000000/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls note: before you execute query operation to page through, pls check the layer's resource to find out whether it supports pagination (e.g. at 10.3, layers/tables off a FileGDB or shape files etc. don't support pagination; should work for enterprise databases). Look for '&lt;SPAN class="usertext"&gt;supportsPagination' flag inside '&lt;SPAN class="usertext"&gt;advancedQueryCapabilities'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 17:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128883#M4945</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2015-01-15T17:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128884#M4946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a module that can do this, I sent you a message on LinkedIn asking for your email so I can send it to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Caleb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 17:41:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128884#M4946</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-01-15T17:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128885#M4947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wanted to add here I have some working code to do this.&amp;nbsp; I have posted a&lt;A href="https://github.com/Bolton-and-Menk-GIS/restapi" rel="nofollow noopener noreferrer" target="_blank"&gt; python package on GitHub&lt;/A&gt;.&amp;nbsp; It can export web map layers to feature classes, and keep querying features until it gets them all if the features exceed the query limit.&amp;nbsp; Some sample code (package requires the &lt;A href="http://docs.python-requests.org/en/latest/" rel="nofollow noopener noreferrer" target="_blank"&gt;requests&lt;/A&gt; module):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import restapi

&lt;SPAN&gt;url = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://some_server.com/arcgis/rest/services/folder/some_map_service/MapService" target="_blank"&gt;http://some_server.com/arcgis/rest/services/folder/some_map_service/MapService&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;

# only use username and password if service is secured
user= 'username'
pw = 'password'
service = restapi.MapService(url, user, pw)

# export parcels layer
shp = r'C:\TEMP\output_parcels.shp'
service.layer_to_fc('parcels', shp, get_all=True)&amp;nbsp; # setting the get_all parameter to true will allow you to exceed the transfer limit&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The help documentation is available &lt;A href="http://gis.bolton-menk.com/restapi-documentation/restapi-module.html" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;, or you can get at it from the module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;restapi.getHelp()&amp;nbsp; # launch web help&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128885#M4947</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T07:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128886#M4948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tanu, ok that 'Return IDs Only' hasn't limit (maxRecordCount) but if I use resultOffset and resultRecordCount for example to do paging of oids (where 1=1 and Return IDs Only = true) seems that resultOffset and resultRecordCount are ignored. Is it for design ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 10:31:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128886#M4948</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2018-10-02T10:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128887#M4949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, that is by design that resultOffset and resultRecordCount are ignored when returnIDsOnly=True.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure why you'd want to page thru objectids, but if you really need to do that you can submit a query where&amp;nbsp; outFields=objectid &amp;amp; returnIDsOnly=False along with pagination parameters (i.e. resultOffset and/or resultRecordCount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128887#M4949</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2018-10-02T17:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128888#M4950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written a code that use list of oids and I have added the condition of paging but I haven't modified my function return oids (&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #24292e; font-family: 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;get_object_ids&lt;SPAN style="color: #001000; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: medium;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;. But if returnIdsOnly is ignored with offset no problem: I have removed the condition in code:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/nicogis/DownloadService/commit/ab17f3f7226fc6cae9e3ad50d87bc602d5c9dae6#diff-8b2ce0edefcb93d71209983a53b2b9d0L225" title="https://github.com/nicogis/DownloadService/commit/ab17f3f7226fc6cae9e3ad50d87bc602d5c9dae6#diff-8b2ce0edefcb93d71209983a53b2b9d0L225"&gt;Fixed services that support paging · nicogis/DownloadService@ab17f3f · GitHub&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Tanu, but you could receive this error with a simple request rest query with returnIdsOnly ( there is no limit on the number of object IDs returned in the ID array response ) so can be useful do paging of oids&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="406091" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/423703_Cattura.PNG" /&gt;&lt;/P&gt;&lt;P&gt;I have generated about 8000000 oids&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="406093" alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/423713_Cattura.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;In some server with high number of services I had 'Unable to process request. Error handling service request :Cannot obtain a free instance.; nested exception is: java.lang.OutOfMemoryError: GC overhead limit exceeded'. (&amp;nbsp;&lt;A class="link-titled" href="https://plumbr.io/outofmemoryerror/gc-overhead-limit-exceeded" title="https://plumbr.io/outofmemoryerror/gc-overhead-limit-exceeded"&gt;GC overhead limit exceeded – Plumbr&lt;/A&gt; ) so &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;I had also the need change 'app server maximum heap size' for allocate more memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:47:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128888#M4950</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2018-10-02T18:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server REST API Query</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128889#M4951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case anyone else comes across this post, the get_all=True has been updated to&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: small;"&gt;exceed_limit=True on line 12 of the code Caleb posted.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 19:20:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-rest-api-query/m-p/128889#M4951</guid>
      <dc:creator>KadeSmith</dc:creator>
      <dc:date>2019-12-19T19:20:57Z</dc:date>
    </item>
  </channel>
</rss>

