I'm using wurfl 1.5.1 Java API and have questions about the memory usage of the WURFL database.
I produced a HeapDump and found with Eclipse MAT that the memory consumption was 20.3MB (see image attached)
Is there a way to reduce the size of the model in memory ?
I'm using Spring for the configuration and limit the capabilities to this set :
Code: Select all
<bean id="detectionEngine" class="net.sourceforge.wurfl.core.GeneralWURFLEngine">
<property name="cacheProvider" ref="deviceCacheProvider" />
<constructor-arg index="0" value="classpath:/wurfl.zip" />
<property name="capabilityFilter">
<set>
<value>device_os</value>
<value>device_os_version</value>
<value>brand_name</value>
<value>model_name</value>
<value>marketing_name</value>
<value>is_tablet</value>
<value>is_wireless_device</value>
<value>resolution_height</value>
<value>resolution_width</value>
<value>pointing_method</value>
<value>mobile_browser_version</value>
<value>mobile_browser</value>
<value>ux_full_desktop</value>
<value>preferred_markup</value>
<value>xhtml_support_level</value>
</set>
</property>
</bean>
Thanks in advance