Monday, August 26, 2013

Java heap space – ArcGIS Server Error


Recently when we were doing some spatial ArcGIS query using ArcGIS REST endpoint, we ran into some issues.
We turned on the server logs and started to monitor it. We found the following error entries in the log files.

Exception caught while processing request. Java heap space
Internal Server Error. Error handling service request : java.lang.OutOfMemoryError: Java heap space

com.esri.discovery.DiscoveryException: Error handling service request : java.lang.OutOfMemoryError: Java heap space

After several hours of debugging, we discovered one crucial problem.
In our published MXD file, we had few GIS Featureclass Layers from ArcSDE and also standalone ArcSDE tables.  There was a JOIN established between the GIS Featureclass Layer and standalone table. We realized that the GIS Featureclass layer was not versioned, but the ArcSDE standalone table was versioned. We removed the versioning from the standalone table and all started to work as expected.

It was surprising to see this kind of behavior. I am documenting this here so that it might help someone.
Cheers
Anand

No comments:

Post a Comment

All Blogs so far ...