Setting the JVM Heap and Synchronization Server Cache Sizes

Increase the JVM heap and synchronization server cache size.

  1. Set the JVM heap size in the sup.properties file, using these properties:
    • sup.jvm.minheap = 2048m
    • sup.jvm.maxheap = 2048m
    Note: These values can be adjusted higher or lower according to the available physical memory on the machine. Sybase Unwired Platform 1.2.4 requires a minimum 2G of available physical memory.
  2. Set the Unwired Server cache size:
    1. With a text editor, open the configure-sup.xml file.
    2. locate the line: -w ${ml.threadcount}, and add a line below that in the form of -cm size[k|m|g], for example, -cm 2048m.
    3. Save the file.
    Typically, you should set the Unwired Server cache size to a multiple of the number of devices that are expected to synchronize concurrently, and the size of the data they would be synchronizing.
  3. (Optional) If Sybase Unwired Platform is running as a service, you must re-create the services for the changes to take effect. To re-create the services:
    1. Stop the running Unwired Platform services.
    2. Open a command prompt window, and run mlservice.bat remove.
    3. Run mlservice.bat install.
    4. Restart the Unwired Platform services.