mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 15:35:03 +00:00
Update common/src/main/java/stirling/software/common/service/ResourceMonitor.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
76fcaeb94d
commit
083b68e2a0
@ -172,8 +172,8 @@ public class ResourceMonitor {
|
|||||||
if (oldStatus != newStatus) {
|
if (oldStatus != newStatus) {
|
||||||
log.info("System resource status changed from {} to {}", oldStatus, newStatus);
|
log.info("System resource status changed from {} to {}", oldStatus, newStatus);
|
||||||
log.info(
|
log.info(
|
||||||
"Current metrics - CPU: {:.1f}%, Memory: {:.1f}%, Free Memory: {} MB",
|
"Current metrics - CPU: {}%, Memory: {}%, Free Memory: {} MB",
|
||||||
cpuUsage * 100, memoryUsage * 100, freeMemory / (1024 * 1024));
|
String.format("%.1f", cpuUsage * 100), String.format("%.1f", memoryUsage * 100), freeMemory / (1024 * 1024));
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Error updating resource metrics: {}", e.getMessage(), e);
|
log.error("Error updating resource metrics: {}", e.getMessage(), e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user