jenkinsci / publish-over-ssh-plugin

https://plugins.jenkins.io/publish-over-ssh/
113 stars 151 forks source link

Facing High CPU and JAVA Heap memory issue. #299

Open vsachinv opened 1 year ago

vsachinv commented 1 year ago

Jenkins and plugins versions report

Environment ``` Jenkins: 2.392 OS: Linux - 4.1.12-124.30.1.el6uek.x86_64 Java: 11.0.1 - Oracle Corporation (OpenJDK 64-Bit Server VM) --- Office-365-Connector:4.18.0 ace-editor:1.1 adoptopenjdk:1.5 ant:481.v7b_09e538fcca antisamy-markup-formatter:155.v795fb_8702324 apache-httpcomponents-client-4-api:4.5.13-138.v4e7d9a_7b_a_e61 artifactdeployer:1.3 audit-trail:333.vb_e1b_b_0f1238c authentication-tokens:1.4 aws-codebuild:0.57 aws-codepipeline:0.45 aws-credentials:191.vcb_f183ce58b_9 aws-java-sdk:1.12.406-370.v8f993c987059 aws-java-sdk-cloudformation:1.12.406-370.v8f993c987059 aws-java-sdk-codebuild:1.12.406-370.v8f993c987059 aws-java-sdk-ec2:1.12.406-370.v8f993c987059 aws-java-sdk-ecr:1.12.406-370.v8f993c987059 aws-java-sdk-ecs:1.12.406-370.v8f993c987059 aws-java-sdk-efs:1.12.406-370.v8f993c987059 aws-java-sdk-elasticbeanstalk:1.12.406-370.v8f993c987059 aws-java-sdk-iam:1.12.406-370.v8f993c987059 aws-java-sdk-logs:1.12.406-370.v8f993c987059 aws-java-sdk-minimal:1.12.406-370.v8f993c987059 aws-java-sdk-sns:1.12.406-370.v8f993c987059 aws-java-sdk-sqs:1.12.406-370.v8f993c987059 aws-java-sdk-ssm:1.12.406-370.v8f993c987059 aws-lambda:0.5.10 awseb-deployment-plugin:0.3.21 blueocean:1.27.1 blueocean-autofavorite:1.2.5 blueocean-bitbucket-pipeline:1.27.1 blueocean-commons:1.27.1 blueocean-config:1.27.1 blueocean-core-js:1.27.1 blueocean-dashboard:1.27.1 blueocean-display-url:2.4.1 blueocean-events:1.27.1 blueocean-git-pipeline:1.27.1 blueocean-github-pipeline:1.27.1 blueocean-i18n:1.27.1 blueocean-jira:1.27.1 blueocean-jwt:1.27.1 blueocean-personalization:1.27.1 blueocean-pipeline-api-impl:1.27.1 blueocean-pipeline-editor:1.27.1 blueocean-pipeline-scm-api:1.27.1 blueocean-rest:1.27.1 blueocean-rest-impl:1.27.1 blueocean-web:1.27.1 bootstrap4-api:4.6.0-5 bootstrap5-api:5.2.1-3 bouncycastle-api:2.27 branch-api:2.1071.v1a_188a_562481 build-failure-analyzer:2.4.1 build-timeout:1.28 caffeine-api:2.9.3-65.v6a_47d0f4d1fe checks-api:1.8.1 clamav:0.3 cloudbees-bitbucket-branch-source:796.v6cb_1559e1673 cloudbees-credentials:3.3 cloudbees-folder:6.800.v71307ca_b_986b cobertura:1.17 code-coverage-api:3.5.0 codedeploy:1.23 command-launcher:90.v669d7ccb_7c31 commons-httpclient3-api:3.1-3 commons-lang3-api:3.12.0-36.vd97de6465d5b_ commons-text-api:1.10.0-27.vb_fa_3896786a_7 compress-artifacts:98.vb_20f3c77ddf7 conditional-buildstep:1.4.2 config-file-provider:3.11.1 confluence-publisher:136.vc30a_a_0d845d7 copy-project-link:106.veb_028794a_844 copyartifact:686.v6fd37018d7c2 credentials:1214.v1de940103927 credentials-binding:523.vd859a_4b_122e6 custom-tools-plugin:0.8 dashboard-view:2.472.v9ff2a_e6a_c529 data-tables-api:1.12.1-4 date-parameter:0.0.4 dependency-check-jenkins-plugin:5.3.0 disk-usage:0.28 display-url-api:2.3.7 docker-commons:1.21 docker-java-api:3.2.13-68.va_875df25a_b_45 docker-plugin:1.3.0 docker-workflow:563.vd5d2e5c4007f durable-task:504.vb10d1ae5ba2f ec2:2.0.5 ec2-cloud-axis:1.2 ec2-deployment-dashboard:1.0.10 echarts-api:5.4.0-1 email-ext:2.94 emailext-template:1.5 envinject:2.892.v25453b_80e595 envinject-api:1.199.v3ce31253ed13 environment-dashboard:1.1.10 extended-choice-parameter:359.v35dcfdd0c20d external-monitor-job:203.v683c09d993b_9 favorite:2.4.1 file-operations:1.11 font-awesome-api:6.2.1-1 forensics-api:1.17.0 git:5.0.0 git-client:4.1.0 git-parameter:0.9.18 git-server:99.va_0826a_b_cdfa_d github:1.37.0 github-api:1.303-400.v35c2d8258028 github-branch-source:1701.v00cc8184df93 github-oauth:0.39 github-pullrequest:0.5.0 gitlab-api:5.0.1-78.v47a_45b_9f78b_7 gitlab-branch-source:645.v62a_b_6fce8659 gitlab-logo:1.1.0 gradle:2.3 grails:1.7 groovy:453.vcdb_a_c5c99890 groovy-label-assignment:1.2.0 handlebars:3.0.8 handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953 hp-application-automation-tools-plugin:7.7 htmlpublisher:1.31 hudson-pview-plugin:1.8 icon-shim:3.0.0 instance-identity:142.v04572ca_5b_265 ionicons-api:31.v4757b_6987003 ivy:2.4 jackson2-api:2.14.2-319.v37853346a_229 jacoco:3.3.2 jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:226.v71211feb_e7e9 javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.8-1 jdk-tool:63.v62d2fd4b_4793 jenkins-design-language:1.27.1 jersey2-api:2.38-1 jira:3.9 jjwt-api:0.11.5-77.v646c772fddb_0 job-dsl:1.81 jquery:1.12.4-1 jquery-detached:1.2.1 jquery-ui:1.0.2 jquery3-api:3.6.1-2 jsch:0.1.55.61.va_e9ee26616e7 junit:1177.v90374a_ef4d09 ldap:659.v8ca_b_a_fe79fa_d lockable-resources:1123.v4002ee23c671 mailer:448.v5b_97805e3767 mapdb-api:1.0.9-28.vf251ce40855d matrix-auth:3.1.6 matrix-project:785.v06b_7f47b_c631 maven-plugin:3.20 mercurial:1260.vdfb_723cdcc81 metrics:4.2.13-420.vea_2f17932dd6 mina-sshd-api-common:2.9.2-50.va_0e1f42659a_a mina-sshd-api-core:2.9.2-50.va_0e1f42659a_a mission-control-view:0.9.16 momentjs:1.1.1 monitoring:1.91.0 multi-branch-project-plugin:0.7 nexus-jenkins-plugin:3.16.478.v41ee37380162 node-iterator-api:49.v58a_8b_35f8363 nodejs:1.6.0 nodelabelparameter:1.11.0 notification:1.15 okhttp-api:4.10.0-125.v3593b_a_f8c97b_ openJDK-native-plugin:1.5 pam-auth:1.10 parameterized-scheduler:1.2 parameterized-trigger:2.45 pipeline-aws:1.43 pipeline-build-step:2.18.1 pipeline-github-lib:38.v445716ea_edda_ pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-groovy-lib:629.vb_5627b_ee2104 pipeline-input-step:466.v6d0a_5df34f81 pipeline-milestone-step:111.v449306f708b_7 pipeline-model-api:2.2118.v31fd5b_9944b_5 pipeline-model-declarative-agent:1.1.1 pipeline-model-definition:2.2118.v31fd5b_9944b_5 pipeline-model-extensions:2.2118.v31fd5b_9944b_5 pipeline-multibranch-defaults:2.1 pipeline-rest-api:2.31 pipeline-stage-step:305.ve96d0205c1c6 pipeline-stage-tags-metadata:2.2118.v31fd5b_9944b_5 pipeline-stage-view:2.31 plain-credentials:143.v1b_df8b_d3b_e48 plugin-util-api:2.20.0 popper-api:1.16.1-3 popper2-api:2.11.6-2 postbuild-task:1.9 postbuildscript:3.2.0-460.va_fda_0fa_26720 powershell:2.0 prism-api:1.29.0-2 project-stats-plugin:23.v47fee1f77b_84 publish-over:0.22 publish-over-ssh:1.24 pubsub-light:1.17 r:0.6 release-helper:1.3.3 resource-disposer:0.21 role-strategy:587.v2872c41fa_e51 ruby-runtime:0.13 run-condition:1.5 s3:0.12.3436.v674b_46258039 saml:4.385.v4dea_91565e9d scm-api:631.v9143df5b_e4a_a script-security:1229.v4880b_b_e905a_6 selenium:3.141.59 simple-theme-plugin:146.v0e67db_a_9052e skip-certificate-check:1.1 snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4 sonar:2.15 sse-gateway:1.26 ssh:2.6.1 ssh-credentials:305.v8f4381501156 ssh-slaves:2.854.v7fd446b_337c9 sshd:3.275.v9e17c10f2571 structs:324.va_f5d6774f3a_d summary_report:1.15 thinBackup:1.15 throttle-concurrents:2.11 timestamper:1.22 token-macro:321.vd7cc1f2a_52c8 trilead-api:2.84.v72119de229b_7 variant:59.vf075fe829ccb windows-exe-runner:35.vea_7d292d39a_2 windows-slaves:1.8.1 workflow-aggregator:590.v6a_d052e5a_a_b_5 workflow-api:1208.v0cc7c6e0da_9e workflow-basic-steps:1010.vf7a_b_98e847c1 workflow-cps:3618.v13db_a_21f0fcf workflow-cps-global-lib:609.vd95673f149b_b workflow-durable-task-step:1234.v019404b_3832a workflow-job:1268.v6eb_e2ee1a_85a workflow-multibranch:733.v109046189126 workflow-scm-step:400.v6b_89a_1317c9a_ workflow-step-api:639.v6eca_cd8c04a_a_ workflow-support:839.v35e2736cfd5c ws-cleanup:0.44 zap:1.1.0 zapper:1.0.7 ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Environment ``` Jenkins: 2.392 OS: Linux - 4.1.12-124.30.1.el6uek.x86_64 Java: 11.0.1 - Oracle Corporation (OpenJDK 64-Bit Server VM) --- Office-365-Connector:4.18.0 ace-editor:1.1 adoptopenjdk:1.5 ant:481.v7b_09e538fcca antisamy-markup-formatter:155.v795fb_8702324 apache-httpcomponents-client-4-api:4.5.13-138.v4e7d9a_7b_a_e61 artifactdeployer:1.3 audit-trail:333.vb_e1b_b_0f1238c authentication-tokens:1.4 aws-codebuild:0.57 aws-codepipeline:0.45 aws-credentials:191.vcb_f183ce58b_9 aws-java-sdk:1.12.406-370.v8f993c987059 aws-java-sdk-cloudformation:1.12.406-370.v8f993c987059 aws-java-sdk-codebuild:1.12.406-370.v8f993c987059 aws-java-sdk-ec2:1.12.406-370.v8f993c987059 aws-java-sdk-ecr:1.12.406-370.v8f993c987059 aws-java-sdk-ecs:1.12.406-370.v8f993c987059 aws-java-sdk-efs:1.12.406-370.v8f993c987059 aws-java-sdk-elasticbeanstalk:1.12.406-370.v8f993c987059 aws-java-sdk-iam:1.12.406-370.v8f993c987059 aws-java-sdk-logs:1.12.406-370.v8f993c987059 aws-java-sdk-minimal:1.12.406-370.v8f993c987059 aws-java-sdk-sns:1.12.406-370.v8f993c987059 aws-java-sdk-sqs:1.12.406-370.v8f993c987059 aws-java-sdk-ssm:1.12.406-370.v8f993c987059 aws-lambda:0.5.10 awseb-deployment-plugin:0.3.21 blueocean:1.27.1 blueocean-autofavorite:1.2.5 blueocean-bitbucket-pipeline:1.27.1 blueocean-commons:1.27.1 blueocean-config:1.27.1 blueocean-core-js:1.27.1 blueocean-dashboard:1.27.1 blueocean-display-url:2.4.1 blueocean-events:1.27.1 blueocean-git-pipeline:1.27.1 blueocean-github-pipeline:1.27.1 blueocean-i18n:1.27.1 blueocean-jira:1.27.1 blueocean-jwt:1.27.1 blueocean-personalization:1.27.1 blueocean-pipeline-api-impl:1.27.1 blueocean-pipeline-editor:1.27.1 blueocean-pipeline-scm-api:1.27.1 blueocean-rest:1.27.1 blueocean-rest-impl:1.27.1 blueocean-web:1.27.1 bootstrap4-api:4.6.0-5 bootstrap5-api:5.2.1-3 bouncycastle-api:2.27 branch-api:2.1071.v1a_188a_562481 build-failure-analyzer:2.4.1 build-timeout:1.28 caffeine-api:2.9.3-65.v6a_47d0f4d1fe checks-api:1.8.1 clamav:0.3 cloudbees-bitbucket-branch-source:796.v6cb_1559e1673 cloudbees-credentials:3.3 cloudbees-folder:6.800.v71307ca_b_986b cobertura:1.17 code-coverage-api:3.5.0 codedeploy:1.23 command-launcher:90.v669d7ccb_7c31 commons-httpclient3-api:3.1-3 commons-lang3-api:3.12.0-36.vd97de6465d5b_ commons-text-api:1.10.0-27.vb_fa_3896786a_7 compress-artifacts:98.vb_20f3c77ddf7 conditional-buildstep:1.4.2 config-file-provider:3.11.1 confluence-publisher:136.vc30a_a_0d845d7 copy-project-link:106.veb_028794a_844 copyartifact:686.v6fd37018d7c2 credentials:1214.v1de940103927 credentials-binding:523.vd859a_4b_122e6 custom-tools-plugin:0.8 dashboard-view:2.472.v9ff2a_e6a_c529 data-tables-api:1.12.1-4 date-parameter:0.0.4 dependency-check-jenkins-plugin:5.3.0 disk-usage:0.28 display-url-api:2.3.7 docker-commons:1.21 docker-java-api:3.2.13-68.va_875df25a_b_45 docker-plugin:1.3.0 docker-workflow:563.vd5d2e5c4007f durable-task:504.vb10d1ae5ba2f ec2:2.0.5 ec2-cloud-axis:1.2 ec2-deployment-dashboard:1.0.10 echarts-api:5.4.0-1 email-ext:2.94 emailext-template:1.5 envinject:2.892.v25453b_80e595 envinject-api:1.199.v3ce31253ed13 environment-dashboard:1.1.10 extended-choice-parameter:359.v35dcfdd0c20d external-monitor-job:203.v683c09d993b_9 favorite:2.4.1 file-operations:1.11 font-awesome-api:6.2.1-1 forensics-api:1.17.0 git:5.0.0 git-client:4.1.0 git-parameter:0.9.18 git-server:99.va_0826a_b_cdfa_d github:1.37.0 github-api:1.303-400.v35c2d8258028 github-branch-source:1701.v00cc8184df93 github-oauth:0.39 github-pullrequest:0.5.0 gitlab-api:5.0.1-78.v47a_45b_9f78b_7 gitlab-branch-source:645.v62a_b_6fce8659 gitlab-logo:1.1.0 gradle:2.3 grails:1.7 groovy:453.vcdb_a_c5c99890 groovy-label-assignment:1.2.0 handlebars:3.0.8 handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953 hp-application-automation-tools-plugin:7.7 htmlpublisher:1.31 hudson-pview-plugin:1.8 icon-shim:3.0.0 instance-identity:142.v04572ca_5b_265 ionicons-api:31.v4757b_6987003 ivy:2.4 jackson2-api:2.14.2-319.v37853346a_229 jacoco:3.3.2 jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:226.v71211feb_e7e9 javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.8-1 jdk-tool:63.v62d2fd4b_4793 jenkins-design-language:1.27.1 jersey2-api:2.38-1 jira:3.9 jjwt-api:0.11.5-77.v646c772fddb_0 job-dsl:1.81 jquery:1.12.4-1 jquery-detached:1.2.1 jquery-ui:1.0.2 jquery3-api:3.6.1-2 jsch:0.1.55.61.va_e9ee26616e7 junit:1177.v90374a_ef4d09 ldap:659.v8ca_b_a_fe79fa_d lockable-resources:1123.v4002ee23c671 mailer:448.v5b_97805e3767 mapdb-api:1.0.9-28.vf251ce40855d matrix-auth:3.1.6 matrix-project:785.v06b_7f47b_c631 maven-plugin:3.20 mercurial:1260.vdfb_723cdcc81 metrics:4.2.13-420.vea_2f17932dd6 mina-sshd-api-common:2.9.2-50.va_0e1f42659a_a mina-sshd-api-core:2.9.2-50.va_0e1f42659a_a mission-control-view:0.9.16 momentjs:1.1.1 monitoring:1.91.0 multi-branch-project-plugin:0.7 nexus-jenkins-plugin:3.16.478.v41ee37380162 node-iterator-api:49.v58a_8b_35f8363 nodejs:1.6.0 nodelabelparameter:1.11.0 notification:1.15 okhttp-api:4.10.0-125.v3593b_a_f8c97b_ openJDK-native-plugin:1.5 pam-auth:1.10 parameterized-scheduler:1.2 parameterized-trigger:2.45 pipeline-aws:1.43 pipeline-build-step:2.18.1 pipeline-github-lib:38.v445716ea_edda_ pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-groovy-lib:629.vb_5627b_ee2104 pipeline-input-step:466.v6d0a_5df34f81 pipeline-milestone-step:111.v449306f708b_7 pipeline-model-api:2.2118.v31fd5b_9944b_5 pipeline-model-declarative-agent:1.1.1 pipeline-model-definition:2.2118.v31fd5b_9944b_5 pipeline-model-extensions:2.2118.v31fd5b_9944b_5 pipeline-multibranch-defaults:2.1 pipeline-rest-api:2.31 pipeline-stage-step:305.ve96d0205c1c6 pipeline-stage-tags-metadata:2.2118.v31fd5b_9944b_5 pipeline-stage-view:2.31 plain-credentials:143.v1b_df8b_d3b_e48 plugin-util-api:2.20.0 popper-api:1.16.1-3 popper2-api:2.11.6-2 postbuild-task:1.9 postbuildscript:3.2.0-460.va_fda_0fa_26720 powershell:2.0 prism-api:1.29.0-2 project-stats-plugin:23.v47fee1f77b_84 publish-over:0.22 publish-over-ssh:1.24 pubsub-light:1.17 r:0.6 release-helper:1.3.3 resource-disposer:0.21 role-strategy:587.v2872c41fa_e51 ruby-runtime:0.13 run-condition:1.5 s3:0.12.3436.v674b_46258039 saml:4.385.v4dea_91565e9d scm-api:631.v9143df5b_e4a_a script-security:1229.v4880b_b_e905a_6 selenium:3.141.59 simple-theme-plugin:146.v0e67db_a_9052e skip-certificate-check:1.1 snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4 sonar:2.15 sse-gateway:1.26 ssh:2.6.1 ssh-credentials:305.v8f4381501156 ssh-slaves:2.854.v7fd446b_337c9 sshd:3.275.v9e17c10f2571 structs:324.va_f5d6774f3a_d summary_report:1.15 thinBackup:1.15 throttle-concurrents:2.11 timestamper:1.22 token-macro:321.vd7cc1f2a_52c8 trilead-api:2.84.v72119de229b_7 variant:59.vf075fe829ccb windows-exe-runner:35.vea_7d292d39a_2 windows-slaves:1.8.1 workflow-aggregator:590.v6a_d052e5a_a_b_5 workflow-api:1208.v0cc7c6e0da_9e workflow-basic-steps:1010.vf7a_b_98e847c1 workflow-cps:3618.v13db_a_21f0fcf workflow-cps-global-lib:609.vd95673f149b_b workflow-durable-task-step:1234.v019404b_3832a workflow-job:1268.v6eb_e2ee1a_85a workflow-multibranch:733.v109046189126 workflow-scm-step:400.v6b_89a_1317c9a_ workflow-step-api:639.v6eca_cd8c04a_a_ workflow-support:839.v35e2736cfd5c ws-cleanup:0.44 zap:1.1.0 zapper:1.0.7 ```

Reproduction steps

https://issues.jenkins.io/browse/JENKINS-70672

Expected Results

N/A

Actual Results

N/A

Anything else?

No response