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

SwapSpaceMonitor hanging in windows docker container

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • core
    • None

      • Jenkins 2.121.1

      Our slaves are windows docker container. After some time they start hanging with lots of threads running SwapSpaceMonitor. We see thread spikes of up to 3000 threads which vanish again after several minutes. Then we are back to "normal" of about 50-60 threads.

      pool-1-thread-10 for JNLP4-connect connection to xxx/x.x.x.x:x:37121 id=41272203
      "pool-1-thread-10 for JNLP4-connect connection to xxx/x.x.x.x:x:37121 id=41272203" Id=38 Group=main RUNNABLE
          at com.sun.jna.Pointer.<clinit>(Pointer.java:41)
          at com.sun.jna.Structure.<clinit>(Structure.java:2078)
          at org.jvnet.hudson.Windows.monitor(Windows.java:42)
          at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:124)
          at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:114)
          at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          at hudson.remoting.Request$2.run(Request.java:369)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
          at hudson.remoting.Engine$1$$Lambda$5/219336948.run(Unknown Source)
          at java.lang.Thread.run(Thread.java:748)
      
          Number of locked synchronizers = 1
          - java.util.concurrent.ThreadPoolExecutor$Worker@3d03e79a
      ...
      pool-1-thread-1381 for JNLP4-connect connection to xxx/x.x.x.x:x:37121 id=48119563
      "pool-1-thread-1381 for JNLP4-connect connection to xxx/x.x.x.x:x id=48119563" Id=1437 Group=main RUNNABLE
          at org.jvnet.hudson.Windows.monitor(Windows.java:42)
          at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:124)
          at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:114)
          at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          at hudson.remoting.Request$2.run(Request.java:369)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
          at hudson.remoting.Engine$1$$Lambda$5/219336948.run(Unknown Source)
          at java.lang.Thread.run(Thread.java:748)
      
          Number of locked synchronizers = 1
          - java.util.concurrent.ThreadPoolExecutor$Worker@12e794b8
      pool-1-thread-1390 for JNLP4-connect connection to xxx/x.x.x.x:x:37121 id=48183972
      "pool-1-thread-1390 for JNLP4-connect connection to xxx/x.x.x.x:x:37121 id=48183972" Id=1446 Group=main RUNNABLE
          at org.jvnet.hudson.Windows.monitor(Windows.java:42)
          at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:124)
          at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:114)
          at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          at hudson.remoting.Request$2.run(Request.java:369)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
          at hudson.remoting.Engine$1$$Lambda$5/219336948.run(Unknown Source)
          at java.lang.Thread.run(Thread.java:748)
      
          Number of locked synchronizers = 1
          - java.util.concurrent.ThreadPoolExecutor$Worker@4bba9e41
      ...
      

            Unassigned Unassigned
            scddev Dietmar Scheidl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: