blob: 20823a1345d64c5d53b5f2de4639735f79293aca [file] [log] [blame]
/*
* This script demonstrates "invokeMBean" function. Instead
* of using MXBean proxy or script wrapper object returned by
* 'mbean' function, this file uses direct invoke on MBean.
*
* To use this particular script, load this script file in
* script console prompt and call resetPeakThreadCount().
*/
/**
* Resets the peak thread count to the current number of live threads.
*
*/
function resetPeakThreadCount() {
return invokeMBean("java.lang:type=Threading", "resetPeakThreadCount", [], "");
}