Synchronization Fails With OutOfMemory Error

Problem: The device application seems to hang for 15 or 20 minutes, then synchronization fails with a java.lang.OutOfMemoryError or OutOfMemoryError message.

Explanation 1: The load and synchronization parameters may not be set correctly to eliminate extraneous data. The volume of synchronized data, both from the enterprise information system (EIS) to the cache database (CDB), and from the CDB to the device client is causing the out-of-memory error.

Solution: Redesign the mobile business object (MBO) to take better advantage of both the load and synchronization parameters. Search Sybase Unwired WorkSpace - Mobile Business Object Development for the topic Combining Load and Synchronization Parameters to learn more.

Explanation 2: The device database page size may be too small.

Solution 1: Increase the page size for the device, using the Sybase Unwired WorkSpace code generation wizard. Search Sybase Unwired WorkSpace - Mobile Business Object Development for the topic Generating Object API Code, or search the appropriate Developer Guide for information about generating code for a specific device platform.