Open weiweipang opened 1 year ago
Hi,I run tigase-xmpp-server-docker with kubernetes,The memory usage is high,I modified tigase.conf according to the documentation but it didn't work
#osgiEnabled=(true|false) #osgiEnabled=false OSGI=${osgiEnabled} ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8" DRV="-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver" GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:NewRatio=2 -XX:-ReduceInitialCardMarks -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly" EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA -XX:+UseCompressedOops " #REMOTE_DEBUG=" -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n " #GC_DEBUG=" -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Xloggc:logs/jvm.log -verbose:gc " #JVM_DEBUG=" -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/tigase/heapdump.bin " #TLS_DEBUG=" -Djavax.net.debug=ssl:handshake:session:defaultctx " ## Note:Enabling NMT causes a 5% -10% performance overhead! #JVM_MEMORY=" -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=summary -XX:+PrintNMTStatistics " #JMX_REMOTE_IP="-Djava.rmi.server.hostname=0.0.0.0" ## AWS hostname resolver #export INTERNAL_IP="$(curl -s http://169.254.169.254/latest/meta-data/local-hostname)" #export EXTERNAL_IP="$(curl -s http://169.254.169.254/latest/meta-data/public-hostname)" #JAVA_HOME="${JDKPath}" CLASSPATH="" #DISABLE_LOGGER_COLOR=" -Ddisable_logger_color=true " ## Possible memory allocation improvements on some CentOS/RHEL systems ## https://www.ibm.com/developerworks/community/blogs/kevgrig/entry/linux_glibc_2_10_rhel_6_malloc_may_show_excessive_virtual_memory_usage?lang=en # export MALLOC_ARENA_MAX=4 ## You should explicitly set Young Generation size only if you know what ## you are doing and only after running Load Tests that confirms the assumption! #JAVA_YOUNG_GEN_EXPLICIT_SIZE=" -Xmn<young size>[g|m|k] " ## Heap memory settings should be adjusted on per deployment basis to utilize all resources! ## When configuring consider total of: Xmx + (Xss * number of threads) PRODUCTION_HEAP_SETTINGS=" -Xms12g -Xmx12g " ## Per-thread stack size on top of HEAP! JAVA_XSS=" -Xss228k " JAVA_DIRECT_MEMORY=" -XX:MaxDirectMemorySize=1024m " JAVA_METASPACE=" -XX:MaxMetaspaceSize=1024m " JAVA_OPTIONS="${GC} ${GC_DEBUG} ${JVM_DEBUG} ${TLS_DEBUG} ${JVM_MEMORY} ${REMOTE_DEBUG} ${EX} ${ENC} ${DRV} ${JMX_REMOTE_IP} ${DISABLE_LOGGER_COLOR} -server ${PRODUCTION_HEAP_SETTINGS} ${JAVA_XSS} ${JAVA_DIRECT_MEMORY} ${JAVA_METASPACE} " TIGASE_OPTIONS=" "
Hi,I run tigase-xmpp-server-docker with kubernetes,The memory usage is high
What do you mean "high"? What's the memory usage and what would be expected usage for you?
Hi,I run tigase-xmpp-server-docker with kubernetes,The memory usage is high,I modified tigase.conf according to the documentation but it didn't work