Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-4797

RPC Server can leave a lot of direct buffers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.17.0
    • 0.18.3, 0.19.1
    • ipc
    • None
    • Reviewed
    • Improve how RPC server reads and writes large buffers. Avoids soft-leak of direct buffers and excess copies in NIO layer.

    Description

      RPC server unwittingly can soft-leak direct buffers. One observed case is that one of the namenodes at Yahoo took 40GB of virtual memory though it was configured for 24GB memory. Most of the memory outside Java heap expected to be direct buffers. This shown to be because of how RPC server reads and writes serialized data. The cause and proposed fix are in following comment.

      Attachments

        1. HADOOP-4797-branch-18.patch
          4 kB
          Raghu Angadi
        2. HADOOP-4797-branch-18.patch
          5 kB
          Raghu Angadi
        3. HADOOP-4797-branch-18.patch
          5 kB
          Raghu Angadi
        4. HADOOP-4797.patch
          5 kB
          Raghu Angadi
        5. HADOOP-4797.patch
          5 kB
          Raghu Angadi
        6. TestRpcCpu.patch
          5 kB
          Raghu Angadi
        7. TestRpcCpu.patch
          6 kB
          Raghu Angadi
        8. HADOOP-4797-branch-18.patch
          5 kB
          Raghu Angadi
        9. HADOOP-4797.patch
          5 kB
          Raghu Angadi

        Activity

          People

            rangadi Raghu Angadi
            rangadi Raghu Angadi
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: