Project

General

Profile

Problem with configuring Tigase

Kannan Prasad
Added over 5 years ago

Hi,

I have problem getting throughput in Tigase. I know that Tigase can handle better load, but my configuration is where i am doubting.

My tigase.conf has these details

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:+CMSIncrementalMode -XX:ParallelCMSThreads=25 -XX:-ReduceInitialCardMarks"

#EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"

JAVA_HOME="C:\Program Files (x86)\Java\jdk1.7.0_04"

CLASSPATH=""

JAVA_OPTIONS="${GC} ${EX} ${ENC} ${DRV} -server -Xms2048M -Xmx2048M -XX:PermSize=32m -XX:MaxPermSize=512m -XX:MaxDirectMemorySize=128m "

TIGASE_CONFIG="etc/tigase.xml"

TIGASE_OPTIONS="--property-file etc/init.properties "

My init.properties hs these details.

config-type=--gen-config-all

--cluster-nodes XMPPSERVER-2

basic-conf/logging/java.util.logging.FileHandler.limit=250000000

basic-conf/logging/java.util.logging.FileHandler.count=100

--debug=server

--user-db=mysql

--admins=admin@cloud.xyz.com

--user-db-uri=jdbc:mysql://L6MySQL-2.wins.pps.xyz.com/tigasedb?user=tigase&password=123tigase132

--user-repo-pool-size=80

--virt-hosts=cloud.xyz.com,connect.xyz.com

--comp-class-2=tigase.pubsub.PubSubClusterComponent

--comp-name-2=pubsub

--comp-class-1=tigase.muc.MUCComponent

--comp-name-1=muc

--sm-plugins=+jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,+jabber:iq:register,+jabber:iq:roster,+presence,+jabber:iq:privacy,+jabber:iq:version,+http://jabber.org/protocol/stats,+starttls,+msgoffline,+vcard-temp,+http://jabber.org/protocol/commands,+jabber:iq:private,+urn:xmpp:ping,+basic-filter,-domain-filter,+fms-domain-filter,+pep,-zlib

--c2s-ports=5222,5223,443,80

--cm-traffic-throttling=xmpp:12500:0:disc,bin:1000m:0:disc

--max-queue-size=500000

c2s/connections/5222/socket=plain

c2s/connections/5222/type=accept

c2s/connections/5222/tls/required=true

c2s/connections/5223/socket=ssl

c2s/connections/5223/type=accept

c2s/connections/5223/tls/required=true

sess-man/plugins-conf/ams-domain-filter/fmsDomain=cloud.xyz.com

sess-man/plugins-conf/ams-domain-filter/cpDomain=connect.xyz.com

MySQL config has

max_connections=500

query_cache_size=0

table_cache=256

tmp_table_size=32M

thread_cache_size=8

myisam_max_sort_file_size=100G

myisam_sort_buffer_size=64M

key_buffer_size=8M

read_buffer_size=64K

read_rnd_buffer_size=256K

sort_buffer_size=256K

innodb_additional_mem_pool_size=5M

innodb_flush_log_at_trx_commit=1

innodb_log_buffer_size=3M

innodb_buffer_pool_size=196M

innodb_log_file_size=85M

innodb_thread_concurrency=24

I have 2 clients talking through tigase to one client on the other side. My requests from 2 clients are more that 3000/min each, but on the other side, I only see 2500/min, though all the requests are reaching otherside, it is very slow.

If you can look at the configurations I have above and suggest, that will be of great help.

Note: Tigase is setup on a 2 CPU , 4 gb box in Windows 2008R2. MySQL is on a separate similar box.

Regards,

Prasad


Replies (2)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 5 years ago

First of all remove or comment out the debug log line:

--debug=server

Restart the server, try again and let us know if that helps. Heavy debug logging slows down the server significantly.

Added by Kannan Prasad over 5 years ago

Yes Artur,

You are right. I removed most of the configurations and just let the below lines in my configuration and it worked. One extra change I made was increasing the innodb_thread_concurrency to 500.

Thanks for your comments and I really appreciate your prompt response.

Regards,

Prasad

config-type=--gen-config-all

--user-db=mysql

--admins=admin@cloud.xyz.com

--user-db-uri=jdbc:mysql://L6MySQL-2.wins.pps.xyz.com/tigasedb?user=tigase&password=123tigase132

--virt-hosts=cloud.xyz.com,connect.xyz.com

    (1-2/2)