I have isolated my issue to the cache configuration of indexed types. If I
remove setting the indexed type property the heap gets cleaned up. If I
leave this property in only about 10 to 15% of the heap gets cleared on any
garbage collection. Do I have something configured wrong regarding this
property?
<property name="indexedTypes">
<util:list id="myList" value-type="java.lang.Class">
<value>java.util.UUID</value>
<value>com.mgic.documentviewer.imaging.cache.beans.TiffPage</value>
</util:list>
</property>
Cache Object
---------------
public class TiffPage extends ImagePage
{
}
public abstract class ImagePage implements Serializable
{
private static final long serialVersionUID = 1L;
private UUID id;
/** Will be indexed on it's own and also participate in the group index
for page access. */
@QuerySqlField(index = true, orderedGroups = {@QuerySqlField.Group(name =
"doc_page_idx", order = 0, descending = true)})
private String documentId;
/** Will participate in the group index sorted in ascending order. */
@QuerySqlField(orderedGroups = {@QuerySqlField.Group(name =
"doc_page_idx", order = 1)})
private Integer pageNumber;
private String pageFormat;
private byte[] image;
public ImagePage (String documentId, byte[] image, String pageFormat,
Integer pageNumber)
{
this.id = UUID.randomUUID();
this.documentId = documentId;
this.image = image;
this.pageFormat = pageFormat;
this.pageNumber = pageNumber;
}
Example Insertion into map
-------------------------------
TiffPage tiffPage = new
TiffPage(Integer.toString(documentId), image, "png", 1);
imageCache.put(tiffPage.getId(), tiffPage);
Example Accessing from Map
--------------------------------
If I remove this property then these queries return no results. If I leave
the property in then these queries return the expected results.
SQL_PAGE_QUERY.setArgs(documentId, 1);
ImagePage page =
imageCache.query(SQL_PAGE_QUERY).getAll().get(0).getValue();
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Using-OFF-HEAP-TIERED-and-Replicated-Heap-continously-grows-eventually-heap-crash-tp8604p8645.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.