简体   繁体   English

Jenkins EC2插件-Windows Slave非常慢

[英]Jenkins ec2 plugin - windows slave is very slow

enter code here I'm trying to use jenkins ec2 plugin and I have problems with performance. enter code here我正在尝试使用jenkins ec2插件,但性能出现问题。 My options for winrm: 我对winrm的选择:

winrm set winrm/config/service/Auth @{Basic="true"}
winrm set winrm/config/service @{AllowUnencrypted="true"}
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}

Jenkins 2.133 OS Windows 2016r2 Java 8 x64 Jenkins 2.133 OS Windows 2016r2 Java 8 x64

My next steps took a lot of time: 我的下一步花费了很多时间:

11:47:48 Building remotely on zak-test (sir-4pcr5aig) (zak-test) in workspace c:\jenkins\workspace\AT_PES_test_zak
11:58:48 Cloning the remote Git repository

next step 下一步

12:07:52 Parsing POMs
12:39:51 Established TCP socket on 49811

When I use JNLP protocol instead WinRm my tests are work without these pauses. 当我使用JNLP协议而不是WinRm时,我的测试可以正常进行,而无需暂停。 Quickly. 很快。

Moreover, I created task https://issues.jenkins-ci.org/browse/JENKINS-53617 but i didn't receive response. 此外,我创建了任务https://issues.jenkins-ci.org/browse/JENKINS-53617,但没有收到响应。

then, I use local windows user jenkins for connect from master to windows slave ec2 instance. 然后,我使用本地Windows用户jenkins从主服务器连接到Windows从属ec2实例。 I launched gui tests by google chrome. 我通过谷歌浏览器启动了GUI测试。 When tests is working I'm connecting via RDP to my slave windows host and I'm watching that chrome is working in background. 当测试正常进行时,我正在通过RDP连接到我的从属Windows主机,并且正在观察chrome在后台运行。 But I didn't see my browser as GUI process. 但是我没有将浏览器视为GUI进程。 Only in powershell: 仅在powershell中:

 PS C:\Users\jenkins> get-process

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
    181      10    46960      15820              1512   0 amazon-ssm-agent
    123      10     1784       8624               740   0 chrome
    251      20    18392      30260       0.11   2228   0 chrome
    246      20    18388      30584       0.13   3276   0 chrome
   1008      55    21552      72832              3444   0 chrome
    154      10     1860       7884              4600   0 chrome
    403      21    15368      23840       0.19   5840   0 chrome
    226      20     6680      12320              1396   0 chromedriver 

WinRM is slowly protocol. WinRM是缓慢的协议。 Despite this plugin is very comfortable for using Linux instances. 尽管这个插件非常适合使用Linux实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM