Skip to content

Commit

Permalink
[improvement](be) add a name for be jvm (apache#17595)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 authored Mar 9, 2023
1 parent 4ddd303 commit e80ae03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions be/src/util/jni-util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e80ae03

Please sign in to comment.