Hi Guys,
I posted this as a bug, but it was closed and I was advised to post it here.
I don't have much more information, as RabbitMQ dies, but I will try to get a core dump.
I have a small RabbitMQ server with millions of messages. It all works well, but from time to time it simply stops. I saw a segfault being logged on dmesg, but besides that I don't have any extra information.
The machines had enougth ram and disk space.
I'm using RabbitMQ 3.6.9 with Erlang 19.3, on Ubuntu 16.04.2 LTS - Linux xcipp 4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux.
rabbitmq.config:
[
{kernel, [
{inet_default_connect_options, [{nodelay, true}]},
{inet_default_listen_options, [{nodelay, true}]}
]},
{rabbit, [
{tcp_listeners, [{"192.168.1.224", 5672}]},
{tcp_listen_options, [
{backlog, 4096},
{nodelay, true},
{linger, {true,0}},
{exit_on_close, false},
{sndbuf, 196608},
{recbuf, 196608}
]},
{vm_memory_high_watermark, 0.6},
{vm_memory_high_watermark_paging_ratio, 0.30},
{log_levels, [{channel, debug},
{connection, info}]}
]}
].
rabbitmq-env.conf
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="+A 128 +t 10048576"
enabled_plugins
[rabbitmq_management].
/etc/sysctl.conf
net.ipv4.tcp_max_syn_backlog=2048
net.core.somaxconn = 1024
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 63685
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 63685
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
rabbitmqctl environmentApplication environment of node rabbit@chipp...
[{amqp_client,[{prefer_ipv6,false},{ssl_options,[]}]}, {asn1,[]}, {compiler,[]}, {cowboy,[]}, {cowlib,[]}, {crypto,[]}, {inets,[]}, {kernel, [{error_logger,tty}, {inet_default_connect_options,[{nodelay,true}]}, {inet_default_listen_options,[{nodelay,true}]}, {inet_dist_listen_max,25672}, {inet_dist_listen_min,25672}]}, {mnesia,[{dir,"/var/lib/rabbitmq/mnesia/rabbit@chipp"}]}, {os_mon, [{start_cpu_sup,false}, {start_disksup,false}, {start_memsup,false}, {start_os_sup,false}]}, {public_key,[]}, {rabbit, [{auth_backends,[rabbit_auth_backend_internal]}, {auth_mechanisms,['PLAIN','AMQPLAIN']}, {background_gc_enabled,false}, {background_gc_target_interval,60000}, {backing_queue_module,rabbit_priority_queue}, {channel_max,0}, {channel_operation_timeout,15000}, {cluster_keepalive_interval,10000}, {cluster_nodes,{[],disc}}, {cluster_partition_handling,ignore}, {collect_statistics,fine}, {collect_statistics_interval,5000}, {config_entry_decoder, [{cipher,aes_cbc256}, {hash,sha512}, {iterations,1000}, {passphrase,undefined}]}, {credit_flow_default_credit,{400,200}}, {default_permissions,[<<".*">>,<<".*">>,<<".*">>]}, {default_user,<<"guest">>}, {default_user_tags,[administrator]}, {default_vhost,<<"/">>}, {delegate_count,16}, {disk_free_limit,50000000}, {enabled_plugins_file,"/etc/rabbitmq/enabled_plugins"}, {error_logger,{file,"/var/log/rabbitmq/rabbit@chipp.log"}},
{fhc_read_buffering,false}, {fhc_write_buffering,true}, {frame_max,131072}, {halt_on_upgrade_failure,true}, {handshake_timeout,10000}, {heartbeat,60}, {hipe_compile,false}, {hipe_modules, [rabbit_reader,rabbit_channel,gen_server2,rabbit_exchange, rabbit_command_assembler,rabbit_framing_amqp_0_9_1,rabbit_basic, rabbit_event,lists,queue,priority_queue,rabbit_router,rabbit_trace, rabbit_misc,rabbit_binary_parser,rabbit_exchange_type_direct, rabbit_guid,rabbit_net,rabbit_amqqueue_process, rabbit_variable_queue,rabbit_binary_generator,rabbit_writer, delegate,gb_sets,lqueue,sets,orddict,rabbit_amqqueue, rabbit_limiter,gb_trees,rabbit_queue_index, rabbit_exchange_decorator,gen,dict,ordsets,file_handle_cache, rabbit_msg_store,array,rabbit_msg_store_ets_index,rabbit_msg_file, rabbit_exchange_type_fanout,rabbit_exchange_type_topic,mnesia, mnesia_lib,rpc,mnesia_tm,qlc,sofs,proplists,credit_flow,pmon, ssl_connection,tls_connection,ssl_record,tls_record,gen_fsm,ssl]}, {lazy_queue_explicit_gc_run_operation_threshold,1000}, {log_levels,[{channel,debug},{connection,info}]}, {loopback_users,[<<"guest">>]}, {memory_monitor_interval,2500}, {mirroring_flow_control,true}, {mirroring_sync_batch_size,4096}, {mnesia_table_loading_retry_limit,10}, {mnesia_table_loading_retry_timeout,30000}, {msg_store_credit_disc_bound,{4000,800}}, {msg_store_file_size_limit,16777216}, {msg_store_index_module,rabbit_msg_store_ets_index}, {msg_store_io_batch_size,4096}, {num_ssl_acceptors,1}, {num_tcp_acceptors,10}, {password_hashing_module,rabbit_password_hashing_sha256}, {plugins_dir, "/usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.9/plugins"}, {plugins_expand_dir, "/var/lib/rabbitmq/mnesia/rabbit@chipp-plugins-expand"},
{queue_explicit_gc_run_operation_threshold,1000}, {queue_index_embed_msgs_below,4096}, {queue_index_max_journal_entries,32768}, {reverse_dns_lookups,false}, {sasl_error_logger,{file,"/var/log/rabbitmq/rabbit@chipp-sasl.log"}},
{server_properties,[]}, {ssl_allow_poodle_attack,false}, {ssl_apps,[asn1,crypto,public_key,ssl]}, {ssl_cert_login_from,distinguished_name}, {ssl_handshake_timeout,5000}, {ssl_listeners,[]}, {ssl_options,[]}, {tcp_listen_options, [{backlog,4096}, {nodelay,true}, {linger,{true,0}}, {exit_on_close,false}, {sndbuf,196608}, {recbuf,196608}]}, {tcp_listeners,[{"192.168.1.224",5672}]}, {trace_vhosts,[]}, {vm_memory_high_watermark,0.6}, {vm_memory_high_watermark_paging_ratio,0.3}]}, {rabbit_common,[]}, {rabbitmq_management, [{cors_allow_origins,[]}, {cors_max_age,1800}, {http_log_dir,none}, {listener,[{port,15672}]}, {load_definitions,none}, {management_db_cache_multiplier,5}, {process_stats_gc_timeout,300000}, {stats_event_max_backlog,250}]}, {rabbitmq_management_agent, [{rates_mode,basic}, {sample_retention_policies, [{global,[{605,5},{3660,60},{29400,600},{86400,1800}]}, {basic,[{605,5},{3600,60}]}, {detailed,[{605,5}]}]}]}, {rabbitmq_web_dispatch,[]}, {ranch,[]}, {sasl,[{errlog_type,error},{sasl_error_logger,false}]}, {ssl,[]}, {stdlib,[]}, {syntax_tools,[]}, {xmerl,[]}]
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
…os:cmd/1 is used to retrieve system-wide information such as total amountof memory available, free disk space, and so on.I wonder if there can be a kernel or SELinux limit that can be reached by such childprocesses every so often?
On Tue, Jun 13, 2017 at 6:10 PM, <dfed...@pivotal.io> wrote:
erl_crash.dump slogan is erl_child_setup closed. erl_child_setup is a process, that sets up an external port program, for example during os:cmd. The process can be killed by the kernel (e.g. OOM killer). Can you check in system logs if erl_child_setup was killed?
On Tuesday, 13 June 2017 14:46:55 UTC+1, Nilo Menezes wrote:These settings seems to be correct. The server runs sometimes a week without any problems.I attached a screenshot of the admin interface with the limits.It is really hard for me too. Nothing suspicius in the log :-( It just stops with the segmentation fault.Best Regards,Nilo Menezes
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.