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

Bad performance on EC2 instance for first build

XMLWordPrintable

      I have a pipeline project which should run at a EC2 instance node.

      I have configured an EC2 connection and starting EC2 t3.medium Windows 10 instances automatically. This all works fine.

      But, the first build at an EC2 instance always performs very bad (slow!!). The next build at the same instance (without rebott etc) is much more faster.

       

      @Library('BMS-Libraries')
      import static bms.mail.Email.*
      import static bms.nexus.Nexus.*
      import static bms.utils.Utils.*
      
      node('AWS_VS2017') {
      		stage('Cleanup Build Machine'){
      			//deleting current workspace directory
      			deleteDir()
      		}
      		
      		stage('Preparing Build machine...'){
      	retrieveAndExtractBuildTools(this)
      		}
      
      //Do some more .......
      }
      

      I attached a screenshot of the runtime of the different pipeline steps.

       

      I connected via RDP to the instance during first build nad task-manager didn't display a high CPU or Memory consumption

        1. 2020-05-04 16_31_11-Window.jpg
          47 kB
          Daniel Hoerner
        2. AgentPerformance.png
          58 kB
          Ed Thorne
        3. image-2020-10-07-18-06-28-059.png
          54 kB
          Hung Vo
        4. image-2020-10-07-18-09-09-475.png
          83 kB
          Hung Vo
        5. image-2020-10-07-18-11-16-079.png
          68 kB
          Hung Vo
        6. image-2020-10-07-18-14-18-176.png
          39 kB
          Hung Vo
        7. image-2020-10-07-18-15-21-103.png
          25 kB
          Hung Vo
        8. image-2020-10-16-12-40-47-178.png
          30 kB
          Hung Vo

            mramonleon Ramon Leon
            dhoerner Daniel Hoerner
            Votes:
            2 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: