<?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: Jave Heap Space Error in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146890#M5828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry to bring up an old post,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON 10.2.2, my javaw process is hitting 1/4 of my machine memory (8gb of 32gb) and arcgis server goes out to lunch.&amp;nbsp; Only a manual restart of the arcgis server service brings it back.&amp;nbsp; When this happens, only 22gb of 32gb of ram are in use, so there is plenty of room.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guidance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 12:23:28 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2014-07-31T12:23:28Z</dc:date>
    <item>
      <title>Jave Heap Space Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146887#M5825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been running into the following problem with a map service. The service works file when accessed through ArcMap, ArcCatalog and the services directory. However when I use the service in a Flex application built with the Flex Viewer The service does not draw and registers a failure in the log files. The following is what's recorded in the log file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SEVERE Aug 16, 2012 9:26:42 AM Internal Server Error. Error handling service request: java.lang.OutOfMemoryError: Java heap space Rest &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEVERE Aug 16, 2012 9:26:42 AM Instance of service 'UpTimeData.MapServer' failed to process a request.&amp;nbsp; Server &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running on Windows 2003 R2 8 core with 8 GB of ram (I know this should be at least 16 GB). I've tried with the data for service from both an Enterprise GDB and a file GDB with the same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hints or suggestions on how to deal with this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 14:41:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146887#M5825</guid>
      <dc:creator>LorneDmitruk</dc:creator>
      <dc:date>2012-08-16T14:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Jave Heap Space Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146888#M5826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've been running into the following problem with a map service. The service works file when accessed through ArcMap, ArcCatalog and the services directory. However when I use the service in a Flex application built with the Flex Viewer The service does not draw and registers a failure in the log files. The following is what's recorded in the log file:&lt;BR /&gt;&lt;BR /&gt;SEVERE Aug 16, 2012 9:26:42 AM Internal Server Error. Error handling service request: java.lang.OutOfMemoryError: Java heap space Rest &lt;BR /&gt;SEVERE Aug 16, 2012 9:26:42 AM Instance of service 'UpTimeData.MapServer' failed to process a request.&amp;nbsp; Server &lt;BR /&gt;&lt;BR /&gt;I'm running on Windows 2003 R2 8 core with 8 GB of ram (I know this should be at least 16 GB). I've tried with the data for service from both an Enterprise GDB and a file GDB with the same results.&lt;BR /&gt;&lt;BR /&gt;Any hints or suggestions on how to deal with this issue.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a Question, have you tried to increase the following parameters in the machine-config.xml file (located in ArcGIS_HOME\framework\etc\machine-config.xml) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;WebServerMaxHeapSize&amp;gt;-1&amp;lt;/WebServerMaxHeapSize&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;AppServerMaxHeapSize&amp;gt;256&amp;lt;/AppServerMaxHeapSize&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;SocMaxHeapSize&amp;gt;700&amp;lt;/SocMaxHeapSize&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;WebServerMaxHeapSize&amp;gt;-1&amp;lt;/WebServerMaxHeapSize&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Patrice&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 15:12:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146888#M5826</guid>
      <dc:creator>PatriceFREYDIERE</dc:creator>
      <dc:date>2012-08-23T15:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Jave Heap Space Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146889#M5827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The handlers (REST, SOAP, OGC, Admin), the token service, and Manager application run in a single process.&amp;nbsp; That process is designed to not use more than 1/4 of the available RAM on the machine.&amp;nbsp; Since you have 8 GB of RAM, then that process won't use more than 2 GB of memory.&amp;nbsp; If it does then it will throw an error message since that is a very unusual situation.&amp;nbsp; We don't provide a means to increase the memory for that process.&amp;nbsp; The settings that Patrice suggested increase memory in the event that you have a Java-based SOE that consumes a large amount of memory but won't help here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, it's likely that the Flex app is making some call that is returning a huge amount of data (I am guessing 500 MB to 1 GB).&amp;nbsp; That may not be the desired behavior since just downloading that much data will take a while.&amp;nbsp; It's also possible there is a bug, but we ourselves haven't seen this error even under heavy load testing.&amp;nbsp; To really reach a diagnosis we will need you to open a Support incident and we will ask you to do some tests that will help us determine the root cause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --- David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 18:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146889#M5827</guid>
      <dc:creator>DavidCordes</dc:creator>
      <dc:date>2012-08-24T18:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Jave Heap Space Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146890#M5828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry to bring up an old post,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON 10.2.2, my javaw process is hitting 1/4 of my machine memory (8gb of 32gb) and arcgis server goes out to lunch.&amp;nbsp; Only a manual restart of the arcgis server service brings it back.&amp;nbsp; When this happens, only 22gb of 32gb of ram are in use, so there is plenty of room.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guidance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 12:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146890#M5828</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-07-31T12:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Jave Heap Space Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146891#M5829</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/3290"&gt;David Cordes&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 12:56:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146891#M5829</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-07-31T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Jave Heap Space Error</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146892#M5830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Increasing the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;SocMaxHeapSize has helped me. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 13:36:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/jave-heap-space-error/m-p/146892#M5830</guid>
      <dc:creator>AamirSuleman</dc:creator>
      <dc:date>2014-10-16T13:36:35Z</dc:date>
    </item>
  </channel>
</rss>

