java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space

Apache's JIRA Issue Tracker | Rupert Bailey | 2 years ago
  1. 0

    Everything runs but dies after a few days with the Java heap space memory error - and with no activity on cluster. It failed most resently after 5 days. I tried to fix it after noticing the SLF4J library duplication, wondering if conflicting libraries would be causing the error, but still fails. Nagios reports HiveServer2 "Flapping" HiveServer2.log output: 22488-2015-03-07 22:19:08,359 INFO [HiveServer2-Handler-Pool: Thread-13139]: thrift.ThriftCLIService (ThriftCLIService.java:OpenSession(232)) - Client protocol version: HIVE_CLI_SERVICE_PROTOCOL_V6 22489-2015-03-07 22:19:19,056 ERROR [HiveServer2-Handler-Pool: Thread-13139]: thrift.ProcessFunction (ProcessFunction.java:process(41)) - Internal error processing OpenSession 22490:java.lang.OutOfMemoryError: Java heap space 22491-2015-03-07 22:19:22,515 INFO [Thread-6]: server.HiveServer2 (HiveServer2.java:stop(299)) - Shutting down HiveServer2 22492-2015-03-07 22:19:22,516 INFO [Thread-6]: thrift.ThriftCLIService (ThriftCLIService.java:stop(137)) - Thrift server has stopped 22493-2015-03-07 22:19:22,516 INFO [Thread-6]: service.AbstractService (AbstractService.java:stop(125)) - Service:ThriftBinaryCLIService is stopped. 22494-2015-03-07 22:19:27,078 INFO [Thread-6]: service.AbstractService (AbstractService.java:stop(125)) - Service:OperationManager is stopped. 22495-2015-03-07 22:19:27,078 INFO [Thread-6]: service.AbstractService (AbstractService.java:stop(125)) - Service:SessionManager is stopped. 22496:2015-03-07 22:19:36,096 WARN [Thread-0]: util.ShutdownHookManager (ShutdownHookManager.java:run(56)) - ShutdownHook 'ClientFinalizer' failed, java.lang.OutOfMemoryError: Java heap space 22497:java.lang.OutOfMemoryError: Java heap space

    Apache's JIRA Issue Tracker | 2 years ago | Rupert Bailey
    java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
  2. 0

    Re: Hive 0.13.0 Memory Leak

    hive-user | 3 years ago | Bryan Jeffrey
    java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
  3. 0

    Re: HiveServer2 and Tez

    apache.org | 12 months ago
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunning
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hive: unable to create thread - HDP2.1 - Hortonworks

    hortonworks.com | 12 months ago
    java.lang.RuntimeException: java.lang.OutOfMemoryError: unable to create new native thread
  6. 0

    Re: HiveServer2 and Tez

    tez-user | 2 years ago | Gopal V
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunning

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      java.lang.OutOfMemoryError: Java heap space

      at org.apache.hive.service.cli.session.HiveSessionProxy.invoke()
    2. org.apache.hive
      HiveSessionProxy$1.run
      1. org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:84)
      2. org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:37)
      3. org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:64)
      3 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame