My Oracle Support Banner

12.0 Request 'Search And Schedule Tasks Automatically' Ends In Warning for Java Heap Space (Doc ID 944767.1)

Last updated on JULY 14, 2020

Applies to:

Oracle Field Service - Version 12.0.0 to 12.0.6 [Release 12]
Oracle Scheduler - Version 12.0.0 to 12.0.6 [Release 12]
Information in this document applies to any platform.
EXECUTABLE:CSR_AUTO_SCHED - Autonomous Auto Schedule
EXECUTABLE:SEARCH_AND_SCHEDULE_AUTO - Search and Schedule Tasks Automatically


Symptoms

When attempting to run the 'Search and Schedule Tasks Automatically' program to schedule multiple tasks (e.g 200+ tasks) it fails with:

ERROR

Unexpected error: Java heap space (java.lang.OutOfMemoryError: Java heap space).



The log shows an error similar to this:
26-05-2008 04:17:50 (1211800670406) - [class oracle.apps.csr.service.server.SearchAndSchedule.execute.execute]
unexpected error: java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2882)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
    at java.lang.StringBuilder.append(StringBuilder.java:119)
    at oracle.apps.csf.tds.router.server.RouteCalc.aStar(RouteCalc.java:400)
    at oracle.apps.csf.tds.router.server.RouteCalc.calculateRoute(RouteCalc.java:203)
    at oracle.apps.csr.facilities.server.SchedulerRouter.getTravelValues_astar(SchedulerRouter.java:669)
    at oracle.apps.csr.facilities.server.SchedulerRouter.calculateRoute(SchedulerRouter.java:506)
    at oracle.apps.csr.model.server.Task.adjustTravelData(Task.java:1860)
    at oracle.apps.csr.core.server.TripValidator.adjustTravelValues(TripValidator.java:1231)
    at oracle.apps.csr.core.server.TripValidator.insertAtAndAdjustTravelValues(TripValidator.java:1117)
    at oracle.apps.csr.core.server.TripScanner.findPlanOptions(TripScanner.java:382)
    at oracle.apps.csr.core.server.POScanner.findPlanOptions(POScanner.java:126)
    at oracle.apps.csr.core.server.SchedulerCore.findPlanOptions(SchedulerCore.java:349)
    at oracle.apps.csr.core.server.SchedulerCore.calculatePlanOptions(SchedulerCore.java:267)
    at oracle.apps.csr.service.server.SearchRequest.processRequest(SearchRequest.java:361)
    at oracle.apps.csr.service.server.Request.executeImpl(Request.java:322)
    at oracle.apps.csr.service.server.Request.execute(Request.java:231)
    at oracle.apps.csr.service.server.MultiQuest.processRequest(MultiQuest.java:211)
    at oracle.apps.csr.service.server.Request.executeImpl(Request.java:322)
    at oracle.apps.csr.service.server.Request.execute(Request.java:231)
    at oracle.apps.csr.service.server.SchedulerManager.executeRequest(SchedulerManager.java:133)
    at oracle.apps.csr.conc.auto.AutonomousProgram.runProgram(AutonomousProgram.java: 185)


Steps To Reproduce:
The issue can be reproduced at will with the following steps:
1. Create 200+ tasks to assign.
2. Run the 'Search and Schedule Tasks Automatically' program.


Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.