[improvement](be) add a name for be jvm (#17595)
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user