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

Trigger garbage collector by using api http request

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • monitoring-plugin
    • None

      I can see that when I'm running the garbage collector, it sends the following 'GET' request

      https://<my jenkins url>/monitoring?action=gc&token=<token>
      

      So I have tried to create a freestyle jon and to run the same http 'GET' request to the url with curl but I'm getting the following error

      curl: (22) The requested URL returned error: 403 Forbidden
      

      I have tried with the same token that the monitoring-plugin uses, and I have also tried with an administrator api token and I got the same error

      any idea how can  I trigger garbage collector with an api http request?

       

            evernat evernat
            dordor dor s
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: