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

Andrew Kyle Purtell updated PHOENIX-8085:
-----------------------------------------
    Description: 
{{VarBinaryEncoded1IT}} ran out of heap:

{{java.lang.OutOfMemoryError: Java heap space}}
{{Dumping heap to ./target/java_pid29075.hprof ...}}
{{Heap dump file created [3154823116 bytes in 3.856 secs]}}
{{...}}
{{[ERROR] org.apache.phoenix.end2end.VarBinaryEncoded1IT – Time elapsed: 2491 s 
<<< ERROR!}}
{{java.lang.OutOfMemoryError: Java heap space}}

The main cause of that failure is a test defect, filed separately. But the heap 
dump also shows a large per-region cost in Phoenix:
 * The dump has 448 open regions.

 * Each region holds about 16 full {{Configuration}} maps, with about 24 k 
entries for each region. For the 448 regions this is about 1 GB.

 * The histogram has 14,368,385 {{ConcurrentHashMap$Node}} objects (632.2 MB) 
of 2807.4 MB of shallow heap in total.

 * The dump assigns about 5.67 M map entries to named owners. 
{{UngroupedAggregateRegionObserver}} fields own about 4.06 M of them (72%): 
index write 1.70 M, compaction 0.98 M, upsert select 1.38 M. This is about 0.4 
GB of direct heap.

Phoenix unnecessarily makes several copies of the environment configuration. 
The three copies fill about 9 maps of about 1500 entries for each region. This 
is about 1.1 to 1.3 MB for each open region, for the life of the region.

  was:
{{VarBinaryEncoded1IT}} ran out of heap:

{{java.lang.OutOfMemoryError: Java heap space
Dumping heap to ./target/java_pid29075.hprof ...
Heap dump file created [3154823116 bytes in 3.856 secs]
...
[ERROR] org.apache.phoenix.end2end.VarBinaryEncoded1IT -- Time elapsed: 2491 s 
<<< ERROR!
java.lang.OutOfMemoryError: Java heap space}}

The main cause of that failure is a test defect, filed separately. But the heap 
dump also shows a large per-region cost in Phoenix:
 * The dump has 448 open regions.

 * Each region holds about 16 full {{Configuration}} maps, with about 24 k 
entries for each region. For the 448 regions this is about 1 GB.

 * The histogram has 14,368,385 {{ConcurrentHashMap$Node}} objects (632.2 MB) 
of 2807.4 MB of shallow heap in total.

 * The dump assigns about 5.67 M map entries to named owners. 
{{UngroupedAggregateRegionObserver}} fields own about 4.06 M of them (72%): 
index write 1.70 M, compaction 0.98 M, upsert select 1.38 M. This is about 0.4 
GB of direct heap.

Phoenix unnecessarily makes several copies of the environment configuration. 
The three copies fill about 9 maps of about 1500 entries for each region. This 
is about 1.1 to 1.3 MB for each open region, for the life of the region.


> UngroupedAggregateRegionObserver keeps full configuration copies for each 
> region
> --------------------------------------------------------------------------------
>
>                 Key: PHOENIX-8085
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-8085
>             Project: Phoenix
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 5.3.2
>            Reporter: Andrew Kyle Purtell
>            Assignee: Andrew Kyle Purtell
>            Priority: Major
>             Fix For: 5.4.0, 5.3.3
>
>
> {{VarBinaryEncoded1IT}} ran out of heap:
> {{java.lang.OutOfMemoryError: Java heap space}}
> {{Dumping heap to ./target/java_pid29075.hprof ...}}
> {{Heap dump file created [3154823116 bytes in 3.856 secs]}}
> {{...}}
> {{[ERROR] org.apache.phoenix.end2end.VarBinaryEncoded1IT – Time elapsed: 2491 
> s <<< ERROR!}}
> {{java.lang.OutOfMemoryError: Java heap space}}
> The main cause of that failure is a test defect, filed separately. But the 
> heap dump also shows a large per-region cost in Phoenix:
>  * The dump has 448 open regions.
>  * Each region holds about 16 full {{Configuration}} maps, with about 24 k 
> entries for each region. For the 448 regions this is about 1 GB.
>  * The histogram has 14,368,385 {{ConcurrentHashMap$Node}} objects (632.2 MB) 
> of 2807.4 MB of shallow heap in total.
>  * The dump assigns about 5.67 M map entries to named owners. 
> {{UngroupedAggregateRegionObserver}} fields own about 4.06 M of them (72%): 
> index write 1.70 M, compaction 0.98 M, upsert select 1.38 M. This is about 
> 0.4 GB of direct heap.
> Phoenix unnecessarily makes several copies of the environment configuration. 
> The three copies fill about 9 maps of about 1500 entries for each region. 
> This is about 1.1 to 1.3 MB for each open region, for the life of the region.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to