Building Mobile Enterprise Applications : Using webMethods Mobile Designer : Defining Resources for a Mobile Application Project : Managing Memory for Your Resource Handler and Resources
Managing Memory for Your Resource Handler and Resources
If your mobile application project’s resource compilation is memory and resource intensive, you can increase the amount of memory available for Ant to avoid encountering out-of-memory exceptions during the execution of the resource handler. To increase this memory, use a system property to set the amount of memory. The following shows examples:
*On Windows: set ANT_OPTS=-Xmx256m
*On Linux: export ANT_OPTS=-Xmx256m
Adjust the value, "256m", used in the example to reflect how much memory your resource handling needs.
You can estimate the amount of memory your application will require when it runs using the information in the _compiled_resources_ file, which resides in your project’s _temp_ folder. Mobile Designer creates this file when it runs your project’s resource handler. Use the project.compiled.resources.info.format project property to indicate whether you want the _compiled_resources file to be in XML or text format. The _compiled_resources_ file contains information on the resources, as well as their resultant resource blocks, resource packs, and file sizes.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback