-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I'm trying to improve my application memory usage and I'm using VisualVM to see which objects are retaining memory. I have made lots of changes to the application trying to reduce the memory usage of the objects. My last heapdump tells me that 61.1 MB are used. I think it is too much because I'm the only user using the application. When I check the biggest objects by retained size there's no class that I can't recognize, most of them are ZK objects. That's why I'm writing here, I hope any of you can tell me why that objects are retaining such big size and what can I do to reduce it. This is a screenshot of the list of the 20 biggest objects by retained size of my last heapdump:
As you can see many of them are ZK objects. Any idea why are they retaining that size and how can I reduce the memory usage??
Thank you!!
Hi Neus,
What ZK version do you use? those objects was created by ZK MVVM binding, you can try to make readonly component load data with EL.
change from
<template name="model" var="item">
<row>
<label value="@load(item.name)"/>
</row>
</template>
to
<template name="model" var="item">
<row>
<label value="${item.name}"/>
</row>
</template>
Asked: 2013-11-14 12:41:50 +0800
Seen: 11 times
Last updated: Nov 26 '13
Please, I don't know what this objects are, so I need help understanding it.
Neus ( 2013-11-18 11:42:29 +0800 )edit