You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Process resource leak in system metrics collection
Add process.waitFor() and process.destroyForcibly() in finally block
to prevent zombie processes when collecting system memory and network
metrics via Runtime.exec(). Also handle InterruptedException properly
by restoring the interrupt flag.
Affected files:
- SystemMetrics: memory info collection via 'free' command
- LinuxNetMetricManager: socket count collection via 'ss' command
Copy file name to clipboardExpand all lines: iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/net/LinuxNetMetricManager.java
0 commit comments