You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by tk...@apache.org on 2025/07/02 07:29:04 UTC
(ignite-3) 01/01: IGNITE-21874 wip
This is an automated email from the ASF dual-hosted git repository.
tkalkirill pushed a commit to branch ignite-21874
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
commit 5d0c8970ac5569386a7d86d057321d2d4389729a
Author: Kirill Tkalenko <tk...@yandex.ru>
AuthorDate: Wed Jul 2 10:28:41 2025 +0300
IGNITE-21874 wip
---
.../ignite/internal/app/IgniteServerImpl.java | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/modules/runner/src/main/java/org/apache/ignite/internal/app/IgniteServerImpl.java b/modules/runner/src/main/java/org/apache/ignite/internal/app/IgniteServerImpl.java
index d83180ece2f..011871146b4 100644
--- a/modules/runner/src/main/java/org/apache/ignite/internal/app/IgniteServerImpl.java
+++ b/modules/runner/src/main/java/org/apache/ignite/internal/app/IgniteServerImpl.java
@@ -395,6 +395,8 @@ public class IgniteServerImpl implements IgniteServer {
logAvailableResources();
+ logOsInfo();
+
ackRemoteManagement();
return instance.startAsync().handle((result, throwable) -> {
@@ -460,6 +462,26 @@ public class IgniteServerImpl implements IgniteServer {
LOG.info("Max heap: {}", Runtime.getRuntime().maxMemory());
}
+ private static void logOsInfo() {
+ Long jvmPid = null;
+
+ try {
+ jvmPid = ProcessHandle.current().pid();
+ } catch (Throwable ignore) {
+ // No-op.
+ }
+
+ String osName = System.getProperty("os.name");
+ String osVersion = System.getProperty("os.version");
+ String osArch = System.getProperty("os.arch");
+ String osUser = System.getProperty("user.name");
+
+ LOG.info(
+ "OS: [name={}, version={}, arch={}, user={}, pid={}]",
+ osName, osVersion, osArch, osUser, (jvmPid == null ? "N/A" : jvmPid)
+ );
+ }
+
private static void ackRemoteManagement() {
if (LOG.isInfoEnabled()) {
boolean jmxEnabled = System.getProperty("com.sun.management.jmxremote") != null;