[
https://issues.apache.org/jira/browse/PHOENIX-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14536810#comment-14536810
]
Hudson commented on PHOENIX-1958:
---------------------------------
SUCCESS: Integrated in Phoenix-master #747 (See
[https://builds.apache.org/job/Phoenix-master/747/])
PHOENIX-1958 Minimize memory allocation on new connection (jtaylor: rev
cd81738b1fbcb5cf19123b2dca8da31f602b9c64)
* phoenix-core/src/main/java/org/apache/phoenix/util/ReadOnlyProps.java
* phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
> 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
> Assignee: James Taylor
> Fix For: 5.0.0, 4.2.3, 4.4.0, 4.3.2
>
> Attachments: PHOENIX-1958-4.x-HBase-0.98.patch,
> PHOENIX-1958-master.patch, phoenix-4.2.3-SNAPSHOT-server.jar,
> phoenix-core-4.2.3-SNAPSHOT.jar
>
>
> 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)