[ 
https://issues.apache.org/jira/browse/GEODE-6414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Darrel Schneider updated GEODE-6414:
------------------------------------
    Description: 
Two causes of using too much memory have been identified:

1. PdxInstanceFactory.create() will register a duplicate PdxType when there is 
already an identical PdxType in the type registry. It should reuse the PdxType 
that is already in the type registry instead.

2. The HeapByteBuffer may have extra unused memory in it. A ByteBuffer of the 
size needed can be allocated and the byte from the larger one copied into it.

  was:PdxInstanceFactory.create() will register a duplicate PdxType when there 
is already an identical PdxType in the type registry. It should reuse the 
PdxType that is already in the type registry instead.


> PdxInstanceFactory uses too much memory when it creates a PdxInstance
> ---------------------------------------------------------------------
>
>                 Key: GEODE-6414
>                 URL: https://issues.apache.org/jira/browse/GEODE-6414
>             Project: Geode
>          Issue Type: Bug
>            Reporter: Jianxia Chen
>            Assignee: Darrel Schneider
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Two causes of using too much memory have been identified:
> 1. PdxInstanceFactory.create() will register a duplicate PdxType when there 
> is already an identical PdxType in the type registry. It should reuse the 
> PdxType that is already in the type registry instead.
> 2. The HeapByteBuffer may have extra unused memory in it. A ByteBuffer of the 
> size needed can be allocated and the byte from the larger one copied into it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to