Last active
June 20, 2019 14:57
-
-
Save dosaboy/c3a85a44a19ccefa513602c5e0daded0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://erlang.org/doc/man/erlang.html#system_info-1 | |
flags=( | |
allocated_areas | |
allocator | |
alloc_util_allocators | |
allocator_sizes | |
elib_malloc | |
cpu_topology | |
logical_processors | |
update_cpu_info | |
fullsweep_after | |
garbage_collection | |
heap_sizes | |
heap_type | |
max_heap_size | |
message_queue_data | |
min_heap_size | |
min_bin_vheap_size | |
procs | |
atom_count | |
atom_limit | |
ets_count | |
ets_limit | |
port_count | |
port_limit | |
process_count | |
process_limit | |
end_time | |
os_monotonic_time_source | |
os_system_time_source | |
start_time | |
time_correction | |
time_offset | |
time_warp_mode | |
tolerant_timeofday | |
dirty_cpu_schedulers | |
dirty_cpu_schedulers_online | |
dirty_io_schedulers | |
multi_scheduling | |
multi_scheduling_blockers | |
normal_multi_scheduling_blockers | |
scheduler_bind_type | |
scheduler_bindings | |
scheduler_id | |
schedulers | |
smp_support | |
threads | |
thread_pool_size | |
creation | |
delayed_node_table_gc | |
dist | |
dist_buf_busy_limit | |
dist_ctrl | |
build_type | |
c_compiler_used | |
check_io | |
compat_rel | |
debug_compiled | |
driver_version | |
dynamic_trace | |
dynamic_trace_probes | |
info | |
kernel_poll | |
loaded | |
machine | |
modified_timing_level | |
nif_version | |
otp_release | |
port_parallelism | |
system_architecture | |
system_logger | |
system_version | |
trace_control_word | |
version | |
wordsize | |
) | |
cmd= | |
for f in ${flags[@]}; do | |
cmd+="\"== $f:\". erlang:system_info($f). " | |
done | |
echo "$cmd" | erl -sname tester -setcookie $(cat /var/lib/rabbitmq/.erlang.cookie) -remsh rabbit@$(hostname) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment