简体   繁体   中英

Tsung is started failed

I used Ejabberd version :15.10 Erlang/OTP version: 18 Tsung version: 1.6.1

when i starting tsung after "make install", use:

xxxxx:~/.tsung$ tsung -f jabber_register.xml start

eg:the jabber_register.xml is copyed from example

then show that:

Starting Tsung 
Log directory is: /home/user/.tsung/log/20151112-1105 
[os_mon] memory supervisor port (memsup): Erlang has closed  
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed

What causes the failure?

I use riak recently, and encountered similar problem.

This is the full console info of starting riak:

config is OK
-config /var/lib/riak/generated.configs/app.2015.12.02.16.53.53.config -args_file /var/lib/riak/generated.configs/vm.2015.12.02.16.53.53.args -vm_args /var/lib/riak/generated.configs/vm.2015.12.02.16.53.53.args
Exec:  /usr/lib64/riak/erts-5.10.3/bin/erlexec -boot /usr/lib64/riak/releases/2.0.4/riak               -config /var/lib/riak/generated.configs/app.2015.12.02.16.53.53.config -args_file /var/lib/riak/generated.configs/vm.2015.12.02.16.53.53.args -vm_args /var/lib/riak/generated.configs/vm.2015.12.02.16.53.53.args -pa /usr/lib64/riak/lib/basho-patches -- console
Root: /usr/lib64/riak
Erlang R16B02_basho6 (erts-5.10.3) [source-bcd8abb] [64-bit] [smp:1:1] [async-threads:64] [kernel-poll:true] [frame-pointer]

[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
{"Kernel pid terminated",application_controller," {application_start_failure,riak_core,{invalid_ring_state_dir,{riak_core_app,start,[normal,[]]}}}"}

Crash dump was written to: /var/log/riak/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,riak_core,{invalid_ring_state_dir,{riak_core_app,start,[normal,[]]}}})

I discovered some resource on riak official sites, and understand the problem.

Riak's Erlang VM is built with SMP support and if Riak is started on a non-SMP system, an error like this one is logged. This is commonly seen in virtualized environments configured for only one CPU core.

I assumed you run Tsung in VM either.

Enjoy!

Reference:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM