Hi Mrac Wu,

Thanks, I have tried it, but it failed. 




------------------ ???????? ------------------
??????: "Marc Wu -X (mawu2 - Insigma Hengtian at 
Cisco)"<[email protected]&gt;;
????????:&nbsp;2019??11??22??(??????) ????3:16
??????:&nbsp;"[email protected]"<[email protected]&gt;;

????:&nbsp;Re: metastore clean OutOfMemoryError



  
Hi MrWell, 
 
&nbsp;
 
You can try to create a file named setenv-tool.sh in the $KYLIN_HOME/conf 
directory, and put the following content in the file,  then execute your 
command. It may solve your issues.
 
#!/bin/bash
 
#
 
# Licensed to the Apache Software Foundation (ASF) under one or more
 
# contributor license agreements.&nbsp; See the NOTICE file distributed with
 
# this work for additional information regarding copyright ownership.
 
# The ASF licenses this file to You under the Apache License, Version 2.0
 
# (the "License"); you may not use this file except in compliance with
 
# the License.&nbsp; You may obtain a copy of the License at
 
#
 
#&nbsp; &nbsp; http://www.apache.org/licenses/LICENSE-2.0
 
#
 
# Unless required by applicable law or agreed to in writing, software
 
# distributed under the License is distributed on an "AS IS" BASIS,
 
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
# See the License for the specific language governing permissions and
 
# limitations under the License.
 
# 
 
export KYLIN_EXTRA_START_OPTS="-Xmx3072M"
 
&nbsp;
 
&nbsp;
  
From: MrWell <[email protected]&gt;
 Reply-To: "[email protected]" <[email protected]&gt;
 Date: Friday, November 22, 2019 at 15:01
 To: user <[email protected]&gt;
 Subject: metastore clean OutOfMemoryError
 
  
&nbsp;
 
  
Hi, Kylin Team. 
  
&nbsp;
 
  
When I execute "bin/metastore.sh clean --delete true" , I get a 
"OutOfMemoryError" like this
 
  
&nbsp;
 
 
&nbsp;
   
java.lang.OutOfMemoryError: Java heap space
 
  
Dumping heap to java_pid4839.hprof ...
 
  
Heap dump file created [317991670 bytes in 2.120 secs]
 
  
#
 
  
# java.lang.OutOfMemoryError: Java heap space
 
  
# -XX:OnOutOfMemoryError="kill -9 %p"
 
  
#&nbsp; &nbsp;Executing /bin/sh -c "kill -9 4839"...
 
  
bin/metastore.sh: line 109:&nbsp; 4839 Killed&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; ${KYLIN_HOME}/bin/kylin.sh 
org.apache.kylin.tool.MetadataCleanupJob "${@:2}"
 
 
  
&nbsp;
 
  
&nbsp;
 
  
I have set 'setenv.sh' file, like this
 
  
&nbsp;
 
  
export KYLIN_JVM_SETTINGS="-Xms16g -Xmx16g -XX:MaxPermSize=512m -XX:NewSize=3g 
-XX:MaxNewSize=3g -XX:SurvivorRatio=4 -XX:+CMSClassUnloadingEnabled 
-XX:+CMSParallelRemarkEnabled  -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode 
-XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly 
-XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -verbose:gc 
-XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:$KYLIN_HOME/logs/kylin.gc.$$ 
 -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=64M"
 
  
&nbsp;
 
  
Dose it means heap memory is still small?

Reply via email to