Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56499

ApiTokenStats's updateUsageForId method blocked thread when concurrent api call which downgrade the performance a lot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      When we are doing performance for api call to jenkins api, we find a lot thread blocked at below.

       

      we find that when invoke matchesPassword, it is going to invoke updateUsageForId  to record api call stat, which is a synchronize method

      this will cause the performance downgrade a lot.

      Actually we do not need to record api call stat in some situation.

       

       

       

            liuchangcheng Changcheng Liu
            liuchangcheng Changcheng Liu
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: