china-bigcloud opened a new issue #1238: URL: https://github.com/apache/incubator-iotdb/issues/1238
[root@localhost sbin]# ./start-server.sh & [1] 10397 [root@localhost sbin]# --------------------- Starting IoTDB --------------------- Maximum memory allocation pool = 4096MB, initial memory allocation pool = 800MB If you want to change this configuration, please check conf/iotdb-env.sh(Unix or OS X, if you use Windows, check conf/iotdb-env.bat). 2020-05-22 18:43:19,086 [main] INFO org.apache.iotdb.db.conf.IoTDBDescriptor:91 - Start to read config file ./../conf/iotdb-engine.properties 2020-05-22 18:43:19,089 [main] INFO org.apache.iotdb.db.conf.IoTDBDescriptor:111 - The stat_monitor_detect_freq_sec value is smaller than default, use default value 2020-05-22 18:43:19,090 [main] INFO org.apache.iotdb.db.conf.IoTDBDescriptor:118 - The stat_monitor_retain_interval_sec value is smaller than default, use default value 2020-05-22 18:43:19,090 [main] INFO org.apache.iotdb.db.conf.IoTDBDescriptor:228 - Time zone has been set to +08:00 2020-05-22 18:43:19,093 [main] INFO org.apache.iotdb.tsfile.common.conf.TSFileDescriptor:103 - Start to read config file ./../conf/iotdb-engine.properties 2020-05-22 18:43:19,095 [main] INFO org.apache.iotdb.db.conf.IoTDBConfigCheck:54 - System configuration is ok. 2020-05-22 18:43:19,097 [main] INFO org.apache.iotdb.db.service.StartupChecks:47 - JMX is enabled to receive remote connection on port 31999 2020-05-22 18:43:19,097 [main] INFO org.apache.iotdb.db.service.StartupChecks:57 - JDK veriosn is 8. 2020-05-22 18:43:19,098 [main] INFO org.apache.iotdb.db.service.IoTDB:80 - Setting up IoTDB... 2020-05-22 18:43:19,111 [main] ERROR org.apache.iotdb.db.concurrent.IoTDBDefaultThreadExceptionHandler:31 - Exception in thread main-1 java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.iotdb.db.metadata.MManager.operation(MManager.java:217) at org.apache.iotdb.db.metadata.MManager.initFromLog(MManager.java:177) at org.apache.iotdb.db.metadata.MManager.init(MManager.java:149) at org.apache.iotdb.db.service.IoTDB.initMManager(IoTDB.java:121) at org.apache.iotdb.db.service.IoTDB.setUp(IoTDB.java:92) at org.apache.iotdb.db.service.IoTDB.active(IoTDB.java:69) at org.apache.iotdb.db.service.IoTDB.main(IoTDB.java:55) 2020-05-22 18:43:19,114 [Thread-1] INFO org.apache.iotdb.db.service.IoTDBShutdownHook:32 - IoTDB exits. Jvm memory usage: 0 GB 40 MB 104 KB 256 B 我这里主要存zabbix监控信息,使用了一个存储组,每1分钟存2000条时序数据,我应该调整哪些内存参数?我现在使用1台4核16G机器。 我修改了iotdb-env.sh中的配置: half_system_memory_in_mb=`expr $system_memory_in_mb / 2` quarter_system_memory_in_mb=`expr $half_system_memory_in_mb / 2` if [ "$half_system_memory_in_mb" -gt "1024" ] then half_system_memory_in_mb="4096" fi if [ "$quarter_system_memory_in_mb" -gt "8192" ] then quarter_system_memory_in_mb="8192" fi if [ "$half_system_memory_in_mb" -gt "$quarter_system_memory_in_mb" ] then max_heap_size_in_mb="$half_system_memory_in_mb" else max_heap_size_in_mb="$quarter_system_memory_in_mb" fi MAX_HEAP_SIZE="${max_heap_size_in_mb}M" # Young gen: min(max_sensible_per_modern_cpu_core * num_cores, 1/4 * heap size) max_sensible_yg_per_core_in_mb="200" max_sensible_yg_in_mb=`expr $max_sensible_yg_per_core_in_mb "*" $system_cpu_cores` desired_yg_in_mb=`expr $max_heap_size_in_mb / 4` if [ "$desired_yg_in_mb" -gt "$max_sensible_yg_in_mb" ] then HEAP_NEWSIZE="${max_sensible_yg_in_mb}M" else HEAP_NEWSIZE="${desired_yg_in_mb}M" fi 请问这个问题如何解决? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org