[improvement](be) add a name for be jvm (#17595)

This commit is contained in:
zhangstar333
2023-03-09 23:27:15 +08:00
committed by GitHub
parent 4ddd303cfc
commit e80ae0367a

View File

@ -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<char*>(classpath.c_str()), nullptr},
{const_cast<char*>(heap_size.c_str()), nullptr},
{const_cast<char*>(log_path.c_str()), nullptr},
{const_cast<char*>(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)