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

Unstable websocket connection (java.nio.channels.ClosedChannelException)

      xWe have long running tests (1 hour duration) that we manage through Jenkins. Since we upgrade from 2.364 to 2.365 we are getting a unstable websocket connection between the Jenkins agent and controller sometimes a run will be successful but the past days a passed run without this exception is hard to achieve.

      Resulting in the following exception:

      ....FATAL: command execution failed
      java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
      Caused: java.io.IOException: Backing channel 'PerformanceSERVER' is disconnected.
          at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:215)
          at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285)
          at com.sun.proxy.$Proxy76.isAlive(Unknown Source)
          at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1215)
          at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1207)
          at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:195)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:145)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
      FATAL: Unable to delete script file C:\Users\account.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1
      java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
      Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER": Remote call on PerformanceSERVER failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.FilePath.act(FilePath.java:1186)
          at hudson.FilePath.act(FilePath.java:1175)
          at hudson.FilePath.delete(FilePath.java:1722)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:163)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
      Build step 'PowerShell' marked build as failure
      FATAL: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER": Remote call on PerformanceSERVER failed. The channel is closing down or has closed down
      java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
      Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER": Remote call on PerformanceSERVER failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1150)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:538)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
      Finished: FAILURE

      I have included the logs of the agent in question as an attachment to this issue.

      These are the details of the faulty Jenkins node:

       

      Naam  ↓ Waarde
      awt.toolkit sun.awt.windows.WToolkit
      file.encoding Cp1252
      file.separator |
      java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
      java.awt.printerjob sun.awt.windows.WPrinterJob
      java.class.path c:\Jenkinsnodeservice\slave.jar
      java.class.version 55.0
      java.home C:\Program Files\Amazon Corretto\jdk11.0.15_9
      java.io.tmpdir C:\Users\el80135.adm\AppData\Local\Temp|
      java.library.path C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;D:\oracle\client64\19\client\bin;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;.
      java.runtime.name OpenJDK Runtime Environment
      java.runtime.version 11.0.15+9-LTS
      java.specification.name Java Platform API Specification
      java.specification.vendor Oracle Corporation
      java.specification.version 11
      java.vendor Amazon.com Inc.
      java.vendor.url https://aws.amazon.com/corretto/
      java.vendor.url.bug https://github.com/corretto/corretto-11/issues/
      java.vendor.version Corretto-11.0.15.9.1
      java.version 11.0.15
      java.version.date 2022-04-19
      java.vm.compressedOopsMode 32-bit
      java.vm.info mixed mode
      java.vm.name OpenJDK 64-Bit Server VM
      java.vm.specification.name Java Virtual Machine Specification
      java.vm.specification.vendor Oracle Corporation
      java.vm.specification.version 11
      java.vm.vendor Amazon.com Inc.
      java.vm.version 11.0.15+9-LTS
      jdk.debug release
      jna.loaded true
      jnidispatch.path C:\Users\username\AppData\Local\Temp\jna-813739984\jna10440559483708474225.dll
      line.separator  
      os.arch amd64
      os.name Windows Server 2019
      os.version 10.0
      path.separator ;
      sun.arch.data.model 64
      sun.boot.library.path C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin
      sun.cpu.endian little
      sun.cpu.isalist amd64
      sun.desktop windows
      sun.io.unicode.encoding UnicodeLittle
      sun.java.command c:\Jenkinsnodeservice\slave.jar -jnlpUrl https://jenkins:8080/computer/PerformanceSERVER_NAME/jenkins-agent.jnlp -secret "secret" -workDir C:\jenkins
      sun.java.launcher SUN_STANDARD
      sun.jnu.encoding Cp1252
      sun.management.compiler HotSpot 64-Bit Tiered Compilers
      sun.os.patch.level  
      user.country US
      user.dir c:\Jenkinsnodeservice
      user.home C:\Users\username
      user.language en
      user.name username
      user.script  
      user.timezone Europe/Berlin
      user.variant

      Details regarding the Jenkins controller:

      Naam  ↓ Waarde
      awt.toolkit sun.awt.windows.WToolkit
      executable-war C:\Jenkins\Jenkins.war
      file.encoding Cp1252
      file.separator |
      hudson.lifecycle hudson.lifecycle.WindowsServiceLifecycle
      java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
      java.awt.headless true
      java.awt.printerjob sun.awt.windows.WPrinterJob
      java.class.path C:\Jenkins\jenkins.war
      java.class.version 55.0
      java.home C:\Program Files\Amazon Corretto\jdk11.0.15_9
      java.io.tmpdir C:\WINDOWS\TEMP|
      java.library.path C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.
      java.runtime.name OpenJDK Runtime Environment
      java.runtime.version 11.0.15+9-LTS
      java.specification.name Java Platform API Specification
      java.specification.vendor Oracle Corporation
      java.specification.version 11
      java.vendor Amazon.com Inc.
      java.vendor.url https://aws.amazon.com/corretto/
      java.vendor.url.bug https://github.com/corretto/corretto-11/issues/
      java.vendor.version Corretto-11.0.15.9.1
      java.version 11.0.15
      java.version.date 2022-04-19
      java.vm.compressedOopsMode 32-bit
      java.vm.info mixed mode
      java.vm.name OpenJDK 64-Bit Server VM
      java.vm.specification.name Java Virtual Machine Specification
      java.vm.specification.vendor Oracle Corporation
      java.vm.specification.version 11
      java.vm.vendor Amazon.com Inc.
      java.vm.version 11.0.15+9-LTS
      jdk.debug release
      jetty.git.hash
      • (removed it don't know if it is confidential)
      jna.loaded true
      jnidispatch.path C:\WINDOWS\TEMP\jna-756962248\jna18350657977015144084.dll
      line.separator  
      mail.smtp.sendpartial true
      mail.smtps.sendpartial true
      octaneAllowedStorage C:\Jenkins\userContent|
      os.arch amd64
      os.name Windows Server 2019
      os.version 10.0
      path.separator ;
      sun.arch.data.model 64
      sun.awt.enableExtraMouseButtons true
      sun.boot.library.path C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin
      sun.cpu.endian little
      sun.cpu.isalist amd64
      sun.desktop windows
      sun.io.unicode.encoding UnicodeLittle
      sun.java.command C:\Jenkins\jenkins.war {}httpPort=1 httpsPort=8443 httpsKeyStore=C:\Jenkins\secrets\server.keystore -httpsKeyStorePassword=changeit
      sun.java.launcher SUN_STANDARD
      sun.jnu.encoding Cp1252
      sun.management.compiler HotSpot 64-Bit Tiered Compilers
      sun.os.patch.level  
      user.country US
      user.dir C:\Jenkins
      user.home C:\WINDOWS\system32\config\systemprofile
      user.language en
      user.name SystemUser$
      user.script  
      user.timezone Europe/Berlin
      user.variant

      For a bit more context the output to console of the command we are executing:

      Started by user Hendricks, JGH (Joey)
      Running as SYSTEM
      Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-direct
      [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\username\AppData\Local\Temp\jenkins9449560261283910130.ps1
      OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
      WebServices.nlp file has been found in C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices.
      Logging to C:\Users\username\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: username
      Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
      Leasing license ---...
      Leased license ---== with 150 web and 0 SAP VUs 120 minutes(s).
      Loading project: C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices\WebServices.nlp
      Project GPS_WebServices loaded
      Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
      Launching scenario: WebServices_PiekLoad_60min (01h:02m:00s)
      Initializing...
      [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
      
      Initializing Monitors...
      Pre-Monitoring...
      Running

      Thanks in advanced this issues has been a headache.

        1. controller_log.txt
          418 kB
        2. jenkins.err.log
          1.26 MB
        3. jenkins.err-1.log
          1.26 MB
        4. jenkins.err-2.log
          1.26 MB
        5. jenkins-master.log
          5 kB
        6. jenkins-slave.err.log
          436 kB
        7. jenkins-slave.wrapper.log
          382 kB
        8. remoting.log.0
          604 kB
        9. remoting.log-1.0
          604 kB
        10. remoting.log-2.0
          604 kB
        11. slave.log.1
          7 kB
        12. slave.log-1.1
          7 kB

          [JENKINS-69509] Unstable websocket connection (java.nio.channels.ClosedChannelException)

          joey hendricks created issue -
          joey hendricks made changes -
          Description Original: We have long running tests (1 hour duration) that we manage through Jenkins. Since we upgrade from 2.364 to 2.365 we are getting a unstable websocket connection between the Jenkins agent and controller.

          Resulting in the following exception:
          {code:java}
          ......FATAL: command execution failed
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: java.io.IOException: Backing channel 'SERVERNAME' is disconnected.
          at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:215)
          at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285)
          at com.sun.proxy.$Proxy76.isAlive(Unknown Source)
          at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1215)
          at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1207)
          at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:195)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:145)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          FATAL: Unable to delete script file C:\Users\el80135.adm\AppData\Local\Temp\jenkins1138290916983480596.ps1
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@2ca7085d:SERVERNAME": Remote call on SERVERNAME failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.FilePath.act(FilePath.java:1186)
          at hudson.FilePath.act(FilePath.java:1175)
          at hudson.FilePath.delete(FilePath.java:1722)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:163)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Build step 'PowerShell' marked build as failure
          FATAL: Channel "hudson.remoting.Channel@2ca7085d:SERVERNAME": Remote call on SERVERNAME failed. The channel is closing down or has closed down
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@2ca7085d:SERVERNAME": Remote call on SERVERNAME failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1150)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:538)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Finished: FAILURE {code}
          I have included the logs of the agent in question as an attachment to this issue.

          These are the details of the faulty Jenkins node:

           
          ||[Naam  ↓|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||[Waarde|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |file.encoding|Cp1252|
          |file.separator|\|
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|c:\Jenkinsnodeservice\slave.jar|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir|C:\Users\el80135.adm\AppData\Local\Temp\|
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;D:\oracle\client64\19\client\bin;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jna.loaded|true|
          |jnidispatch.path|C:\Users\username\AppData\Local\Temp\jna-813739984\jna10440559483708474225.dll|
          |line.separator| |
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|c:\Jenkinsnodeservice\slave.jar -jnlpUrl https://tajenkins:8443/computer/PerformanceSERVER_NAME/jenkins-agent.jnlp -secret "secret" -workDir C:\jenkins|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|c:\Jenkinsnodeservice|
          |user.home|C:\Users\username|
          |user.language|en|
          |user.name|username|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          Details regarding the Jenkins controller:
          ||[Naam  ↓|https://tajenkins:8443/manage/systemInfo#]||[Waarde|https://tajenkins:8443/manage/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |executable-war|C:\Jenkins\Jenkins.war|
          |file.encoding|Cp1252|
          |file.separator|\|
          |hudson.lifecycle|hudson.lifecycle.WindowsServiceLifecycle|
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.headless|true|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|C:\Jenkins\jenkins.war|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir|C:\WINDOWS\TEMP\|
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jetty.git.hash|- (removed it don't know if it is confidential)|
          |jna.loaded|true|
          |jnidispatch.path|C:\WINDOWS\TEMP\jna-756962248\jna18350657977015144084.dll|
          |line.separator| |
          |mail.smtp.sendpartial|true|
          |mail.smtps.sendpartial|true|
          |octaneAllowedStorage|C:\Jenkins\userContent\|
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.awt.enableExtraMouseButtons|true|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|C:\Jenkins\jenkins.war --httpPort=-1 --httpsPort=8443 --httpsKeyStore=C:\Jenkins\secrets\server.keystore --httpsKeyStorePassword=changeit|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|C:\Jenkins|
          |user.home|C:\WINDOWS\system32\config\systemprofile|
          |user.language|en|
          |user.name|SystemUser$|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

           
          New: We have long running tests (1 hour duration) that we manage through Jenkins. Since we upgrade from 2.364 to 2.365 we are getting a unstable websocket connection between the Jenkins agent and controller sometimes a run will be successful but the past days a passed run without this exception is hard to achieve.

          Resulting in the following exception:
          {code:java}
          ....FATAL: command execution failed java.nio.channels.ClosedChannelException at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153) at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80) at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272) at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184) at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519) at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154) at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232) at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371) at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233) at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360) at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407) at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166) at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused: java.io.IOException: Backing channel 'PerformanceSERVER_NAME' is disconnected. at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:215) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285) at com.sun.proxy.$Proxy76.isAlive(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1215) at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1207) at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:195) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:145) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92) at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:164) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) at hudson.model.Run.execute(Run.java:1899) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) FATAL: Unable to delete script file C:\Users\el80135.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1 java.nio.channels.ClosedChannelException at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153) at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80) at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272) at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184) at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519) at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154) at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232) at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371) at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233) at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360) at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407) at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166) at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down at hudson.remoting.Channel.call(Channel.java:993) at hudson.FilePath.act(FilePath.java:1186) at hudson.FilePath.act(FilePath.java:1175) at hudson.FilePath.delete(FilePath.java:1722) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:163) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92) at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:164) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) at hudson.model.Run.execute(Run.java:1899) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) Build step 'PowerShell' marked build as failure FATAL: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down java.nio.channels.ClosedChannelException at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153) at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80) at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272) at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184) at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519) at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154) at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232) at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371) at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233) at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360) at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407) at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166) at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down at hudson.remoting.Channel.call(Channel.java:993) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1150) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:538) at hudson.model.Run.execute(Run.java:1899) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) Finished: FAILURE {code}
          I have included the logs of the agent in question as an attachment to this issue.

          These are the details of the faulty Jenkins node:

           
          ||[Naam  ↓|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||[Waarde|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |file.encoding|Cp1252|
          |file.separator|\||
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|c:\Jenkinsnodeservice\slave.jar|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir|C:\Users\el80135.adm\AppData\Local\Temp\||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;D:\oracle\client64\19\client\bin;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jna.loaded|true|
          |jnidispatch.path|C:\Users\username\AppData\Local\Temp\jna-813739984\jna10440559483708474225.dll|
          |line.separator| |
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|c:\Jenkinsnodeservice\slave.jar -jnlpUrl [https://tajenkins:8443/computer/PerformanceSERVER_NAME/jenkins-agent.jnlp] -secret "secret" -workDir C:\jenkins|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|c:\Jenkinsnodeservice|
          |user.home|C:\Users\username|
          |user.language|en|
          |user.name|username|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          Details regarding the Jenkins controller:
          ||[Naam  ↓|https://tajenkins:8443/manage/systemInfo#]||[Waarde|https://tajenkins:8443/manage/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |executable-war|C:\Jenkins\Jenkins.war|
          |file.encoding|Cp1252|
          |file.separator|\||
          |hudson.lifecycle|hudson.lifecycle.WindowsServiceLifecycle|
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.headless|true|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|C:\Jenkins\jenkins.war|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir|C:\WINDOWS\TEMP\||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jetty.git.hash| - (removed it don't know if it is confidential)|
          |jna.loaded|true|
          |jnidispatch.path|C:\WINDOWS\TEMP\jna-756962248\jna18350657977015144084.dll|
          |line.separator| |
          |mail.smtp.sendpartial|true|
          |mail.smtps.sendpartial|true|
          |octaneAllowedStorage|C:\Jenkins\userContent\||
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.awt.enableExtraMouseButtons|true|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|C:\Jenkins\jenkins.war -{-}httpPort=-1{-} -httpsPort=8443- -httpsKeyStore=C:\Jenkins\secrets\server.keystore- -httpsKeyStorePassword=changeit|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|C:\Jenkins|
          |user.home|C:\WINDOWS\system32\config\systemprofile|
          |user.language|en|
          |user.name|SystemUser$|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          For a bit more context the output to console of the command we are executing:
          {code:java}
          Started by user Hendricks, JGH (Joey)
          Running as SYSTEM
          Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-direct
          [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\username\AppData\Local\Temp\jenkins9449560261283910130.ps1
          OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
          WebServices.nlp file has been found in C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices.
          Logging to C:\Users\username\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: username
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Leasing license ---...
          Leased license ---== with 150 web and 0 SAP VUs 120 minutes(s).
          Loading project: C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices\WebServices.nlp
          Project GPS_WebServices loaded
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Launching scenario: WebServices_PiekLoad_60min (01h:02m:00s)
          Initializing...
          [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.

          Initializing Monitors...
          Pre-Monitoring...
          Running{code}
          Thanks in advanced this issues has been a headache.
          joey hendricks made changes -
          Description Original: We have long running tests (1 hour duration) that we manage through Jenkins. Since we upgrade from 2.364 to 2.365 we are getting a unstable websocket connection between the Jenkins agent and controller sometimes a run will be successful but the past days a passed run without this exception is hard to achieve.

          Resulting in the following exception:
          {code:java}
          ....FATAL: command execution failed java.nio.channels.ClosedChannelException at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153) at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80) at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272) at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184) at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519) at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154) at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232) at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371) at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233) at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360) at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407) at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166) at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused: java.io.IOException: Backing channel 'PerformanceSERVER_NAME' is disconnected. at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:215) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285) at com.sun.proxy.$Proxy76.isAlive(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1215) at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1207) at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:195) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:145) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92) at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:164) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) at hudson.model.Run.execute(Run.java:1899) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) FATAL: Unable to delete script file C:\Users\el80135.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1 java.nio.channels.ClosedChannelException at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153) at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80) at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272) at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184) at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519) at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154) at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232) at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371) at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233) at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360) at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407) at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166) at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down at hudson.remoting.Channel.call(Channel.java:993) at hudson.FilePath.act(FilePath.java:1186) at hudson.FilePath.act(FilePath.java:1175) at hudson.FilePath.delete(FilePath.java:1722) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:163) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92) at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:164) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) at hudson.model.Run.execute(Run.java:1899) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) Build step 'PowerShell' marked build as failure FATAL: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down java.nio.channels.ClosedChannelException at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153) at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80) at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272) at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184) at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344) at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463) at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482) at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519) at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154) at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232) at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214) at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239) at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371) at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233) at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360) at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407) at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166) at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down at hudson.remoting.Channel.call(Channel.java:993) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1150) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:538) at hudson.model.Run.execute(Run.java:1899) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449) Finished: FAILURE {code}
          I have included the logs of the agent in question as an attachment to this issue.

          These are the details of the faulty Jenkins node:

           
          ||[Naam  ↓|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||[Waarde|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |file.encoding|Cp1252|
          |file.separator|\||
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|c:\Jenkinsnodeservice\slave.jar|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir|C:\Users\el80135.adm\AppData\Local\Temp\||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;D:\oracle\client64\19\client\bin;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jna.loaded|true|
          |jnidispatch.path|C:\Users\username\AppData\Local\Temp\jna-813739984\jna10440559483708474225.dll|
          |line.separator| |
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|c:\Jenkinsnodeservice\slave.jar -jnlpUrl [https://tajenkins:8443/computer/PerformanceSERVER_NAME/jenkins-agent.jnlp] -secret "secret" -workDir C:\jenkins|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|c:\Jenkinsnodeservice|
          |user.home|C:\Users\username|
          |user.language|en|
          |user.name|username|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          Details regarding the Jenkins controller:
          ||[Naam  ↓|https://tajenkins:8443/manage/systemInfo#]||[Waarde|https://tajenkins:8443/manage/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |executable-war|C:\Jenkins\Jenkins.war|
          |file.encoding|Cp1252|
          |file.separator|\||
          |hudson.lifecycle|hudson.lifecycle.WindowsServiceLifecycle|
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.headless|true|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|C:\Jenkins\jenkins.war|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir|C:\WINDOWS\TEMP\||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jetty.git.hash| - (removed it don't know if it is confidential)|
          |jna.loaded|true|
          |jnidispatch.path|C:\WINDOWS\TEMP\jna-756962248\jna18350657977015144084.dll|
          |line.separator| |
          |mail.smtp.sendpartial|true|
          |mail.smtps.sendpartial|true|
          |octaneAllowedStorage|C:\Jenkins\userContent\||
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.awt.enableExtraMouseButtons|true|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|C:\Jenkins\jenkins.war -{-}httpPort=-1{-} -httpsPort=8443- -httpsKeyStore=C:\Jenkins\secrets\server.keystore- -httpsKeyStorePassword=changeit|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|C:\Jenkins|
          |user.home|C:\WINDOWS\system32\config\systemprofile|
          |user.language|en|
          |user.name|SystemUser$|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          For a bit more context the output to console of the command we are executing:
          {code:java}
          Started by user Hendricks, JGH (Joey)
          Running as SYSTEM
          Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-direct
          [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\username\AppData\Local\Temp\jenkins9449560261283910130.ps1
          OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
          WebServices.nlp file has been found in C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices.
          Logging to C:\Users\username\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: username
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Leasing license ---...
          Leased license ---== with 150 web and 0 SAP VUs 120 minutes(s).
          Loading project: C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices\WebServices.nlp
          Project GPS_WebServices loaded
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Launching scenario: WebServices_PiekLoad_60min (01h:02m:00s)
          Initializing...
          [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.

          Initializing Monitors...
          Pre-Monitoring...
          Running{code}
          Thanks in advanced this issues has been a headache.
          New: We have long running tests (1 hour duration) that we manage through Jenkins. Since we upgrade from 2.364 to 2.365 we are getting a unstable websocket connection between the Jenkins agent and controller sometimes a run will be successful but the past days a passed run without this exception is hard to achieve.

          Resulting in the following exception:
          {code:java}
          Started by user Hendricks, JGH (Joey)
          Running as SYSTEM
          Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-acc90-gpsv-direct
          [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\el80135.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1
          OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
          GPS_WebServices.nlp file has been found in C:\Users\el80135.adm\AppData\Local\Temp\NeoloadProjects\GPS_WebServices.
          Logging to C:\Users\el80135.adm\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: el80135.adm
          Found a valid NTS configuration : URL=[http://wsv12935:8080//] and USER=[s-f-neoload-t]
          Leasing license MCwCFDXuKBpatO2db1GFSSe+4tg3iQ9aAhRZc3pkJemLZ0kQJkV7Zp4y6/o/qw==...
          Leased license MCwCFDXuKBpatO2db1GFSSe+4tg3iQ9aAhRZc3pkJemLZ0kQJkV7Zp4y6/o/qw== with 150 web and 0 SAP VUs 120 minutes(s).
          Loading project: C:\Users\el80135.adm\AppData\Local\Temp\NeoloadProjects\GPS_WebServices\GPS_WebServices.nlp
          Project GPS_WebServices loaded
          WARNING: File not found in Variable "AppD_Metric_13"
          WARNING: File not found in Variable "AppD_Metric_90"
          WARNING: File not found in Variable "AppD_Metric_91"
          WARNING: File not found in Variable "AppD_Metric_DB_90"
          Found a valid NTS configuration : URL=[http://wsv12935:8080//] and USER=[s-f-neoload-t]
          Launching scenario: GPS_WebServices_PiekLoad_60min (01h:02m:00s)
          Initializing...
          [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.

          Initializing Monitors...
          Pre-Monitoring...
          Running
          ....FATAL: command execution failed
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: java.io.IOException: Backing channel 'PerformanceSERVER_NAME' is disconnected.
          at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:215)
          at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285)
          at com.sun.proxy.$Proxy76.isAlive(Unknown Source)
          at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1215)
          at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1207)
          at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:195)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:145)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          FATAL: Unable to delete script file C:\Users\el80135.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.FilePath.act(FilePath.java:1186)
          at hudson.FilePath.act(FilePath.java:1175)
          at hudson.FilePath.delete(FilePath.java:1722)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:163)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Build step 'PowerShell' marked build as failure
          FATAL: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1150)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:538)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Finished: FAILURE{code}
          I have included the logs of the agent in question as an attachment to this issue.

          These are the details of the faulty Jenkins node:

           
          ||[Naam  ↓|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||[Waarde|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|c:\Jenkinsnodeservice\slave.jar|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\Users\el80135.adm\AppData\Local\Temp\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;D:\oracle\client64\19\client\bin;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jna.loaded|true|
          |jnidispatch.path|C:\Users\username\AppData\Local\Temp\jna-813739984\jna10440559483708474225.dll|
          |line.separator| |
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|c:\Jenkinsnodeservice\slave.jar -jnlpUrl [https://tajenkins:8443/computer/PerformanceSERVER_NAME/jenkins-agent.jnlp] -secret "secret" -workDir C:\jenkins|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|c:\Jenkinsnodeservice|
          |user.home|C:\Users\username|
          |user.language|en|
          |user.name|username|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          Details regarding the Jenkins controller:
          ||[Naam  ↓|https://tajenkins:8443/manage/systemInfo#]||[Waarde|https://tajenkins:8443/manage/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |executable-war|C:\Jenkins\Jenkins.war|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |hudson.lifecycle|hudson.lifecycle.WindowsServiceLifecycle|
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.headless|true|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|C:\Jenkins\jenkins.war|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\WINDOWS\TEMP\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jetty.git.hash| - (removed it don't know if it is confidential)|
          |jna.loaded|true|
          |jnidispatch.path|C:\WINDOWS\TEMP\jna-756962248\jna18350657977015144084.dll|
          |line.separator| |
          |mail.smtp.sendpartial|true|
          |mail.smtps.sendpartial|true|
          |octaneAllowedStorage||C:\Jenkins\userContent\|||
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.awt.enableExtraMouseButtons|true|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|C:\Jenkins\jenkins.war {-}{{-}}httpPort={-}1{-} -httpsPort=8443- -httpsKeyStore=C:\Jenkins\secrets\server.keystore- -httpsKeyStorePassword=changeit|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|C:\Jenkins|
          |user.home|C:\WINDOWS\system32\config\systemprofile|
          |user.language|en|
          |user.name|SystemUser$|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          For a bit more context the output to console of the command we are executing:
          {code:java}
          Started by user Hendricks, JGH (Joey)
          Running as SYSTEM
          Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-direct
          [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\username\AppData\Local\Temp\jenkins9449560261283910130.ps1
          OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
          WebServices.nlp file has been found in C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices.
          Logging to C:\Users\username\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: username
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Leasing license ---...
          Leased license ---== with 150 web and 0 SAP VUs 120 minutes(s).
          Loading project: C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices\WebServices.nlp
          Project GPS_WebServices loaded
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Launching scenario: WebServices_PiekLoad_60min (01h:02m:00s)
          Initializing...
          [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.

          Initializing Monitors...
          Pre-Monitoring...
          Running{code}
          Thanks in advanced this issues has been a headache.
          joey hendricks made changes -
          Description Original: We have long running tests (1 hour duration) that we manage through Jenkins. Since we upgrade from 2.364 to 2.365 we are getting a unstable websocket connection between the Jenkins agent and controller sometimes a run will be successful but the past days a passed run without this exception is hard to achieve.

          Resulting in the following exception:
          {code:java}
          Started by user Hendricks, JGH (Joey)
          Running as SYSTEM
          Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-acc90-gpsv-direct
          [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\el80135.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1
          OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
          GPS_WebServices.nlp file has been found in C:\Users\el80135.adm\AppData\Local\Temp\NeoloadProjects\GPS_WebServices.
          Logging to C:\Users\el80135.adm\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: el80135.adm
          Found a valid NTS configuration : URL=[http://wsv12935:8080//] and USER=[s-f-neoload-t]
          Leasing license MCwCFDXuKBpatO2db1GFSSe+4tg3iQ9aAhRZc3pkJemLZ0kQJkV7Zp4y6/o/qw==...
          Leased license MCwCFDXuKBpatO2db1GFSSe+4tg3iQ9aAhRZc3pkJemLZ0kQJkV7Zp4y6/o/qw== with 150 web and 0 SAP VUs 120 minutes(s).
          Loading project: C:\Users\el80135.adm\AppData\Local\Temp\NeoloadProjects\GPS_WebServices\GPS_WebServices.nlp
          Project GPS_WebServices loaded
          WARNING: File not found in Variable "AppD_Metric_13"
          WARNING: File not found in Variable "AppD_Metric_90"
          WARNING: File not found in Variable "AppD_Metric_91"
          WARNING: File not found in Variable "AppD_Metric_DB_90"
          Found a valid NTS configuration : URL=[http://wsv12935:8080//] and USER=[s-f-neoload-t]
          Launching scenario: GPS_WebServices_PiekLoad_60min (01h:02m:00s)
          Initializing...
          [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.

          Initializing Monitors...
          Pre-Monitoring...
          Running
          ....FATAL: command execution failed
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: java.io.IOException: Backing channel 'PerformanceSERVER_NAME' is disconnected.
          at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:215)
          at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285)
          at com.sun.proxy.$Proxy76.isAlive(Unknown Source)
          at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1215)
          at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1207)
          at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:195)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:145)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          FATAL: Unable to delete script file C:\Users\el80135.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.FilePath.act(FilePath.java:1186)
          at hudson.FilePath.act(FilePath.java:1175)
          at hudson.FilePath.delete(FilePath.java:1722)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:163)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Build step 'PowerShell' marked build as failure
          FATAL: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER_NAME": Remote call on PerformanceSERVER_NAME failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1150)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:538)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Finished: FAILURE{code}
          I have included the logs of the agent in question as an attachment to this issue.

          These are the details of the faulty Jenkins node:

           
          ||[Naam  ↓|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||[Waarde|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|c:\Jenkinsnodeservice\slave.jar|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\Users\el80135.adm\AppData\Local\Temp\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;D:\oracle\client64\19\client\bin;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jna.loaded|true|
          |jnidispatch.path|C:\Users\username\AppData\Local\Temp\jna-813739984\jna10440559483708474225.dll|
          |line.separator| |
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|c:\Jenkinsnodeservice\slave.jar -jnlpUrl [https://tajenkins:8443/computer/PerformanceSERVER_NAME/jenkins-agent.jnlp] -secret "secret" -workDir C:\jenkins|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|c:\Jenkinsnodeservice|
          |user.home|C:\Users\username|
          |user.language|en|
          |user.name|username|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          Details regarding the Jenkins controller:
          ||[Naam  ↓|https://tajenkins:8443/manage/systemInfo#]||[Waarde|https://tajenkins:8443/manage/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |executable-war|C:\Jenkins\Jenkins.war|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |hudson.lifecycle|hudson.lifecycle.WindowsServiceLifecycle|
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.headless|true|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|C:\Jenkins\jenkins.war|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\WINDOWS\TEMP\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jetty.git.hash| - (removed it don't know if it is confidential)|
          |jna.loaded|true|
          |jnidispatch.path|C:\WINDOWS\TEMP\jna-756962248\jna18350657977015144084.dll|
          |line.separator| |
          |mail.smtp.sendpartial|true|
          |mail.smtps.sendpartial|true|
          |octaneAllowedStorage||C:\Jenkins\userContent\|||
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.awt.enableExtraMouseButtons|true|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|C:\Jenkins\jenkins.war {-}{{-}}httpPort={-}1{-} -httpsPort=8443- -httpsKeyStore=C:\Jenkins\secrets\server.keystore- -httpsKeyStorePassword=changeit|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|C:\Jenkins|
          |user.home|C:\WINDOWS\system32\config\systemprofile|
          |user.language|en|
          |user.name|SystemUser$|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          For a bit more context the output to console of the command we are executing:
          {code:java}
          Started by user Hendricks, JGH (Joey)
          Running as SYSTEM
          Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-direct
          [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\username\AppData\Local\Temp\jenkins9449560261283910130.ps1
          OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
          WebServices.nlp file has been found in C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices.
          Logging to C:\Users\username\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: username
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Leasing license ---...
          Leased license ---== with 150 web and 0 SAP VUs 120 minutes(s).
          Loading project: C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices\WebServices.nlp
          Project GPS_WebServices loaded
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Launching scenario: WebServices_PiekLoad_60min (01h:02m:00s)
          Initializing...
          [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.

          Initializing Monitors...
          Pre-Monitoring...
          Running{code}
          Thanks in advanced this issues has been a headache.
          New: We have long running tests (1 hour duration) that we manage through Jenkins. Since we upgrade from 2.364 to 2.365 we are getting a unstable websocket connection between the Jenkins agent and controller sometimes a run will be successful but the past days a passed run without this exception is hard to achieve.

          Resulting in the following exception:
          {code:java}
          ....FATAL: command execution failed
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: java.io.IOException: Backing channel 'PerformanceWSV12937' is disconnected.
          at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:215)
          at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285)
          at com.sun.proxy.$Proxy76.isAlive(Unknown Source)
          at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1215)
          at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1207)
          at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:195)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:145)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          FATAL: Unable to delete script file C:\Users\el80135.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceWSV12937": Remote call on PerformanceWSV12937 failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.FilePath.act(FilePath.java:1186)
          at hudson.FilePath.act(FilePath.java:1175)
          at hudson.FilePath.delete(FilePath.java:1722)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:163)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Build step 'PowerShell' marked build as failure
          FATAL: Channel "hudson.remoting.Channel@3c2ca039:PerformanceWSV12937": Remote call on PerformanceWSV12937 failed. The channel is closing down or has closed down
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceWSV12937": Remote call on PerformanceWSV12937 failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1150)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:538)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Finished: FAILURE{code}
          I have included the logs of the agent in question as an attachment to this issue.

          These are the details of the faulty Jenkins node:

           
          ||[Naam  ↓|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||[Waarde|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|c:\Jenkinsnodeservice\slave.jar|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\Users\el80135.adm\AppData\Local\Temp\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;D:\oracle\client64\19\client\bin;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jna.loaded|true|
          |jnidispatch.path|C:\Users\username\AppData\Local\Temp\jna-813739984\jna10440559483708474225.dll|
          |line.separator| |
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|c:\Jenkinsnodeservice\slave.jar -jnlpUrl [https://tajenkins:8443/computer/PerformanceSERVER_NAME/jenkins-agent.jnlp] -secret "secret" -workDir C:\jenkins|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|c:\Jenkinsnodeservice|
          |user.home|C:\Users\username|
          |user.language|en|
          |user.name|username|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          Details regarding the Jenkins controller:
          ||[Naam  ↓|https://tajenkins:8443/manage/systemInfo#]||[Waarde|https://tajenkins:8443/manage/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |executable-war|C:\Jenkins\Jenkins.war|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |hudson.lifecycle|hudson.lifecycle.WindowsServiceLifecycle|
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.headless|true|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|C:\Jenkins\jenkins.war|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\WINDOWS\TEMP\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jetty.git.hash| - (removed it don't know if it is confidential)|
          |jna.loaded|true|
          |jnidispatch.path|C:\WINDOWS\TEMP\jna-756962248\jna18350657977015144084.dll|
          |line.separator| |
          |mail.smtp.sendpartial|true|
          |mail.smtps.sendpartial|true|
          |octaneAllowedStorage||C:\Jenkins\userContent\|||
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.awt.enableExtraMouseButtons|true|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|C:\Jenkins\jenkins.war {-}{{-}}httpPort={-}1{-} -httpsPort=8443- -httpsKeyStore=C:\Jenkins\secrets\server.keystore- -httpsKeyStorePassword=changeit|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|C:\Jenkins|
          |user.home|C:\WINDOWS\system32\config\systemprofile|
          |user.language|en|
          |user.name|SystemUser$|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          For a bit more context the output to console of the command we are executing:
          {code:java}
          Started by user Hendricks, JGH (Joey)
          Running as SYSTEM
          Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-direct
          [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\username\AppData\Local\Temp\jenkins9449560261283910130.ps1
          OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
          WebServices.nlp file has been found in C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices.
          Logging to C:\Users\username\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: username
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Leasing license ---...
          Leased license ---== with 150 web and 0 SAP VUs 120 minutes(s).
          Loading project: C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices\WebServices.nlp
          Project GPS_WebServices loaded
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Launching scenario: WebServices_PiekLoad_60min (01h:02m:00s)
          Initializing...
          [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.

          Initializing Monitors...
          Pre-Monitoring...
          Running{code}
          Thanks in advanced this issues has been a headache.
          joey hendricks made changes -
          Description Original: We have long running tests (1 hour duration) that we manage through Jenkins. Since we upgrade from 2.364 to 2.365 we are getting a unstable websocket connection between the Jenkins agent and controller sometimes a run will be successful but the past days a passed run without this exception is hard to achieve.

          Resulting in the following exception:
          {code:java}
          ....FATAL: command execution failed
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: java.io.IOException: Backing channel 'PerformanceWSV12937' is disconnected.
          at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:215)
          at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285)
          at com.sun.proxy.$Proxy76.isAlive(Unknown Source)
          at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1215)
          at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1207)
          at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:195)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:145)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          FATAL: Unable to delete script file C:\Users\el80135.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceWSV12937": Remote call on PerformanceWSV12937 failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.FilePath.act(FilePath.java:1186)
          at hudson.FilePath.act(FilePath.java:1175)
          at hudson.FilePath.delete(FilePath.java:1722)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:163)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
          at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
          at hudson.model.Build$BuildExecution.build(Build.java:199)
          at hudson.model.Build$BuildExecution.doRun(Build.java:164)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Build step 'PowerShell' marked build as failure
          FATAL: Channel "hudson.remoting.Channel@3c2ca039:PerformanceWSV12937": Remote call on PerformanceWSV12937 failed. The channel is closing down or has closed down
          java.nio.channels.ClosedChannelException
          at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
          at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
          at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
          at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
          at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
          at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
          at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
          at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
          at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
          at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
          at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
          at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
          at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
          at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
          at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
          at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceWSV12937": Remote call on PerformanceWSV12937 failed. The channel is closing down or has closed down
          at hudson.remoting.Channel.call(Channel.java:993)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1150)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:538)
          at hudson.model.Run.execute(Run.java:1899)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:107)
          at hudson.model.Executor.run(Executor.java:449)
          Finished: FAILURE{code}
          I have included the logs of the agent in question as an attachment to this issue.

          These are the details of the faulty Jenkins node:

           
          ||[Naam  ↓|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||[Waarde|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|c:\Jenkinsnodeservice\slave.jar|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\Users\el80135.adm\AppData\Local\Temp\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;D:\oracle\client64\19\client\bin;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jna.loaded|true|
          |jnidispatch.path|C:\Users\username\AppData\Local\Temp\jna-813739984\jna10440559483708474225.dll|
          |line.separator| |
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|c:\Jenkinsnodeservice\slave.jar -jnlpUrl [https://tajenkins:8443/computer/PerformanceSERVER_NAME/jenkins-agent.jnlp] -secret "secret" -workDir C:\jenkins|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|c:\Jenkinsnodeservice|
          |user.home|C:\Users\username|
          |user.language|en|
          |user.name|username|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          Details regarding the Jenkins controller:
          ||[Naam  ↓|https://tajenkins:8443/manage/systemInfo#]||[Waarde|https://tajenkins:8443/manage/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |executable-war|C:\Jenkins\Jenkins.war|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |hudson.lifecycle|hudson.lifecycle.WindowsServiceLifecycle|
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.headless|true|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|C:\Jenkins\jenkins.war|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\WINDOWS\TEMP\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jetty.git.hash| - (removed it don't know if it is confidential)|
          |jna.loaded|true|
          |jnidispatch.path|C:\WINDOWS\TEMP\jna-756962248\jna18350657977015144084.dll|
          |line.separator| |
          |mail.smtp.sendpartial|true|
          |mail.smtps.sendpartial|true|
          |octaneAllowedStorage||C:\Jenkins\userContent\|||
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.awt.enableExtraMouseButtons|true|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|C:\Jenkins\jenkins.war {-}{{-}}httpPort={-}1{-} -httpsPort=8443- -httpsKeyStore=C:\Jenkins\secrets\server.keystore- -httpsKeyStorePassword=changeit|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|C:\Jenkins|
          |user.home|C:\WINDOWS\system32\config\systemprofile|
          |user.language|en|
          |user.name|SystemUser$|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          For a bit more context the output to console of the command we are executing:
          {code:java}
          Started by user Hendricks, JGH (Joey)
          Running as SYSTEM
          Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-direct
          [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\username\AppData\Local\Temp\jenkins9449560261283910130.ps1
          OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
          WebServices.nlp file has been found in C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices.
          Logging to C:\Users\username\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: username
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Leasing license ---...
          Leased license ---== with 150 web and 0 SAP VUs 120 minutes(s).
          Loading project: C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices\WebServices.nlp
          Project GPS_WebServices loaded
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Launching scenario: WebServices_PiekLoad_60min (01h:02m:00s)
          Initializing...
          [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.

          Initializing Monitors...
          Pre-Monitoring...
          Running{code}
          Thanks in advanced this issues has been a headache.
          New: We have long running tests (1 hour duration) that we manage through Jenkins. Since we upgrade from 2.364 to 2.365 we are getting a unstable websocket connection between the Jenkins agent and controller sometimes a run will be successful but the past days a passed run without this exception is hard to achieve.

          Resulting in the following exception:
          {code:java}
          ....FATAL: command execution failed
          java.nio.channels.ClosedChannelException
              at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
              at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
              at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
              at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
              at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
              at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
              at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
              at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
              at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
              at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
              at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
              at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
              at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
              at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
              at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
              at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
              at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
              at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
              at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
              at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
              at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
              at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: java.io.IOException: Backing channel 'PerformanceSERVER' is disconnected.
              at hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:215)
              at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285)
              at com.sun.proxy.$Proxy76.isAlive(Unknown Source)
              at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1215)
              at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1207)
              at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:195)
              at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:145)
              at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
              at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
              at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
              at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
              at hudson.model.Build$BuildExecution.build(Build.java:199)
              at hudson.model.Build$BuildExecution.doRun(Build.java:164)
              at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
              at hudson.model.Run.execute(Run.java:1899)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
              at hudson.model.ResourceController.execute(ResourceController.java:107)
              at hudson.model.Executor.run(Executor.java:449)
          FATAL: Unable to delete script file C:\Users\account.adm\AppData\Local\Temp\jenkins9449560261283910130.ps1
          java.nio.channels.ClosedChannelException
              at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
              at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
              at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
              at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
              at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
              at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
              at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
              at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
              at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
              at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
              at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
              at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
              at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
              at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
              at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
              at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
              at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
              at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
              at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
              at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
              at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
              at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER": Remote call on PerformanceSERVER failed. The channel is closing down or has closed down
              at hudson.remoting.Channel.call(Channel.java:993)
              at hudson.FilePath.act(FilePath.java:1186)
              at hudson.FilePath.act(FilePath.java:1175)
              at hudson.FilePath.delete(FilePath.java:1722)
              at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:163)
              at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
              at hudson.plugins.powershell.PowerShell.perform(PowerShell.java:48)
              at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
              at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
              at hudson.model.Build$BuildExecution.build(Build.java:199)
              at hudson.model.Build$BuildExecution.doRun(Build.java:164)
              at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
              at hudson.model.Run.execute(Run.java:1899)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
              at hudson.model.ResourceController.execute(ResourceController.java:107)
              at hudson.model.Executor.run(Executor.java:449)
          Build step 'PowerShell' marked build as failure
          FATAL: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER": Remote call on PerformanceSERVER failed. The channel is closing down or has closed down
          java.nio.channels.ClosedChannelException
              at jenkins.agents.WebSocketAgents$Session.closed(WebSocketAgents.java:153)
              at jenkins.websocket.WebSockets$1.onWebSocketClose(WebSockets.java:80)
              at jenkins.websocket.Jetty10Provider$2.onWebSocketClose(Jetty10Provider.java:146)
              at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.notifyOnClose(JettyWebSocketFrameHandler.java:308)
              at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onClosed(JettyWebSocketFrameHandler.java:292)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$0(WebSocketCoreSession.java:272)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1445)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
              at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$1(WebSocketCoreSession.java:272)
              at org.eclipse.jetty.util.Callback$4.completed(Callback.java:184)
              at org.eclipse.jetty.util.Callback$Completing.succeeded(Callback.java:344)
              at org.eclipse.jetty.websocket.common.JettyWebSocketFrameHandler.onError(JettyWebSocketFrameHandler.java:268)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$closeConnection$2(WebSocketCoreSession.java:284)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1463)
              at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1482)
              at org.eclipse.jetty.websocket.core.server.internal.AbstractHandshaker$1.handle(AbstractHandshaker.java:212)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.closeConnection(WebSocketCoreSession.java:284)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.lambda$sendFrame$7(WebSocketCoreSession.java:519)
              at org.eclipse.jetty.util.Callback$3.succeeded(Callback.java:155)
              at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.notifyCallbackSuccess(TransformingFlusher.java:197)
              at org.eclipse.jetty.websocket.core.internal.TransformingFlusher$Flusher.process(TransformingFlusher.java:154)
              at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:232)
              at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:214)
              at org.eclipse.jetty.websocket.core.internal.TransformingFlusher.sendFrame(TransformingFlusher.java:77)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.sendFrame(WebSocketCoreSession.java:522)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.close(WebSocketCoreSession.java:239)
              at org.eclipse.jetty.websocket.core.internal.WebSocketCoreSession.processHandlerError(WebSocketCoreSession.java:371)
              at org.eclipse.jetty.websocket.core.internal.WebSocketConnection.onIdleExpired(WebSocketConnection.java:233)
              at org.eclipse.jetty.io.ssl.SslConnection.onIdleExpired(SslConnection.java:360)
              at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:407)
              at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:166)
              at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:108)
              at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:829)
          Caused: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@3c2ca039:PerformanceSERVER": Remote call on PerformanceSERVER failed. The channel is closing down or has closed down
              at hudson.remoting.Channel.call(Channel.java:993)
              at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1150)
              at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:538)
              at hudson.model.Run.execute(Run.java:1899)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
              at hudson.model.ResourceController.execute(ResourceController.java:107)
              at hudson.model.Executor.run(Executor.java:449)
          Finished: FAILURE{code}
          I have included the logs of the agent in question as an attachment to this issue.

          These are the details of the faulty Jenkins node:

           
          ||[Naam  ↓|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||[Waarde|https://tajenkins:8443/manage/computer/PerformanceWSV12937/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|c:\Jenkinsnodeservice\slave.jar|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\Users\el80135.adm\AppData\Local\Temp\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;D:\oracle\client64\19\client\bin;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jna.loaded|true|
          |jnidispatch.path|C:\Users\username\AppData\Local\Temp\jna-813739984\jna10440559483708474225.dll|
          |line.separator| |
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|c:\Jenkinsnodeservice\slave.jar -jnlpUrl [https://tajenkins:8443/computer/PerformanceSERVER_NAME/jenkins-agent.jnlp] -secret "secret" -workDir C:\jenkins|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|c:\Jenkinsnodeservice|
          |user.home|C:\Users\username|
          |user.language|en|
          |user.name|username|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          Details regarding the Jenkins controller:
          ||[Naam  ↓|https://tajenkins:8443/manage/systemInfo#]||[Waarde|https://tajenkins:8443/manage/systemInfo#]||
          |awt.toolkit|sun.awt.windows.WToolkit|
          |executable-war|C:\Jenkins\Jenkins.war|
          |file.encoding|Cp1252|
          |file.separator||\|||
          |hudson.lifecycle|hudson.lifecycle.WindowsServiceLifecycle|
          |java.awt.graphicsenv|sun.awt.Win32GraphicsEnvironment|
          |java.awt.headless|true|
          |java.awt.printerjob|sun.awt.windows.WPrinterJob|
          |java.class.path|C:\Jenkins\jenkins.war|
          |java.class.version|55.0|
          |java.home|C:\Program Files\Amazon Corretto\jdk11.0.15_9|
          |java.io.tmpdir||C:\WINDOWS\TEMP\|||
          |java.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;.|
          |java.runtime.name|OpenJDK Runtime Environment|
          |java.runtime.version|11.0.15+9-LTS|
          |java.specification.name|Java Platform API Specification|
          |java.specification.vendor|Oracle Corporation|
          |java.specification.version|11|
          |java.vendor|Amazon.com Inc.|
          |java.vendor.url|https://aws.amazon.com/corretto/|
          |java.vendor.url.bug|https://github.com/corretto/corretto-11/issues/|
          |java.vendor.version|Corretto-11.0.15.9.1|
          |java.version|11.0.15|
          |java.version.date|2022-04-19|
          |java.vm.compressedOopsMode|32-bit|
          |java.vm.info|mixed mode|
          |java.vm.name|OpenJDK 64-Bit Server VM|
          |java.vm.specification.name|Java Virtual Machine Specification|
          |java.vm.specification.vendor|Oracle Corporation|
          |java.vm.specification.version|11|
          |java.vm.vendor|Amazon.com Inc.|
          |java.vm.version|11.0.15+9-LTS|
          |jdk.debug|release|
          |jetty.git.hash| - (removed it don't know if it is confidential)|
          |jna.loaded|true|
          |jnidispatch.path|C:\WINDOWS\TEMP\jna-756962248\jna18350657977015144084.dll|
          |line.separator| |
          |mail.smtp.sendpartial|true|
          |mail.smtps.sendpartial|true|
          |octaneAllowedStorage||C:\Jenkins\userContent\|||
          |os.arch|amd64|
          |os.name|Windows Server 2019|
          |os.version|10.0|
          |path.separator|;|
          |sun.arch.data.model|64|
          |sun.awt.enableExtraMouseButtons|true|
          |sun.boot.library.path|C:\Program Files\Amazon Corretto\jdk11.0.15_9\bin|
          |sun.cpu.endian|little|
          |sun.cpu.isalist|amd64|
          |sun.desktop|windows|
          |sun.io.unicode.encoding|UnicodeLittle|
          |sun.java.command|C:\Jenkins\jenkins.war {-}{{-}}httpPort={-}1{-} -httpsPort=8443- -httpsKeyStore=C:\Jenkins\secrets\server.keystore- -httpsKeyStorePassword=changeit|
          |sun.java.launcher|SUN_STANDARD|
          |sun.jnu.encoding|Cp1252|
          |sun.management.compiler|HotSpot 64-Bit Tiered Compilers|
          |sun.os.patch.level| |
          |user.country|US|
          |user.dir|C:\Jenkins|
          |user.home|C:\WINDOWS\system32\config\systemprofile|
          |user.language|en|
          |user.name|SystemUser$|
          |user.script| |
          |user.timezone|Europe/Berlin|
          |user.variant|

          For a bit more context the output to console of the command we are executing:
          {code:java}
          Started by user Hendricks, JGH (Joey)
          Running as SYSTEM
          Building remotely on PerformanceSERVER_NAME (Performance) in workspace C:\jenkins\workspace\generieke-acceptatie-performance-testen\1. latest-stable-build-direct
          [1. latest-stable-build-acc90-gpsv-direct] $ powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Users\username\AppData\Local\Temp\jenkins9449560261283910130.ps1
          OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
          WebServices.nlp file has been found in C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices.
          Logging to C:\Users\username\AppData\Roaming\Neotys\NeoLoad\v7.10\logs, as user: username
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Leasing license ---...
          Leased license ---== with 150 web and 0 SAP VUs 120 minutes(s).
          Loading project: C:\Users\username\AppData\Local\Temp\NeoloadProjects\WebServices\WebServices.nlp
          Project GPS_WebServices loaded
          Found a valid NTS configuration : URL=[http://licenseserver:8080//] and USER=[service account]
          Launching scenario: WebServices_PiekLoad_60min (01h:02m:00s)
          Initializing...
          [LoadGenerator] OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.

          Initializing Monitors...
          Pre-Monitoring...
          Running{code}
          Thanks in advanced this issues has been a headache.
          joey hendricks made changes -
          Summary Original: Unstable New: Unstable websocket connection (java.nio.channels.ClosedChannelException)

          Basil Crow added a comment -

          Regarding your actual error, looks like on the controller side you're hitting some sort of idle timeout. I'm not sure if the -httpKeepAliveTimeout or the -httpsKeepAliveTimeout options to the controller can be used to increase this timeout, but that might be one place to start. Of course the real question is why is the WebSocket connection idle for more than the timeout.

          On the agent side it looks like you're using the latest release 3046.v38db_38a_b_7a_86 which upgraded the Tyrus WebSocket client from 1.18 to 2.1.0. Could you try downgrading to the previous release 3044.vb_940a_a_e4f72e and see if the problem persists. It is the agent JAR file in C:\Jenkinsnodeservice on your agent and you can get the older one from https://repo.jenkins-ci.org/releases/org/jenkins-ci/main/remoting/3044.vb_940a_a_e4f72e/remoting-3044.vb_940a_a_e4f72e.jar - be careful, as your WinSW Windows service wrapper might try to download the new version again from the controller. (If it does, comment out the <download> part of your WinSW XML file.) Check that it is at the older version 3044.vb_940a_a_e4f72e with java -jar <filename> -version after relaunching the agent process in the Jenkins UI and ensure that the agent log reads "INFO: Using Remoting version: 3044.vb_940a_a_e4f72e." If that release doesn't exhibit the problem, we'll know that the Tyrus upgrade is the proximate cause of your issue.

          Basil Crow added a comment - Regarding your actual error, looks like on the controller side you're hitting some sort of idle timeout. I'm not sure if the - httpKeepAliveTimeout or the -httpsKeepAliveTimeout options to the controller can be used to increase this timeout, but that might be one place to start. Of course the real question is why is the WebSocket connection idle for more than the timeout. On the agent side it looks like you're using the latest release 3046.v38db_38a_b_7a_86 which upgraded the Tyrus WebSocket client from 1.18 to 2.1.0. Could you try downgrading to the previous release 3044.vb_940a_a_e4f72e and see if the problem persists. It is the agent JAR file in C:\Jenkinsnodeservice on your agent and you can get the older one from https://repo.jenkins-ci.org/releases/org/jenkins-ci/main/remoting/3044.vb_940a_a_e4f72e/remoting-3044.vb_940a_a_e4f72e.jar - be careful, as your WinSW Windows service wrapper might try to download the new version again from the controller. (If it does, comment out the <download> part of your WinSW XML file.) Check that it is at the older version 3044.vb_940a_a_e4f72e with java -jar <filename> -version after relaunching the agent process in the Jenkins UI and ensure that the agent log reads "INFO: Using Remoting version: 3044.vb_940a_a_e4f72e." If that release doesn't exhibit the problem, we'll know that the Tyrus upgrade is the proximate cause of your issue.
          joey hendricks made changes -
          Attachment New: controller_log.txt [ 59000 ]

          basil Thanks for your reply! After the weekend I will speak with the Jenkins admins and ask for help trying out your suggestions they will probably have a better understanding where one can find which settings as they are the once that have set everything up. I have also included the controller log which I was able to fetch through the GUI. In this file I also see a lot of time outs errors from wide range of servers not just my own machines. We are going to first try like you suggested to increase the timeout value any recommendations to which value I should increase this to as I can type in any arbitrary number? Also would it be worth upgrading Jenkins to version 2.366, is there a possibility that doing that could solve our issue? Once again thanks for you advice I will come back on this after the weekend .

          joey hendricks added a comment - basil Thanks for your reply! After the weekend I will speak with the Jenkins admins and ask for help trying out your suggestions they will probably have a better understanding where one can find which settings as they are the once that have set everything up. I have also included the controller log which I was able to fetch through the GUI. In this file I also see a lot of time outs errors from wide range of servers not just my own machines. We are going to first try like you suggested to increase the timeout value any recommendations to which value I should increase this to as I can type in any arbitrary number? Also would it be worth upgrading Jenkins to version 2.366, is there a possibility that doing that could solve our issue? Once again thanks for you advice I will come back on this after the weekend .

          Basil Crow added a comment -

          I don't even know for sure that the HTTP keep alive timeout options to Winstone affect the WebSocketConnection.onIdleExpired code path in Jetty that you're hitting. You should investigate that with a debugger prior to changing such options. That will also tell you what the current value of the timeout is. But like I said earlier, the default value is probably reasonable and just pointing toward your agent disconnecting.

          Upgrading the controller to version 2.366 shouldn't make any difference, as there have neither been any changes to Jetty on the controller side nor in the version of Remoting bundled on the controller. The most significant code change that is likely to have affected you is the upgrade of the Tyrus WebSocket client in the agent JAR, which is why I suggested trying out a downgrade of the agent JAR to 3044.vb_940a_a_e4f72e in my last post to help narrow down the proximate cause of the problem.

          Basil Crow added a comment - I don't even know for sure that the HTTP keep alive timeout options to Winstone affect the WebSocketConnection.onIdleExpired code path in Jetty that you're hitting. You should investigate that with a debugger prior to changing such options. That will also tell you what the current value of the timeout is. But like I said earlier, the default value is probably reasonable and just pointing toward your agent disconnecting. Upgrading the controller to version 2.366 shouldn't make any difference, as there have neither been any changes to Jetty on the controller side nor in the version of Remoting bundled on the controller. The most significant code change that is likely to have affected you is the upgrade of the Tyrus WebSocket client in the agent JAR, which is why I suggested trying out a downgrade of the agent JAR to 3044.vb_940a_a_e4f72e in my last post to help narrow down the proximate cause of the problem.

            basil Basil Crow
            ninjaman1159 joey hendricks
            Votes:
            6 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: