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

Add a parameter so that keepAliveTime of Htable thread pool can be changed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.90.4
    • 0.90.6, 0.92.1, 0.94.0
    • Client
    • None
    • Reviewed

    Description

      In my cluster, I changed keepAliveTime from 60 s to 3600 s. Increasing RES is slowed down.

      Why increasing keepAliveTime of HBase thread pool is slowing down our problem occurance [RES value increase]?

      You can go through the source of sun.nio.ch.Util. Every thread hold 3 softreference of direct buffer(mustangsrc) for reusage. The code names the 3 softreferences buffercache. If the buffer was all occupied or none was suitable in size, and new request comes, new direct buffer is allocated. After the service, the bigger one replaces the smaller one in buffercache. The replaced buffer is released.

      So I think we can add a parameter to change keepAliveTime of Htable thread pool.

      Attachments

        1. HBASE-4970_Branch90_V1_trial.patch
          10 kB
          gaojinchao
        2. HBASE-4970_Branch90_V2.patch
          11 kB
          gaojinchao
        3. HBASE-4970_Branch90.patch
          1 kB
          gaojinchao
        4. HBASE-4970_Branch92_V2.patch
          1 kB
          gaojinchao
        5. HBASE-4970_Trunk_V2.patch
          1 kB
          gaojinchao

        Issue Links

          Activity

            People

              sunnygao gaojinchao
              sunnygao gaojinchao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: