You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "deniskuzZ (via GitHub)" <gi...@apache.org> on 2026/10/15 07:42:18 UTC

[PR] HIVE-30168: Docker: the standalone Tez AM starts without the glibc malloc arena cap [hive]

deniskuzZ opened a new pull request, #6874:
URL: https://github.com/apache/hive/pull/6874

   ### What changes were proposed in this pull request?
   `run_tezam` in `packaging/src/docker/entrypoint.sh` defaults `MALLOC_ARENA_MAX` to 4 and exports it before it starts `DAGAppMaster`; a value already set in the container's environment is kept.
   
   ### Why are the changes needed?
   The other services of the image already run with it: HiveServer2 and the metastore start through `bin/hive` -> `hadoop jar`, whose `hadoop-config.sh` (`hadoop_os_tricks`) exports `MALLOC_ARENA_MAX=4`, and LLAP starts through `runLlapDaemon.sh`, which exports it. The Tez AM starts with plain `java`, so glibc allows it 8 malloc arenas per core.
   
   On Kubernetes (24 LLAP daemons, TPC-DS 10 TB on S3) the AM container (6144M, `-Xmx4G`) was OOMKilled with the heap 20% live and 1568 threads: memory outside the heap filled the container.
   
   ### Does this PR introduce _any_ user-facing change?
   The Tez AM container runs with `MALLOC_ARENA_MAX=4` unless the deployment sets another value.
   
   ### How was this patch tested?
   `run_tezam` extracted from the entrypoint and run under bash 5 with a stub `java` that prints its environment: before the change `MALLOC_ARENA_MAX` is unset; after it is `4`, and a preset `2` stays `2`.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org


Re: [PR] HIVE-30168: Docker: the standalone Tez AM starts without the glibc malloc arena cap [hive]

Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #6874:
URL: https://github.com/apache/hive/pull/6874#issuecomment-6188935401

   ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=6874) **Quality Gate passed**  
   Issues  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [3 New issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=6874&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=6874&issueStatuses=ACCEPTED)
   
   Measures  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=6874&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=6874&metric=new_coverage&view=list)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [1.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=6874&metric=new_duplicated_lines_density&view=list)  
     
   <!-- sqra-placement-anchor -->
   [See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=6874)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org


Re: [PR] HIVE-30168: Docker: the standalone Tez AM starts without the glibc malloc arena cap [hive]

Posted by "deniskuzZ (via GitHub)" <gi...@apache.org>.
deniskuzZ merged PR #6874:
URL: https://github.com/apache/hive/pull/6874


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org