org.jvnet.winp.WinpException: Failed to enumerate processes error=8 at .\enumProcess.cpp:12

Jenkins JIRA | lkishalmi | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have a Windows 2008 Slave machine. As a workaround of issue #3973 I've created a periodically scheduled dummy build on the slave as "ping". Unfortunately it seems after a some time this dummy build makes the slave unusable. FATAL: Failed to enumerate processes error=8 at .\enumProcess.cpp:12 org.jvnet.winp.WinpException: Failed to enumerate processes error=8 at .\enumProcess.cpp:12 at org.jvnet.winp.Native.enumProcesses(Native Method) at org.jvnet.winp.WinProcess$2$1.<init>(WinProcess.java:160) at org.jvnet.winp.WinProcess$2.iterator(WinProcess.java:153) at hudson.util.ProcessTreeKiller$Windows.kill(ProcessTreeKiller.java:192) at hudson.util.ProcessTreeKiller.kill(ProcessTreeKiller.java:109) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:706) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:698) at hudson.remoting.UserRequest.perform(UserRequest.java:103) at hudson.remoting.UserRequest.perform(UserRequest.java:47) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:54) at java.lang.Thread.run(Unknown Source) The dummy build contains no build steps and no publishers. and it is tied to the slave. I've tested with a not so dummy build when I've just executed a Windows batch command: time /t At this case the slave went unusable with OOME as it couldn't create more NativeThreads.

    Jenkins JIRA | 8 years ago | lkishalmi
    org.jvnet.winp.WinpException: Failed to enumerate processes error=8 at .\enumProcess.cpp:12
  2. 0

    I have a Windows 2008 Slave machine. As a workaround of issue #3973 I've created a periodically scheduled dummy build on the slave as "ping". Unfortunately it seems after a some time this dummy build makes the slave unusable. FATAL: Failed to enumerate processes error=8 at .\enumProcess.cpp:12 org.jvnet.winp.WinpException: Failed to enumerate processes error=8 at .\enumProcess.cpp:12 at org.jvnet.winp.Native.enumProcesses(Native Method) at org.jvnet.winp.WinProcess$2$1.<init>(WinProcess.java:160) at org.jvnet.winp.WinProcess$2.iterator(WinProcess.java:153) at hudson.util.ProcessTreeKiller$Windows.kill(ProcessTreeKiller.java:192) at hudson.util.ProcessTreeKiller.kill(ProcessTreeKiller.java:109) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:706) at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:698) at hudson.remoting.UserRequest.perform(UserRequest.java:103) at hudson.remoting.UserRequest.perform(UserRequest.java:47) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:54) at java.lang.Thread.run(Unknown Source) The dummy build contains no build steps and no publishers. and it is tied to the slave. I've tested with a not so dummy build when I've just executed a Windows batch command: time /t At this case the slave went unusable with OOME as it couldn't create more NativeThreads.

    Jenkins JIRA | 8 years ago | lkishalmi
    org.jvnet.winp.WinpException: Failed to enumerate processes error=8 at .\enumProcess.cpp:12

    Root Cause Analysis

    1. org.jvnet.winp.WinpException

      Failed to enumerate processes error=8 at .\enumProcess.cpp:12

      at org.jvnet.winp.Native.enumProcesses()
    2. org.jvnet.winp
      WinProcess$2.iterator
      1. org.jvnet.winp.Native.enumProcesses(Native Method)
      2. org.jvnet.winp.WinProcess$2$1.<init>(WinProcess.java:160)
      3. org.jvnet.winp.WinProcess$2.iterator(WinProcess.java:153)
      3 frames
    3. Hudson
      Launcher$RemoteLauncher$KillTask.call
      1. hudson.util.ProcessTreeKiller$Windows.kill(ProcessTreeKiller.java:192)
      2. hudson.util.ProcessTreeKiller.kill(ProcessTreeKiller.java:109)
      3. hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:706)
      4. hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:698)
      4 frames
    4. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.perform(UserRequest.java:103)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:47)
      3. hudson.remoting.Request$2.run(Request.java:236)
      3 frames
    5. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      3. java.util.concurrent.FutureTask.run(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5 frames
    6. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:54)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame