Skip to content

Instantly share code, notes, and snippets.

Leon Brett l-brett

  • Norwich, United Kingdom
View GitHub Profile
@l-brett
l-brett / threads.cfm
Created Feb 11, 2019
Coldfusion - Get a list of all current threads
View threads.cfm
<!--- Create the thread object --->
<cfobject type="JAVA" action="Create" name="thread" class="java.lang.Thread">
<!--- Get all stack traces from the thread object --->
<cfset stackTraces = thread.getAllStackTraces()>
<!--- Convert the keySet to an array --->
<cfset keys = stackTraces.keySet().toArray()>
<style>
.text {
You can’t perform that action at this time.