[ https://issues.apache.org/jira/browse/PHOENIX-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14535101#comment-14535101 ]
James Taylor commented on PHOENIX-1958: --------------------------------------- [~rajeshbabu] - I'll try to put a patch together for this quickly - would be good if we could get this into 4.4.0. > Minimize memory allocation on new connection > -------------------------------------------- > > Key: PHOENIX-1958 > URL: https://issues.apache.org/jira/browse/PHOENIX-1958 > Project: Phoenix > Issue Type: Bug > Reporter: James Taylor > > There's a significant amount of memory allocated when a new connection is > established solely to create the ReadOnlyProps. Need to figure out a way to > minimize this. It looks like the majority of memory allocations occur in this > org.apache.phoenix.util.ReadOnlyProps constructor: > https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/util/ReadOnlyProps.java#L61 > Another notable memory allocator is this java.util.HashMap.putAll call: > https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java#L192 -- This message was sent by Atlassian JIRA (v6.3.4#6332)