Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
JvmThreads.prototype.render = function () {
var wholeNumberFormat = this.props.wholeNumberFormat;
var threadStats = this.state.threadStats;
return (React.createElement("div", null,
React.createElement("b", null, "Threads"),
" (Total: ",
threadStats.threadDumpAll,
")",
' ',
React.createElement("p", null,
React.createElement("span", null, "Runnable"),
" ",
threadStats.threadDumpRunnable),
React.createElement(reactstrap_1.Progress, { animated: true, min: "0", value: threadStats.threadDumpRunnable, max: threadStats.threadDumpAll, color: "success" },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: threadStats.threadDumpRunnable * 100 / threadStats.threadDumpAll, type: "number", format: wholeNumberFormat }))),
React.createElement("p", null,
React.createElement("span", null, "Timed Waiting"),
" (",
threadStats.threadDumpTimedWaiting,
")"),
React.createElement(reactstrap_1.Progress, { animated: true, min: "0", value: threadStats.threadDumpTimedWaiting, max: threadStats.threadDumpAll, color: "warning" },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: threadStats.threadDumpTimedWaiting * 100 / threadStats.threadDumpAll, type: "number", format: wholeNumberFormat }))),
React.createElement("p", null,
React.createElement("span", null, "Waiting"),
" (",
threadStats.threadDumpWaiting,
")"),
React.createElement(reactstrap_1.Progress, { animated: true, min: "0", value: threadStats.threadDumpWaiting, max: threadStats.threadDumpAll, color: "warning" },
React.createElement("span", null, key),
" (",
React.createElement(formatter_1.TextFormat, { value: jvmMetrics[key].used / 1048576, type: "number", format: wholeNumberFormat }),
"M /",
' ',
React.createElement(formatter_1.TextFormat, { value: jvmMetrics[key].max / 1048576, type: "number", format: wholeNumberFormat }),
"M)")) : (React.createElement("span", null,
React.createElement("span", null, key),
" ",
React.createElement(formatter_1.TextFormat, { value: jvmMetrics[key].used / 1048576, type: "number", format: wholeNumberFormat }),
"M")),
React.createElement("div", null,
"Committed : ",
React.createElement(formatter_1.TextFormat, { value: jvmMetrics[key].committed / 1048576, type: "number", format: wholeNumberFormat }),
"M"),
jvmMetrics[key].max !== -1 ? (React.createElement(reactstrap_1.Progress, { animated: true, value: jvmMetrics[key].used, min: "0", max: jvmMetrics[key].max, color: "success" },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: jvmMetrics[key].used * 100 / jvmMetrics[key].max, type: "number", format: wholeNumberFormat }),
"%"))) : (''))); })));
};
React.createElement("tbody", null, Object.keys(requestMetrics.percode).map(function (key, index) { return (React.createElement("tr", { key: index },
React.createElement("td", null, key),
React.createElement("td", null,
React.createElement(reactstrap_1.Progress, { min: "0", max: requestMetrics.all.count, value: requestMetrics.percode[key].count, color: "success", animated: true },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: requestMetrics.percode[key].count, type: "number", format: wholeNumberFormat })))),
React.createElement("td", { className: "text-right" },
React.createElement(formatter_1.TextFormat, { value: _this.filterNaN(requestMetrics.percode[key].mean), type: "number", format: twoDigitAfterPointFormat })),
React.createElement("td", { className: "text-right" },
React.createElement(formatter_1.TextFormat, { value: _this.filterNaN(requestMetrics.percode[key].max), type: "number", format: twoDigitAfterPointFormat })))); })))));
};
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: threadStats.threadDumpTimedWaiting * 100 / threadStats.threadDumpAll, type: "number", format: wholeNumberFormat }))),
React.createElement("p", null,
React.createElement("span", null, "Waiting"),
" (",
threadStats.threadDumpWaiting,
")"),
React.createElement(reactstrap_1.Progress, { animated: true, min: "0", value: threadStats.threadDumpWaiting, max: threadStats.threadDumpAll, color: "warning" },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: threadStats.threadDumpWaiting * 100 / threadStats.threadDumpAll, type: "number", format: wholeNumberFormat }))),
React.createElement("p", null,
React.createElement("span", null, "Blocked"),
" (",
threadStats.threadDumpBlocked,
")"),
React.createElement(reactstrap_1.Progress, { animated: true, min: "0", value: threadStats.threadDumpBlocked, max: threadStats.threadDumpAll, color: "success" },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: threadStats.threadDumpBlocked * 100 / threadStats.threadDumpAll, type: "number", format: wholeNumberFormat }))),
this.renderModal(),
React.createElement(reactstrap_1.Button, { color: "primary", size: "sm", className: "hand", onClick: this.openModal }, "Expand")));
};
return JvmThreads;
React.createElement(formatter_1.TextFormat, { value: systemMetrics['process.start.time'], type: "date", format: timestampFormat }))),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "Process CPU usage"),
React.createElement(reactstrap_1.Col, { md: "3", className: "text-right" },
React.createElement(formatter_1.TextFormat, { value: 100 * systemMetrics['process.cpu.usage'], type: "number", format: wholeNumberFormat }),
" %")),
React.createElement(reactstrap_1.Progress, { animated: true, value: 100 * systemMetrics['process.cpu.usage'], color: "success" },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: 100 * systemMetrics['process.cpu.usage'], type: "number", format: wholeNumberFormat }),
" %")),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "System CPU usage"),
React.createElement(reactstrap_1.Col, { md: "3", className: "text-right" },
React.createElement(formatter_1.TextFormat, { value: 100 * systemMetrics['system.cpu.usage'], type: "number", format: wholeNumberFormat }),
" %")),
React.createElement(reactstrap_1.Progress, { animated: true, value: 100 * systemMetrics['system.cpu.usage'], color: "success" },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: 100 * systemMetrics['system.cpu.usage'], type: "number", format: wholeNumberFormat }),
" %")),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "System CPU count"),
React.createElement(reactstrap_1.Col, { md: "3", className: "text-right" }, systemMetrics['system.cpu.count'])),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "System 1m Load average"),
React.createElement(reactstrap_1.Col, { md: "3", className: "text-right" },
React.createElement(formatter_1.TextFormat, { value: systemMetrics['system.load.average.1m'], type: "number", format: wholeNumberFormat }))),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "7" }, "Process files max"),
React.createElement(reactstrap_1.Col, { md: "5", className: "text-right" },
React.createElement(formatter_1.TextFormat, { value: systemMetrics['process.files.max'], type: "number", format: wholeNumberFormat }))),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "4" }, "Process files open"),
var _a = this.props, systemMetrics = _a.systemMetrics, wholeNumberFormat = _a.wholeNumberFormat, timestampFormat = _a.timestampFormat;
return (React.createElement("div", null,
React.createElement("h4", null, "System"),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "4" }, "Uptime"),
React.createElement(reactstrap_1.Col, { md: "8", className: "text-right" }, SystemMetrics.convertMillisecondsToDuration(systemMetrics['process.uptime']))),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "4" }, "Start time"),
React.createElement(reactstrap_1.Col, { md: "8", className: "text-right" },
React.createElement(formatter_1.TextFormat, { value: systemMetrics['process.start.time'], type: "date", format: timestampFormat }))),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "Process CPU usage"),
React.createElement(reactstrap_1.Col, { md: "3", className: "text-right" },
React.createElement(formatter_1.TextFormat, { value: 100 * systemMetrics['process.cpu.usage'], type: "number", format: wholeNumberFormat }),
" %")),
React.createElement(reactstrap_1.Progress, { animated: true, value: 100 * systemMetrics['process.cpu.usage'], color: "success" },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: 100 * systemMetrics['process.cpu.usage'], type: "number", format: wholeNumberFormat }),
" %")),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "System CPU usage"),
React.createElement(reactstrap_1.Col, { md: "3", className: "text-right" },
React.createElement(formatter_1.TextFormat, { value: 100 * systemMetrics['system.cpu.usage'], type: "number", format: wholeNumberFormat }),
" %")),
React.createElement(reactstrap_1.Progress, { animated: true, value: 100 * systemMetrics['system.cpu.usage'], color: "success" },
React.createElement("span", null,
React.createElement(formatter_1.TextFormat, { value: 100 * systemMetrics['system.cpu.usage'], type: "number", format: wholeNumberFormat }),
" %")),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "System CPU count"),
React.createElement(reactstrap_1.Col, { md: "3", className: "text-right" }, systemMetrics['system.cpu.count'])),
React.createElement(reactstrap_1.Row, null,
"M /",
' ',
React.createElement(formatter_1.TextFormat, { value: garbageCollectorMetrics['jvm.gc.max.data.size'] / 1048576, type: 'number', format: wholeNumberFormat }),
"M)"),
React.createElement(reactstrap_1.Progress, { animated: true, color: "success", value: 100 * garbageCollectorMetrics['jvm.gc.live.data.size'] / garbageCollectorMetrics['jvm.gc.max.data.size'] },
React.createElement(formatter_1.TextFormat, { value: 100 * garbageCollectorMetrics['jvm.gc.live.data.size'] / garbageCollectorMetrics['jvm.gc.max.data.size'], type: 'number', format: wholeNumberFormat }),
"%")),
React.createElement(reactstrap_1.Col, { md: "4" },
React.createElement("span", null,
"GC Memory Promoted/GC Memory Allocated (",
React.createElement(formatter_1.TextFormat, { value: garbageCollectorMetrics['jvm.gc.memory.promoted'] / 1048576, type: 'number', format: wholeNumberFormat }),
"M /",
' ',
React.createElement(formatter_1.TextFormat, { value: garbageCollectorMetrics['jvm.gc.memory.allocated'] / 1048576, type: 'number', format: wholeNumberFormat }),
"M)"),
React.createElement(reactstrap_1.Progress, { animated: true, color: "success", value: 100 * garbageCollectorMetrics['jvm.gc.memory.promoted'] / garbageCollectorMetrics['jvm.gc.memory.allocated'] },
React.createElement(formatter_1.TextFormat, { value: 100 * garbageCollectorMetrics['jvm.gc.memory.promoted'] / garbageCollectorMetrics['jvm.gc.memory.allocated'], type: 'number', format: wholeNumberFormat }),
"%")),
React.createElement(reactstrap_1.Col, { md: "4" },
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "Classes loaded"),
React.createElement(reactstrap_1.Col, { md: "3" }, garbageCollectorMetrics.classesLoaded)),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "Classes unloaded"),
React.createElement(reactstrap_1.Col, { md: "3" }, garbageCollectorMetrics.classesUnloaded)))),
React.createElement(reactstrap_1.Table, null,
React.createElement("thead", null,
React.createElement("tr", null,
React.createElement("th", null),
React.createElement("th", { className: "text-right" }, "Count"),
React.createElement("th", { className: "text-right" }, "Mean"),
React.createElement("th", { className: "text-right" }, "Min"),
GarbageCollectorMetrics.prototype.render = function () {
var _a = this.props, garbageCollectorMetrics = _a.garbageCollectorMetrics, wholeNumberFormat = _a.wholeNumberFormat;
return (React.createElement("div", null,
React.createElement("h3", null, "Garbage Collection"),
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "4" },
React.createElement("span", null,
"GC Live Data Size/GC Max Data Size (",
React.createElement(formatter_1.TextFormat, { value: garbageCollectorMetrics['jvm.gc.live.data.size'] / 1048576, type: 'number', format: wholeNumberFormat }),
"M /",
' ',
React.createElement(formatter_1.TextFormat, { value: garbageCollectorMetrics['jvm.gc.max.data.size'] / 1048576, type: 'number', format: wholeNumberFormat }),
"M)"),
React.createElement(reactstrap_1.Progress, { animated: true, color: "success", value: 100 * garbageCollectorMetrics['jvm.gc.live.data.size'] / garbageCollectorMetrics['jvm.gc.max.data.size'] },
React.createElement(formatter_1.TextFormat, { value: 100 * garbageCollectorMetrics['jvm.gc.live.data.size'] / garbageCollectorMetrics['jvm.gc.max.data.size'], type: 'number', format: wholeNumberFormat }),
"%")),
React.createElement(reactstrap_1.Col, { md: "4" },
React.createElement("span", null,
"GC Memory Promoted/GC Memory Allocated (",
React.createElement(formatter_1.TextFormat, { value: garbageCollectorMetrics['jvm.gc.memory.promoted'] / 1048576, type: 'number', format: wholeNumberFormat }),
"M /",
' ',
React.createElement(formatter_1.TextFormat, { value: garbageCollectorMetrics['jvm.gc.memory.allocated'] / 1048576, type: 'number', format: wholeNumberFormat }),
"M)"),
React.createElement(reactstrap_1.Progress, { animated: true, color: "success", value: 100 * garbageCollectorMetrics['jvm.gc.memory.promoted'] / garbageCollectorMetrics['jvm.gc.memory.allocated'] },
React.createElement(formatter_1.TextFormat, { value: 100 * garbageCollectorMetrics['jvm.gc.memory.promoted'] / garbageCollectorMetrics['jvm.gc.memory.allocated'], type: 'number', format: wholeNumberFormat }),
"%")),
React.createElement(reactstrap_1.Col, { md: "4" },
React.createElement(reactstrap_1.Row, null,
React.createElement(reactstrap_1.Col, { md: "9" }, "Classes loaded"),