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

high number of calls to UserGroupInformation loginUserFromSubject creates huge number of ticket renewal thread which leads to Out of Memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.5
    • 2.6.6, 2.8.3, 2.8.4
    • common
    • None
    • This issue has been observed all cloudera and hortonworks hadoop-common environments.

    • Important

    Description

      We have an application which makes call to UserGroupInformation loginUserFromSubject multiple times depending on user requests. Each call is leading to create a new kerberos auto renewal thread (deamon) creation which holds ticket, configuration objects. This leads to constant memory growth of java process which eventually leads to process gets killed (out of memory). 

       

      static void loginUserFromSubject(Subject subject)

      { .. loginUser.spawnAutoRenewalThreadForUserCreds(); --> this is created new auto renewal threads.   }

      I think this is bug which needs to be fixed in hadoop common side. We should not created auto renewal thread for each request. Either give auto renewal process to the caller or make sure that there shouldn't be duplicate auto renewal for same user/subject. We are currently in a situation that we have huge number of threads but couldn't delete them or stop memory growth without restarting the services.

      Attachments

        1. chart4.png
          27 kB
          Uday Kiran Reddy

        Activity

          People

            Unassigned Unassigned
            lingalaudaykiran Uday Kiran Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified