Kill That Thread!

ColdFusion 8

Every six months or so we have a thread that will not quit and consumes a lot of resources causing general slowness all round.   

Its possible to kill the thread with the following code.  Put in your ColdFusion Administrator and the thread name which can be found from Server Monitor.


adminObj = createObject("component","cfide.adminapi.administrator");
adminObj.login([password]);

sMonObj = createObject("component","cfide.adminapi.servermonitoring");
sMonObj.abortRequest("jrpp-100");

 
Do you guys have something running that detects that long running thread?
 
posted 274 days ago
View Replies (1) || Add Comment Reply to: this comment OR this thread
 
.: HIDE REPLIES :.
samfarmer said:
 
No, because we have a lot of long running threads using our API that serve files to various places. Those almost never take up any resources and just run fine.


 
posted 274 days ago
Add Comment Reply to: this comment OR this thread
 
Kevin Penny said:
 
Thank you - this would be the same as hitting the red 'x' by the thread while Monitoring is on in Server Monitor. Attempted both red x and programatically killing these but no dice - all 4 hung threads have this in common:

at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at macromedia.jdbc.sqlserver.SQLServerByteOrderedDataReader.makeMoreDataAvailable(Unknown Source)
at macromedia.jdbc.sqlserver.SQLServerByteOrderedDataReader.bufferAllData(Unknown Source)
 
posted 205 days ago
Add Comment Reply to: this comment OR this thread
 

Search

Twitter
You should follow me on Twitter here
About Me
I am a 34-year old Web Developer specializing in ColdFusion. I live and work in downtown Washington, DC with my wife and two daughters. Read more About Me

2007 CFeMmy Best Newcommer winner
As voted on by fellow CF Bloggers.
CFinNC - Carolina ColdFusion / Flex / Air Conference - Oct 17-18, 2009