Giter VIP home page Giter VIP logo

tigase-xmpp-server-docker's People

Contributors

arturhefczyc avatar hantu85 avatar woj-tek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tigase-xmpp-server-docker's Issues

High memory usage

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=" "

Asking me to login after creation

I used the "Single, basic instance" command set and when I try to connect, it brings up a basic html login popup. I did not configure any sort of username or password for the interface itself, nor does login info set for the database work for it. What am I missing?

Unable to login and connect

I'm trying to build a simple xmpp server just to learn. After the setup i'm not able to login in localhost:8080/admin.
This is the config.tdsl

admins = [
    'admin@009ec9fa7e7b'
]
'config-type' = 'default'
debug = [ 'server' ]
'default-virtual-host' = '009ec9fa7e7b'
dataSource () {
    default () {
        uri = 'jdbc:derby:tigasedb;create=true'
    }
}
http () {
    setup () {
        'admin-password' = 'admin'
        'admin-user' = 'admin'
    }
}
pubsub () {
    trusted = [ 'http@{clusterNode}' ]
}

I set all the username and passwords to admin:admin but i cannot login.
This is the docker-compose i used to start the server

version: '3.3'
services:
  xmpp:
    image: tigase/tigase-xmpp-server:nightly-8.3-2022-10-26
    ports:
      - "5222:5222"
      - "5280:5280"
      - "5290:5290"
      - "8080:8080"
    environment:
      DB_ROOT_USER: root
      DB_ROOT_PASS: root-password
      ADMIN_JID: admin
      ADMIN_PASSWORD: admin
    volumes:
      - ./etc/:/home/tigase/tigase-server/etc/
      - ./certs/:/home/tigase/tigase-server/certs/
      - ./data/:/home/tigase/tigase-server/data/
      - ./logs/:/home/tigase/tigase-server/logs/

The second problem is that i'm trying to use this server with angular and ngx-chat but i don't understand which is the url to connect to the webSocket. For localhost i'm using ws://localhost:5290 but it doesn't work.

How can i find the correct socket url?

Thank you in advance for the help.

启动之后无法配置成功,数据库过不去,怎么初始化?不是知道创建的吗?

docker run --name tigase-server -p 8080:8080 -p 5222:5222 tigase/tigase-xmpp-server:8.1.0

=====================
Could not initialize bean default (class: class tigase.db.beans.DataSourceBean$DataSourceMDConfigBean), skipping injection of this bean
RootCause:
   -> java.lang.reflect.InvocationTargetException
      [java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)]
      -> java.lang.RuntimeException: java.lang.RuntimeException: Could not initialize tigase.db.jdbc.DataRepositoryImpl for name 'default'
         [java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)]
         -> java.lang.RuntimeException: Could not initialize tigase.db.jdbc.DataRepositoryImpl for name 'default'
            [tigase.db.beans.MDPoolConfigBean.lambda$setInstances$0(MDPoolConfigBean.java:179)]
            -> tigase.db.DBInitException: Database initialization failed
               [tigase.db.jdbc.DataRepositoryImpl.initialize(DataRepositoryImpl.java:318)]
               -> com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
                  [java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)]
                  -> java.net.ConnectException: Connection refused (Connection refused)
                     [java.base/java.net.PlainSocketImpl.socketConnect(Native Method)]

始终不能初始化通过
要怎么设置数据库连接?

http://localhost:8080/setup 设置的内容为:

admins = [ 'admin@e1498daba259' ]
'config-type' = 'default'
debug = [ 'server' ]
'default-virtual-host' = 'e1498daba259'
dataSource () {
    default () {
        uri = 'jdbc:mysql://localhost:3306/tigasedb?user=root&password=123456&useSSL=false&useLegacyDatetimeCode=false&allowPublicKeyRetrieval=true'
    }
}
http () {
    setup () {
        'admin-password' = '1000'
        'admin-user' = '1000'
    }
}
pubsub () {
    trusted = [ 'http@{clusterNode}' ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.