Jave Heap Space Error

Discussion created by ldmitruk on Aug 16, 2012
Latest reply on Oct 16, 2014 by wiseguy
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:

SEVERE Aug 16, 2012 9:26:42 AM Internal Server Error. Error handling service request: java.lang.OutOfMemoryError: Java heap space Rest
SEVERE Aug 16, 2012 9:26:42 AM Instance of service 'UpTimeData.MapServer' failed to process a request.  Server

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.

Any hints or suggestions on how to deal with this issue.