During deployment of the REST API on a Service Desk Manager r12.7 system that was migrated from a earlier release of Service Desk, it may be possible to see an error:
"The system is out of resources
Consult the following stack trace for details
java.lang.OutOfMemoryError: Java heap space"
This error will be logged in the JREST.LOG file or if you are manually redeploying REST, the message will display in the command prompt after running the pdm_rest_util command.
A possible cause for this error on a migrated Service Desk Manager environment is that Service Desk Manager is not configured to use the correct version of Java.
Previous releases of Service Desk Manager were packaged with Java 1.6.0_00. Service Desk Manager 12.7 comes with Java 1.6.0_30 which is required for REST.
It is possible that during the migration to 12.7 that the newer Java was installed on the server, but Service Desk Manager was not updated to point to it and is instead continuing to use the old version of Java.
In order to confirm the version of Java in use, go to the Service Desk Manager install location, make a backup of the NX.ENV file and then open it in a text editor.
Locate this line:
The path should look something like this (based on where the JRE is installed on the server):
C:/Program Files (x86)/CA/SC/JRE/1.6.0_30
If it instead looks like this:
C:/Program Files (x86)/CA/SC/JRE/1.6.0_00
It will need to be manually changed to the correct value. Prior to making the change make sure that the 1.6.0_30 directory is valid on the server.
After the change is complete, restart the Service Desk Manager service and then run the "pdm_rest_util -deploy" command again to complete the REST deployment.