You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Nemon Lou (JIRA)" <ji...@apache.org> on 2015/09/09 06:19:46 UTC
[jira] [Commented] (HIVE-11768) java.io.DeleteOnExitHook leaks
memory on long running Hive Server2 Instances
[ https://issues.apache.org/jira/browse/HIVE-11768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14736138#comment-14736138 ]
Nemon Lou commented on HIVE-11768:
----------------------------------
The java.io.File.deleteOnExit API is flawed and causes JVM crashes on long running servers ,see [this link|https://bugs.openjdk.java.net/browse/JDK-4872014]
Code path that produce "piepout" file and invoking File.deleteOnExit() is [here|https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java#L802]
{code:java}
File tmpFile = File.createTempFile(sessionID, ".pipeout", tmpDir);
tmpFile.deleteOnExit();
{code}
> java.io.DeleteOnExitHook leaks memory on long running Hive Server2 Instances
> ----------------------------------------------------------------------------
>
> Key: HIVE-11768
> URL: https://issues.apache.org/jira/browse/HIVE-11768
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Affects Versions: 1.2.1
> Reporter: Nemon Lou
>
> More than 490,000 paths was added to java.io.DeleteOnExitHook on one of our long running HiveServer2 instances,taken up more than 100MB on heap.
> Most of the paths contains a suffix of ".piepout".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)