Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-11420

ThriftServer (version 1) may crash on OOME

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.98.2
    • None
    • Thrift
    • None
    • hadoop-cdh5, hbase-0.98.2, thrift-0.9.0

    Description

      When using ThriftServer as a gateway for php & c/c++ applications, I found it very easy to crash of OOME. I analyzed the jprof file and found that the ThriftServer had a 1.2G size byte array before it crashed. It seems to be a memory leak. But when did it happen? I checked the huge byte array and realized that it was a HTTP request string. That means a request in protocols other than Thrift may cause memory allocation exception.
      We cound easily recur the bug by wget/curl the ThriftServer. And we can check the memory usage infomation using TOP command.

      Attachments

        1. HBASE-11420.patch
          0.7 kB
          Victor Xu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              victorunique Victor Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: