Issue Type: Bug Bug
Assignee: Unassigned
Components: support-core
Created: 21/Jul/14 3:36 PM
Description:

The slow request checker pegs the JDK VM_Thread at 100% cpu as it is in a constant loop grabing thread dumps.

Getting full thread dumps on a largish system (18 slaves, 5 polls, several web requests) every 3 seconds is not a great idea.

There is no way to tune this and the only way to fix this is to uninstall the support core plugin and restart jenkins.

depending on the JDK you may be able to terminate the Slow request thread with the following

import jenkins.util.Timer 
import java.util.concurrent.*

def timer = Timer.get() 
def tasks = timer.queue.toArray()

def field = FutureTask.class.getDeclaredField("callable") 
field.setAccessible(true)

for (task in tasks) { 
  if (field.get(task).task.class == com.cloudbees.jenkins.support.slowrequest.SlowRequestChecker.class) { 
    println(task.toString() + " <-----========== SlowRequestChecker") 
    println(task.cancel(true)) 
    println(timer.queue.remove()) 
  } 
}

Once the requestChecker is removed the UI response is near instantanious.

Environment: 2 * E5-2690 (16 real cores, 32 inc hyperthreading)
112 MB RAM
-Xmx24g -Xms16g
Project: Jenkins
Priority: Major Major
Reporter: teilo
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to