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 FEBRUARY 06, 2022

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


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


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(
    at java.lang.AbstractStringBuilder.expandCapacity(
    at java.lang.AbstractStringBuilder.append(
    at java.lang.StringBuilder.append(
    at oracle.apps.csf.tds.router.server.RouteCalc.aStar(
    at oracle.apps.csf.tds.router.server.RouteCalc.calculateRoute(
    at oracle.apps.csr.facilities.server.SchedulerRouter.getTravelValues_astar(
    at oracle.apps.csr.facilities.server.SchedulerRouter.calculateRoute(
    at oracle.apps.csr.model.server.Task.adjustTravelData(
    at oracle.apps.csr.core.server.TripValidator.adjustTravelValues(
    at oracle.apps.csr.core.server.TripValidator.insertAtAndAdjustTravelValues(
    at oracle.apps.csr.core.server.TripScanner.findPlanOptions(
    at oracle.apps.csr.core.server.POScanner.findPlanOptions(
    at oracle.apps.csr.core.server.SchedulerCore.findPlanOptions(
    at oracle.apps.csr.core.server.SchedulerCore.calculatePlanOptions(
    at oracle.apps.csr.service.server.SearchRequest.processRequest(
    at oracle.apps.csr.service.server.Request.executeImpl(
    at oracle.apps.csr.service.server.Request.execute(
    at oracle.apps.csr.service.server.MultiQuest.processRequest(
    at oracle.apps.csr.service.server.Request.executeImpl(
    at oracle.apps.csr.service.server.Request.execute(
    at oracle.apps.csr.service.server.SchedulerManager.executeRequest(
    at 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.


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

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