From e80ae0367a0685da508949045eb67e932f3cc93f Mon Sep 17 00:00:00 2001 From: zhangstar333 <87313068+zhangstar333@users.noreply.github.com> Date: Thu, 9 Mar 2023 23:27:15 +0800 Subject: [PATCH] [improvement](be) add a name for be jvm (#17595) --- be/src/util/jni-util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/be/src/util/jni-util.cpp b/be/src/util/jni-util.cpp index a41e768e38..811738144e 100644 --- a/be/src/util/jni-util.cpp +++ b/be/src/util/jni-util.cpp @@ -73,10 +73,13 @@ void FindOrCreateJavaVM() { auto classpath = GetDorisJNIClasspath(); std::string heap_size = fmt::format("-Xmx{}", config::jvm_max_heap_size); std::string log_path = fmt::format("-DlogPath={}/log/udf-jdbc.log", getenv("DORIS_HOME")); + std::string jvm_name = fmt::format("-Dsun.java.command={}", "DorisBE"); + JavaVMOption options[] = { {const_cast(classpath.c_str()), nullptr}, {const_cast(heap_size.c_str()), nullptr}, {const_cast(log_path.c_str()), nullptr}, + {const_cast(jvm_name.c_str()), nullptr}, #ifdef __APPLE__ // On macOS, we should disable MaxFDLimit, otherwise the RLIMIT_NOFILE // will be assigned the minimum of OPEN_MAX (10240) and rlim_cur (See src/hotspot/os/bsd/os_bsd.cpp)