Score:0

MariaDB ใช้หน่วยความจำมากกว่าที่ควร

ธง sa

เรากำลังใช้ MariaDB 10.3.32 บนเครื่อง Ubuntu 20.04.4 ที่มีหน่วยความจำ 6 GB ซึ่งมีแอปพลิเคชันประมาณ 20 แอปพลิเคชันทำงานอยู่ ฐานข้อมูลเป็น InnoDB ทั้งหมด

แม้จะมีการตั้งค่าเริ่มต้นเป็นส่วนใหญ่ (ดูที่ด้านล่าง) การใช้งานหน่วยความจำเพิ่มขึ้นทุกวัน ดูเหมือนจะไม่หยุดนิ่ง หลังจากผ่านไปประมาณหนึ่งเดือน OOM killer ก็เริ่มทำงานของมัน

ตามคำสั่ง SQL นี้ การใช้หน่วยความจำสูงสุดควรอยู่ที่ประมาณ 600 MB ฉันรู้ว่าการคำนวณเหล่านี้ไม่ถูกต้อง แต่แม้หลังจากรีสตาร์ทเซิร์ฟเวอร์เมื่อวานนี้ การใช้งานหน่วยความจำอยู่ที่ 1,6 GB แล้ว (ประมาณ 200 MB เมื่อเริ่มต้น)

เลือกรอบ(
  ( @@GLOBAL.key_buffer_size                     
   + @@GLOBAL.query_cache_size 
   + @@GLOBAL.tmp_table_size 
   + @@GLOBAL.innodb_buffer_pool_size 
   + @@GLOBAL.innodb_log_buffer_size 
   + @@GLOBAL.max_connections * ( 
       @@GLOBAL.sort_buffer_size
     + @@GLOBAL.read_buffer_size 
     + @@GLOBAL.read_rnd_buffer_size 
     + @@GLOBAL.join_buffer_size 
     + @@GLOBAL.thread_stack 
     + @@GLOBAL.binlog_cache_size)
  ) / 1024 / 1024, 1) `MB ทั้งหมด`;

ฉันพลาดอะไรไปที่นี่?

แสดงตัวแปร;

alter_algorithm=ค่าเริ่มต้น
aria_block_size=8192
aria_checkpoint_interval=30
aria_checkpoint_log_activity=1048576
aria_encrypt_tables=ปิด
aria_force_start_after_recovery_failures=0
aria_group_commit=ไม่มี
aria_group_commit_interval=0
aria_log_file_size=1073741824
aria_log_purge_type=ทันที
aria_max_sort_file_size=9223372036853727232
aria_page_checksum=เปิด
aria_pagecache_age_threshold=300
aria_pagecache_buffer_size=134217728
aria_pagecache_division_limit=100
aria_pagecache_file_hash_size=512
aria_recover_options=สำรองข้อมูลด่วน
aria_repair_threads=1
aria_sort_buffer_size=268434432
aria_stats_method=nulls_unequal
aria_sync_log_dir=NEWFILE
aria_used_for_temp_tables=เปิด
auto_increment_increment=1
auto_increment_offset=1
คอมมิชชันอัตโนมัติ = เปิด
automatic_sp_privileges=เปิด
back_log=80
basedir=/usr
big_tables=ปิด
bind_address=::ffff:127.0.0.1
binlog_annotate_row_events=เปิด
binlog_cache_size=32768
binlog_checksum=CRC32
binlog_commit_wait_count=0
binlog_commit_wait_usec=100000
binlog_direct_non_transactional_updates=ปิด
binlog_file_cache_size=16384
binlog_format=ผสม
binlog_optimize_thread_scheduling=เปิด
binlog_row_image=เต็ม
binlog_stmt_cache_size=32768
bulk_insert_buffer_size=8388608
character_set_client=utf8mb4
character_set_connection=utf8mb4
character_set_database=utf8
character_set_filesystem=ไบนารี
character_set_results=utf8mb4
character_set_server=utf8mb4
character_set_system=utf8
character_sets_dir=/usr/share/mysql/charsets/
check_constraint_checks=เปิด
collation_connection=utf8mb4_general_ci
collation_database=utf8_general_ci
collation_server=utf8mb4_general_ci
column_compression_threshold=100
column_compression_zlib_level=6
column_compression_zlib_strategy=DEFAULT_STRATEGY
column_compression_zlib_wrap=ปิด
Complete_type=NO_CHAIN
concurrent_insert=อัตโนมัติ
connect_timeout=10
core_file=ปิด
datadir=/var/lib/mysql/
date_format=%Y-%m-%d
datetime_format=%Y-%m-%d %H:%i:%s
การล็อกตาย_การค้นหา_ความลึก_ยาว=15
การล็อกตาย_การค้นหา_ความลึก_สั้น=4
การล็อกตาย_timeout_long=50000000
deadlock_timeout_short=10,000
debug_no_thread_alarm=ปิด
default_master_connection=
default_regex_flags=
default_storage_engine=InnoDB
default_tmp_storage_engine=
default_week_format=0
delay_key_write=เปิด
ล่าช้า_insert_limit=100
ล่าช้า_insert_timeout=300
ล่าช้า_queue_size=1,000
div_precision_increment=4
encrypt_binlog=ปิด
encrypt_tmp_disk_tables=ปิด
encrypt_tmp_files=ปิด
บังคับใช้_storage_engine=
eq_range_index_dive_limit=0
error_count=0
event_scheduler=ปิด
แพง_subquery_limit=100
expier_logs_days=10
explicit_defaults_for_timestamp=ปิด
external_user=
extra_max_connections=1
extra_port=0
ล้าง=ปิด
flush_time=0
foreign_key_checks=เปิด
ft_boolean_syntax=+ -><()~*:""&|
ft_max_word_len=84
ft_min_word_len=4
ft_query_expansion_limit=20
ft_stopword_file=(ในตัว)
general_log=ปิด
general_log_file=samson.log
group_concat_max_len=1048576
gtid_binlog_pos=
gtid_binlog_state=
gtid_current_pos=
gtid_domain_id=0
gtid_ignore_duplicates=ปิด
gtid_pos_auto_engines=
gtid_seq_no=0
gtid_slave_pos=
gtid_strict_mode=ปิด
have_compress=ใช่
have_crypt=ใช่
have_dynamic_loading=ใช่
have_geometry=ใช่
have_openssl=ไม่
have_profiling=ใช่
have_query_cache=ใช่
have_rtree_keys=ใช่
have_ssl=ปิดใช้งาน
have_symlink=ใช่
ฮิสโตแกรม_ขนาด=0
histogram_type=SINGLE_PREC_HB
host_cache_size=279
ชื่อโฮสต์=samson.company.com
ตัวตน=0
idle_readonly_transaction_timeout=0
idle_transaction_timeout=0
idle_write_transaction_timeout=0
เพิกเฉยต่อ_buildin_innodb=ปิด
ละเว้น_db_dirs=
in_predicate_conversion_threshold=1,000
in_transaction=0
init_connect=
init_file=
init_slave=
innodb_adaptive_flushing=เปิด
innodb_adaptive_flushing_lwm=10.000000
innodb_adaptive_hash_index=เปิด
innodb_adaptive_hash_index_parts=8
innodb_adaptive_max_sleep_delay=150000
innodb_autoextend_increment=64
innodb_autoinc_lock_mode=1
innodb_background_scrub_data_check_interval=3600
innodb_background_scrub_data_compressed=ปิด
innodb_background_scrub_data_interval=604800
innodb_background_scrub_data_uncompressed=OFF
innodb_buf_dump_status_frequency=0
innodb_buffer_pool_chunk_size=134217728
innodb_buffer_pool_dump_at_shutdown=เปิด
innodb_buffer_pool_dump_now=ปิด
innodb_buffer_pool_dump_pct=25
innodb_buffer_pool_filename=ib_buffer_pool
innodb_buffer_pool_instances=1
innodb_buffer_pool_load_abort=ปิด
innodb_buffer_pool_load_at_startup=เปิด
innodb_buffer_pool_load_now=ปิด
innodb_buffer_pool_size=134217728
innodb_change_buffer_max_size=25
innodb_change_buffering=ทั้งหมด
innodb_checksum_algorithm=crc32
innodb_checksums=เปิด
innodb_cmp_per_index_enabled=ปิด
innodb_commit_concurrency=0
innodb_compression_algorithm=zlib
innodb_compression_default=ปิด
innodb_compression_failure_threshold_pct=5
innodb_compression_level=6
innodb_compression_pad_pct_max=50
innodb_concurrency_tickets=5,000
innodb_data_file_path=ibdata1:12M:ขยายอัตโนมัติ
innodb_data_home_dir=
innodb_deadlock_detect=เปิด
innodb_default_encryption_key_id=1
innodb_default_row_format=ไดนามิก
innodb_defragment=ปิด
innodb_defragment_fill_factor=0.900000
innodb_defragment_fill_factor_n_recs=20
innodb_defragment_frequency=40
innodb_defragment_n_pages=7
innodb_defragment_stats_accuracy=0
innodb_disable_sort_file_cache=ปิด
innodb_disallow_writes=ปิด
innodb_doublewrite=เปิด
innodb_encrypt_log=ปิด
innodb_encrypt_tables=ปิด
innodb_encrypt_temporary_tables=ปิด
innodb_encryption_rotate_key_age=1
innodb_encryption_rotation_iops=100
innodb_encryption_threads=0
innodb_fast_shutdown=1
innodb_fatal_semaphore_wait_threshold=600
innodb_file_format=
innodb_file_per_table=เปิด
innodb_fill_factor=100
innodb_flush_log_at_timeout=1
innodb_flush_log_at_trx_commit=1
innodb_flush_method=fsync
innodb_flush_neighbors=1
innodb_flush_sync=เปิด
innodb_flushing_avg_loops=30
innodb_force_load_corrupted=ปิด
innodb_force_primary_key=ปิด
innodb_force_recovery=0
innodb_ft_aux_table=
innodb_ft_cache_size=8000000
innodb_ft_enable_diag_print=ปิด
innodb_ft_enable_stopword=เปิด
innodb_ft_max_token_size=84
innodb_ft_min_token_size=3
innodb_ft_num_word_optimize=2000
innodb_ft_result_cache_limit=2000000000
innodb_ft_server_stopword_table=
innodb_ft_sort_pll_degree=2
innodb_ft_total_cache_size=640000000
innodb_ft_user_stopword_table=
innodb_idle_flush_pct=100
innodb_immediate_scrub_data_uncompressed=ปิด
innodb_instant_alter_column_allowed=add_last
innodb_io_capacity=200
innodb_io_capacity_max=2000
innodb_large_prefix=
innodb_lock_schedule_algorithm=fcfs
innodb_lock_wait_timeout=50
innodb_locks_unsafe_for_binlog=ปิด
innodb_log_buffer_size=16777216
innodb_log_checksums=เปิด
innodb_log_compressed_pages=เปิด
innodb_log_file_size=50331648
innodb_log_files_in_group=2
innodb_log_group_home_dir=./
innodb_log_optimize_ddl=ปิด
innodb_log_write_ahead_size=8192
innodb_lru_scan_ความลึก=1024
innodb_max_dirty_pages_pct=75.000000
innodb_max_dirty_pages_pct_lwm=0.000000
innodb_max_purge_lag=0
innodb_max_purge_lag_delay=0
innodb_max_purge_lag_wait=4294967295
innodb_max_undo_log_size=10485760
innodb_monitor_disable=
innodb_monitor_enable=
innodb_monitor_reset=
innodb_monitor_reset_all=
innodb_old_blocks_pct=37
innodb_old_blocks_time=1,000
innodb_online_alter_log_max_size=134217728
innodb_open_files=2000
innodb_optimize_fulltext_only=ปิด
innodb_page_cleaners=1
innodb_page_size=16384
innodb_prefix_index_cluster_optimization=ปิด
innodb_print_all_deadlocks=ปิด
innodb_purge_batch_size=300
innodb_purge_rseg_truncate_frequency=128
innodb_purge_threads=4
innodb_random_read_ahead=ปิด
innodb_read_ahead_threshold=56
innodb_read_io_threads=4
innodb_read_only=ปิด
innodb_replication_delay=0
innodb_rollback_on_timeout=ปิด
innodb_rollback_segments=128
innodb_scrub_log=ปิด
innodb_scrub_log_speed=256
innodb_sort_buffer_size=1048576
innodb_spin_wait_delay=4
innodb_stats_auto_recalc=เปิด
innodb_stats_include_delete_marked=ปิด
innodb_stats_method=nulls_equal
innodb_stats_modified_counter=0
innodb_stats_on_metadata=ปิด
innodb_stats_persistent=เปิด
innodb_stats_persistent_sample_pages=20
innodb_stats_sample_pages=8
innodb_stats_traditional=เปิด
innodb_stats_transient_sample_pages=8
innodb_status_output=ปิด
innodb_status_output_locks=ปิด
innodb_strict_mode=เปิด
innodb_sync_array_size=1
innodb_sync_spin_loops=30
innodb_table_locks=เปิด
innodb_temp_data_file_path=ibtmp1:12M:ขยายอัตโนมัติ
innodb_thread_concurrency=0
innodb_thread_sleep_delay=10,000
innodb_tmpdir=
innodb_undo_directory=./
innodb_undo_log_truncate=ปิด
innodb_undo_logs=128
innodb_undo_tablespaces=0
innodb_use_atomic_writes=เปิด
innodb_use_native_aio=เปิด
innodb_version=10.3.32
innodb_write_io_threads=4
insert_id=0
interactive_timeout=28800
join_buffer_size=262144
join_buffer_space_limit=2097152
join_cache_level=2
keep_files_on_create=ปิด
key_buffer_size=65536
key_cache_age_threshold=300
key_cache_block_size=1024
key_cache_division_limit=100
key_cache_file_hash_size=512
key_cache_segments=0
large_files_support=เปิด
large_page_size=0
large_pages=ปิด
last_gtid=
last_insert_id=0
lc_messages=en_US
lc_messages_dir=/usr/share/mysql
lc_time_names=en_US
ใบอนุญาต = GPL
local_infile=ปิด
lock_wait_timeout=86400
lock_in_memory=ปิด
log_bin=ปิด
log_bin_basename=
log_bin_compress=ปิด
log_bin_compress_min_len=256
log_bin_index=
log_bin_trust_function_creators=ปิด
log_disabled_statements=sp
log_error=/var/log/mysql/error.log
log_output=ไฟล์
log_queries_not_using_indexes=ปิด
log_slave_updates=ปิด
log_slow_admin_statements=เปิด
log_slow_disabled_statements=sp
log_slow_filter=admin,filesort,filesort_on_disk,filesort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
log_slow_rate_limit=1
log_slow_slave_statements=เปิด
log_slow_verbosity=
log_tc_size=24576
log_warnings=2
long_query_time=10.000000
low_priority_updates=ปิด
lower_case_file_system=ปิด
lower_case_table_names=0
master_verify_checksum=ปิด
max_allowed_packet=67108864
max_binlog_cache_size=18446744073709547520
max_binlog_size=1073741824
max_binlog_stmt_cache_size=18446744073709547520
max_connect_errors=100
max_connections=151
max_delayed_threads=20
max_digest_length=1024
max_error_count=64
max_heap_table_size=16777216
max_insert_delayed_threads=20
max_join_size=18446744073709551615
max_length_for_sort_data=1024
max_long_data_size=67108864
max_prepared_stmt_count=16382
max_recursive_iterations=4294967295
max_relay_log_size=1073741824
max_seeks_for_key=4294967295
max_session_mem_used=9223372036854775807
max_sort_length=1024
max_sp_recursion_ความลึก=0
max_statement_time=0.000000
max_tmp_tables=32
max_user_connections=0
max_write_lock_count=4294967295
metadata_locks_cache_size=1024
metadata_locks_hash_instances=8
min_examined_row_limit=0
mrr_buffer_size=262144
multi_range_count=256
myisam_block_size=1024
myisam_data_pointer_size=6
myisam_max_sort_file_size=9223372036853727232
myisam_mmap_size=18446744073709551615
myisam_recover_options=สำรองข้อมูลด่วน
myisam_repair_threads=1
myisam_sort_buffer_size=134216704
myisam_stats_method=NULLS_UNEQUAL
myisam_use_mmap=ปิด
mysql56_temporal_format=เปิด
net_buffer_length=16384
net_read_timeout=30
net_retry_count=10
net_write_timeout=60
เก่า=ปิด
old_alter_table=ค่าเริ่มต้น
old_mode=
old_passwords=ปิด
open_files_limit=32186
Optimizer_prune_level=1
เครื่องมือเพิ่มประสิทธิภาพ_search_ความลึก=62
Optimizer_selectivity_sampling_limit=100
optimizer_switch=index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on, เข้า เปิด,optimize_join_buffer_size=ปิด,table_elimination=เปิด,extended_keys=เปิด,exists_to_in=เปิด,orderby_uses_equalities=เปิด,condition_pushdown_for_derived=เปิด,split_materialized=เปิด
Optimizer_use_condition_selectivity=1
performance_schema=ปิด
performance_schema_accounts_size=-1
performance_schema_digests_size=-1
performance_schema_events_stages_history_long_size=-1
performance_schema_events_stages_history_size=-1
performance_schema_events_statements_history_long_size=-1
performance_schema_events_statements_history_size=-1
performance_schema_events_waits_history_long_size=-1
performance_schema_events_waits_history_size=-1
performance_schema_hosts_size=-1
performance_schema_max_cond_classes=80
performance_schema_max_cond_instances=-1
performance_schema_max_digest_length=1024
performance_schema_max_file_classes=50
performance_schema_max_file_handles=32768
performance_schema_max_file_instances=-1
performance_schema_max_mutex_classes=200
performance_schema_max_mutex_instances=-1
performance_schema_max_rwlock_classes=40
performance_schema_max_rwlock_instances=-1
performance_schema_max_socket_classes=10
performance_schema_max_socket_instances=-1
performance_schema_max_stage_classes=160
performance_schema_max_statement_classes=200
performance_schema_max_table_handles=-1
performance_schema_max_table_instances=-1
performance_schema_max_thread_classes=50
performance_schema_max_thread_instances=-1
performance_schema_session_connect_attrs_size=-1
performance_schema_setup_actors_size=100
performance_schema_setup_objects_size=100
performance_schema_users_size=-1
pid_file=/run/mysqld/mysqld.pid
plugin_dir=/usr/lib/x86_64-linux-gnu/mariadb19/plugin/
plugin_maturity=แกมมา
พอร์ต = 3306
preload_buffer_size=32768
การทำโปรไฟล์=ปิด
profiling_history_size=15
progress_report_time=5
protocol_version=10
proxy_protocol_networks=
proxy_user=
pseudo_slave_mode=ปิด
pseudo_thread_id=97113
query_alloc_block_size=16384
query_cache_limit=1048576
query_cache_min_res_unit=4096
query_cache_size=0
query_cache_strip_comments=ปิด
query_cache_type=ปิด
query_cache_wlock_invalidate=ปิด
query_prealloc_size=24576
rand_seed1=158762979
rand_seed2=20392611
range_alloc_block_size=4096
read_binlog_speed_limit=0
read_buffer_size=131072
read_only=ปิด
read_rnd_buffer_size=262144
รีเลย์_ล็อก=
relay_log_basename=
relay_log_index=
relay_log_info_file=รีเลย์-log.info
relay_log_purge=เปิด
relay_log_recovery=ปิด
relay_log_space_limit=0
ทำซ้ำ_annotate_row_events=เปิด
ทำซ้ำ_do_db=
ทำซ้ำ_do_table=
Replicate_events_marked_for_skip=REPLICATE
ทำซ้ำ_ignore_db=
ทำซ้ำ_ignore_table=
ทำซ้ำ_wild_do_table=
ทำซ้ำ_wild_ignore_table=
รายงาน_โฮสต์=
รายงาน_รหัสผ่าน=
รายงาน_พอร์ต=3306
report_user=
rowid_merge_buff_size=8388608
rpl_semi_sync_master_enabled=ปิด
rpl_semi_sync_master_timeout=10000
rpl_semi_sync_master_trace_level=32
rpl_semi_sync_master_wait_no_slave=เปิด
rpl_semi_sync_master_wait_point=AFTER_COMMIT
rpl_semi_sync_slave_delay_master=ปิด
rpl_semi_sync_slave_enabled=ปิด
rpl_semi_sync_slave_kill_conn_timeout=5
rpl_semi_sync_slave_trace_level=32
secure_auth=เปิด
secure_file_priv=
secure_timestamp=ไม่
server_id=1
session_track_schema=เปิด
session_track_state_change=ปิด
session_track_system_variables=คอมมิตอัตโนมัติ, character_set_client, character_set_connection, character_set_results, time_zone
session_track_transaction_info=ปิด
skip_external_locking=เปิด
skip_name_resolve=ปิด
skip_networking=ปิด
skip_parallel_replication=ปิด
skip_replication=ปิด
skip_show_database=ปิด
slave_compressed_protocol=ปิด
slave_ddl_exec_mode=IDEMPOTENT
slave_domain_parallel_threads=0
slave_exec_mode=เข้มงวด
slave_load_tmpdir=/tmp
slave_max_allowed_packet=1073741824
slave_net_timeout=60
slave_parallel_max_queued=131072
slave_parallel_mode=อนุรักษ์นิยม
slave_parallel_threads=0
slave_parallel_workers=0
slave_run_triggers_for_rbr=ไม่
slave_skip_errors=ปิด
slave_sql_verify_checksum=เปิด
slave_transaction_retries=10
slave_transaction_retry_errors=1213,1205
slave_transaction_retry_interval=0
slave_type_conversions=
slow_launch_time=2
slow_query_log=ปิด
slow_query_log_file=samson-slow.log
socket=/run/mysqld/mysqld.sock
sort_buffer_size=2097152
sql_auto_is_null=ปิด
sql_big_selects=เปิด
sql_buffer_result=ปิด
sql_log_bin=เปิด
sql_log_off=ปิด
sql_mode=ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
sql_notes=เปิด
sql_quote_show_create=เปิด
sql_safe_updates=ปิด
sql_select_limit=18446744073709551615
sql_slave_skip_counter=0
sql_warnings=ปิด
ssl_ca=
ssl_capath=
ssl_cert=
ssl_cipher=
ssl_crl=
ssl_crlpath=
ssl_key=
standard_compliant_cte=เปิด
storage_engine=InnoDB
storage_program_cache=256
เข้มงวด_รหัสผ่าน_การตรวจสอบ=เปิด
sync_binlog=0
sync_frm=เปิด
sync_master_info=10,000
sync_relay_log=10,000
sync_relay_log_info=10000
system_time_zone=CET
system_versioning_alter_history=ข้อผิดพลาด
system_versioning_asof=DEFAULT
table_definition_cache=400
table_open_cache=2000
table_open_cache_instances=8
tcp_keepalive_interval=0
tcp_keepalive_probes=0
tcp_keepalive_time=0
thread_cache_size=151
thread_concurrency=10
thread_handling=หนึ่งเธรดต่อการเชื่อมต่อ
thread_pool_idle_timeout=60
thread_pool_max_threads=65536
thread_pool_oversubscribe=3
thread_pool_prio_kickup_timer=1000
thread_pool_priority=อัตโนมัติ
thread_pool_size=4
thread_pool_stall_limit=500
thread_stack=299008
time_format=%H:%i:%s
time_zone=ระบบ
timed_mutexes=ปิด
การประทับเวลา=1646638900.010190
tmp_disk_table_size=18446744073709551615
tmp_memory_table_size=16777216
tmp_table_size=16777216
tmpdir=/tmp
transaction_alloc_block_size=8192
transaction_prealloc_size=4096
tx_isolation=อ่านซ้ำได้
tx_read_only=ปิด
unique_checks=เปิด
updatetable_views_with_limit=ใช่
use_stat_tables=ไม่เคย
userstat=ปิด
รุ่น = 10.3.32-MariaDB-0ubuntu0.20.04.1
version_comment=อูบุนตู 20.04
version_compile_machine=x86_64
version_compile_os=debian-linux-gnu
version_malloc_library=ระบบ
version_source_revision=a2f147af35480e27bd599462db59b9b95f71acd9
version_ssl_library=YaSSL 2.4.4
wait_timeout=28800
คำเตือน_count=0
wsrep_osu_method=TOI
wsrep_auto_increment_control=เปิด
wsrep_causal_reads=ปิด
wsrep_certification_rules=เข้มงวด
wsrep_certify_nonpk=เปิด
wsrep_cluster_address=
wsrep_cluster_name=my_wsrep_cluster
wsrep_convert_lock_to_trx=ปิด
wsrep_data_home_dir=/var/lib/mysql/
wsrep_dbug_option=
wsrep_debug=ปิด
wsrep_desync=ปิด
wsrep_dirty_reads=ปิด
wsrep_drupal_282555_workaround=ปิด
wsrep_forced_binlog_format=ไม่มี
wsrep_gtid_domain_id=0
wsrep_gtid_mode=ปิด
wsrep_load_data_splitting=เปิด
wsrep_log_conflicts=ปิด
wsrep_max_ws_rows=0
wsrep_max_ws_size=2147483647
wsrep_mysql_replication_bundle=0
wsrep_node_address=
wsrep_node_incoming_address=อัตโนมัติ
wsrep_node_name=samson.company.com
wsrep_notify_cmd=
wsrep_on=ปิด
wsrep_patch_version=wsrep_25.24
wsrep_provider=ไม่มี
wsrep_provider_options=
wsrep_recover=ปิด
wsrep_reject_queries=ไม่มี
wsrep_replicate_myisam=ปิด
wsrep_restart_slave=ปิด
wsrep_retry_autocommit=1
wsrep_slave_fk_checks=เปิด
wsrep_slave_uk_checks=ปิด
wsrep_slave_threads=1
wsrep_sst_auth=
wsrep_sst_donor=
wsrep_sst_donor_rejects_queries=ปิด
wsrep_sst_method=rsync
wsrep_sst_receive_address=อัตโนมัติ
wsrep_start_position=00000000-0000-0000-0000-000000000000:-1
wsrep_sync_wait=0

แสดงสถานะทั่วโลก

แสดงสถานะ INNODB ของเครื่องยนต์

=====================================
2022-03-07 10:41:32 0x7f9b94576700 INNODB MONITOR OUTPUT
=====================================
ค่าเฉลี่ยต่อวินาทีคำนวณจาก 45 วินาทีที่ผ่านมา
-----------------
กระทู้พื้นหลัง
-----------------
srv_master_thread ลูป: 92093 srv_active, 0 srv_shutdown, 73474 srv_idle
srv_master_thread บันทึกฟลัชและเขียน: 165567
----------
เซมาฟอร์
----------
OS WAIT ARRAY INFO: จำนวนการจอง 70036135
OS WAIT ARRAY INFO: จำนวนสัญญาณ 41866295
RW-shared สปิน 6620911, รอบ 67614112, OS รอ 937873
RW-excl หมุน 763078 รอบ 9241292 ระบบปฏิบัติการรอ 212931
RW-sx หมุน 47981 รอบ 864436 OS รอ 19051
รอบการหมุนต่อการรอ: 10.21 RW-shared, 12.11 RW-excl, 18.02 RW-sx
------------
ธุรกรรม
------------
Trx ID เคาน์เตอร์ 310769191
ล้างข้อมูลเสร็จสิ้นสำหรับ n:o < 310769191 ของ trx undo n:o < 0 state: ทำงาน แต่ไม่ได้ใช้งาน
ประวัติรายการความยาว 0
รายการธุรกรรมสำหรับแต่ละเซสชัน:
---TRANSACTION 421781198373368 ยังไม่เริ่ม
ตาราง mysql ที่ใช้งาน 2 ล็อค 0
0 โครงสร้างล็อค ขนาดฮีป 1128 ล็อค 0 แถว
---TRANSACTION 421781198369192 ยังไม่เริ่ม
ตาราง mysql ใช้งาน 1 ล็อค 0
0 โครงสร้างล็อค ขนาดฮีป 1128 ล็อค 0 แถว
---TRANSACTION 421781198360840 ยังไม่เริ่ม
0 โครงสร้างล็อค ขนาดฮีป 1128 ล็อค 0 แถว
---TRANSACTION 421781198352488 ยังไม่เริ่ม
0 โครงสร้างล็อค ขนาดฮีป 1128 ล็อค 0 แถว
--------
ไฟล์ I/O
--------
สถานะเธรด I/O 0: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (แทรกเธรดบัฟเฟอร์)
สถานะเธรด I/O 1: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (ล็อกเธรด)
สถานะเธรด I/O 2: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (อ่านเธรด)
สถานะเธรด I/O 3: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (อ่านเธรด)
สถานะเธรด I/O 4: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (อ่านเธรด)
สถานะเธรด I/O 5: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (อ่านเธรด)
สถานะเธรด I/O 6: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (เขียนเธรด)
สถานะเธรด I/O 7: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (เขียนเธรด)
สถานะเธรด I/O 8: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (เขียนเธรด)
สถานะเธรด I/O 9: กำลังรอคำขอ aio ที่เสร็จสมบูรณ์ (เขียนเธรด)
รออ่าน aio ปกติ: [0, 0, 0, 0] , aio เขียน: [0, 0, 0, 0] ,
 ibuf aio อ่าน:, บันทึก i/o's:, ซิงค์ i/o's:
บันทึกการล้าง (fsync) ที่รอดำเนินการ: 0; บัฟเฟอร์พูล: 0
57840777 อ่านไฟล์ OS, 85219586 เขียนไฟล์ OS, 48638891 OS fsyncs
776.40 อ่าน/วินาที, 16384 เฉลี่ยไบต์/อ่าน, 74.24 เขียน/วินาที, 21.80 fsyncs/วินาที
-------------------------------------
แทรกบัฟเฟอร์และดัชนีแฮชที่ปรับเปลี่ยนได้
-------------------------------------
Ibuf: ขนาด 1, รายการฟรี len 3093, ขนาด seg 3095, 1230040 การผสาน
การดำเนินการที่ผสาน:
 ใส่ 361053 ลบเครื่องหมาย 3219714 ลบ 84980
การดำเนินการที่ถูกยกเลิก:
 ใส่ 0 ลบเครื่องหมาย 0 ลบ 0
ตารางแฮชขนาด 34679 โหนดฮีปมี 9 บัฟเฟอร์
ตารางแฮชขนาด 34679 โหนดฮีปมี 43 บัฟเฟอร์
ตารางแฮชขนาด 34679 โหนดฮีปมีบัฟเฟอร์ 230
ตารางแฮชขนาด 34679 โหนดฮีปมี 24 บัฟเฟอร์
ตารางแฮชขนาด 34679 โหนดฮีปมี 20 บัฟเฟอร์
ตารางแฮชขนาด 34679 โหนดฮีปมี 24 บัฟเฟอร์
ตารางแฮชขนาด 34679 โหนดฮีปมีบัฟเฟอร์ 218
ตารางแฮชขนาด 34679 โหนดฮีปมี 18 บัฟเฟอร์
280073.24 การค้นหาแบบแฮช/วินาที, 32402.72 การค้นหาแบบไม่แฮช/วินาที
---
บันทึก
---
บันทึกลำดับหมายเลข 634119972911
บันทึกล้างถึง 634119972851
หน้าล้างถึง 634119953306
ด่านสุดท้ายที่ 634119946466
0 บันทึกที่รอดำเนินการ flushes, 0 chkp ที่รอการเขียน
41824871 บันทึก i/o เสร็จแล้ว 5.13 บันทึก i/o's/วินาที
----------------------
บัฟเฟอร์พูลและหน่วยความจำ
----------------------
จัดสรรหน่วยความจำขนาดใหญ่ทั้งหมด 170590208
จัดสรรหน่วยความจำพจนานุกรม 4822048
บัฟเฟอร์พูลขนาด 8192
บัฟเฟอร์ฟรี 1021
หน้าฐานข้อมูล 6585
หน้าฐานข้อมูลเก่า 2411
แก้ไขหน้า db 47
เปอร์เซ็นต์ของหน้าสกปรก (LRU & หน้าฟรี): 0.618
เปอร์เซ็นต์หน้าสกปรกสูงสุด: 75.000
รออ่าน 0
รอการเขียน: LRU 0, รายการล้าง 0, หน้าเดียว 0
หน้าทำให้เด็ก 41881503 ไม่ใช่เด็ก 4455855002
173.44 หนุ่ม/วินาที, 18,000.40 คน/วินาที
หน้าที่อ่าน 57821248 สร้าง 1104771 เขียน 42475934
776.40 อ่าน/วินาที, 0.64 สร้าง/วินาที, 66.64 เขียน/วินาที
อัตราบัฟเฟอร์พูล 999/1000 อัตราการสร้างเด็ก 0/1000 ไม่ใช่ 19/1000
การอ่านหน้าล่วงหน้า 0.00/วินาที ลบออกโดยไม่มีการเข้าถึง 0.00/วินาที อ่านแบบสุ่มล่วงหน้า 0.00/วินาที
เลนส์ LRU: 6585, unzip_LRU เลนส์: 0
ผลรวม I/O[43405]:cur[0], เปิดเครื่องรูดผลรวม[0]:cur[0]
--------------
การดำเนินการแถว
--------------
0 ข้อความค้นหาภายใน InnoDB, 0 ข้อความค้นหาในคิว
0 มุมมองการอ่านเปิดขึ้นภายใน InnoDB
Process ID=3623495, Main thread ID=140305681893120, state: sleep
จำนวนแถวที่แทรก 749019 อัปเดต 1991576 ลบ 39997045 อ่าน 8188912012
5.38 แทรก/วินาที, อัปเดต 1.82 ครั้ง/วินาที, ลบ 2.53 ครั้ง/วินาที, อ่าน 293414.08 ครั้ง/วินาที
จำนวนแถวของระบบที่แทรก 0 อัปเดต 0 ลบ 0 อ่าน 0
0.00 แทรก/วินาที, 0.00 อัปเดต/วินาที, 0.00 ลบ/วินาที, 0.00 อ่าน/วินาที
----------------------------
สิ้นสุด INNODB MONITOR OUTPUT
============================

แก้ไข 1:

หลังจากดำเนินการอีกวัน กระบวนการ mysqld ตอนนี้อยู่ที่ 1,6 GB (RES ตามคำสั่งด้านบน) ข้อมูลเพิ่มเติมตามคำขอ:

แมว /proc/<ID>/สถานะ

แก้ไข 2:

การใช้หน่วยความจำข้ามคืนเพิ่มขึ้นจาก 1,6 GB เป็น 1,8 GB นี่คือหนึ่งบรรทัดที่ยื่นออกมา (สูงกว่า max_memory_used มากกว่า memory_used) จากผลลัพธ์ของ

เลือก db,command,progress,memory_used,max_memory_used,examined_rows จาก INFORMATION_SCHEMA.PROCESSLIST ตามลำดับ max_memory_used desc limit 10;

db;คำสั่ง;ความคืบหน้า;memory_used;max_memory_used;examined_rows
(NULL);Query;0;95384;4253032;0

แต่ดูเหมือนว่านี่เป็นเพียงกระบวนการของฉันที่ใช้สำหรับการค้นหานั้นดูเหมือนว่าปกติ? หากไม่รวมคำค้นหาของฉัน รายการกระบวนการทั้งหมดจะมีเฉพาะ InnoDB purger worker, purge coordinator และตัวจัดการการปิดระบบเมื่อไม่มีใครเข้าถึงข้อมูลใดๆ

Gerrit avatar
cn flag
คำสั่ง SQL สำหรับขนาดของหน่วยความจำอาจไม่รวมหน่วยความจำที่ใช้ในการจำลองแบบ และอาจมองข้ามหน่วยความจำในกลไก aria ถึงกระนั้นก็ตาม VM peak ก็สามารถเพิ่มเป็นสองเท่าได้อย่างง่ายดาย บางทีคุณอาจแชร์บรรทัดหน่วยความจำของ /proc//สถานะ. คุณจะต้องค้นหา pid ของกระบวนการเซิร์ฟเวอร์ mariadb อาจอยู่ใน /var/run/mysqld.
Gerrit avatar
cn flag
คุณลอง `แสดงสถานะโดยรวมเช่น "memory_used"` ได้ไหม
sa flag
ขอบคุณสำหรับการตอบกลับของคุณ. ฉันเพิ่มข้อมูลในโพสต์ต้นฉบับแล้ว!
Gerrit avatar
cn flag
สิ่งใดก็ตามที่กระโดดออกมาใน 'SELECT db,command,progress,memory_used,max_memory_used,examined_rows FROM INFORMATION_SCHEMA.PROCESSLIST ตามลำดับ max_memory_used desc limit 10;' ?
ua flag
เครื่องทำงานอะไรอีกบ้าง? ตัวอย่างเช่น ฉันพบว่า Chrome เติบโตขึ้นประมาณ 1GB ต่อสัปดาห์โดยไม่มีเหตุผลที่ดี
ua flag
`tmp_table_size` อยู่ในรายการที่สอง binlog_cache_size ในครั้งแรก แต่ไม่มีสูตรใดที่ "ถูกต้อง" จริงๆ
sa flag
@Gerrit: ฉันไม่แน่ใจว่ากำลังมองหาอะไร แต่ memory_used และ max_memory_used มีค่าเท่ากันและค่อนข้างต่ำ (
sa flag
@RickJames: เป็นการตั้งค่าแบบไร้หัวที่ค่อนข้างเรียบง่ายด้วย Apache และ PHP-FPM หากฉันเรียงลำดับการใช้งานหน่วยความจำของฉัน รายการที่สองหลังจาก MySQL ใช้เพียง 100 MB (systemd-journal) apache จะทำงานอย่างมีความสุขโดยใช้หน่วยความจำ 25 MB
Gerrit avatar
cn flag
ดูเหมือนว่า mariadb จะรั่วไหลของหน่วยความจำค่อนข้างมากที่นี่ สิ่งที่ฉันสังเกตเห็นจากค่าในสถานะส่วนกลางคือกลุ่ม innodb นั้นเล็กเกินไป มีเพียงส่วนน้อยของ read_requests ของ innodb เท่านั้นที่ให้บริการจากกลุ่ม RAM แบนด์วิธของสตอเรจน่าจะเป็นปัจจัยจำกัดประสิทธิภาพมากที่สุดในตอนนี้
Gerrit avatar
cn flag
สิ่งเดียวกันเกี่ยวกับ aria pagecache มันก็เล็กเกินไปเช่นกัน
Gerrit avatar
cn flag
คำถาม คุณใช้เคอร์เนล openVZ หรือไม่
sa flag
ฉันได้ลองใช้สระ innodb ขนาดอื่นๆ (ล่าสุดและประมาณหนึ่งสัปดาห์: 2 GB) การรั่วไหลยังคงเกิดขึ้น นั่นเป็นเหตุผลที่ฉันรีเซ็ตเป็นค่าเริ่มต้นก่อนที่จะโพสต์ที่นี่ ฉันยินดีที่จะลองค่าอื่นๆ อีกครั้ง หากนั่นสมเหตุสมผลสำหรับการดีบักจุดประสงค์
sa flag
ใช่ นี่เป็น VPS และฉันรู้ว่าผู้ให้บริการโฮสติ้งของเราใช้ Virtuozzo ไม่แน่ใจเกี่ยวกับ OpenVZ: ไม่พบแพ็คเกจที่ติดตั้งเช่น linux-openvz ฉันจะรู้ได้อย่างไรว่ามีอะไรกำลังทำงานอยู่
Gerrit avatar
cn flag
ฉันเห็นสองบรรทัดที่ส่วนท้ายของ /proc//สถานะที่ฉันไม่รู้จัก ดูเหมือนว่าพวกมันเป็นของเมล็ด openVZ และมีบางอย่างที่เกี่ยวข้องกับ MMU ฉันเห็นคอร์ CPU จำนวนมากด้วย ซึ่งจริง ๆ แล้วฉันคิดว่าจะใช้อย่างสมเหตุสมผลมากเกินไป แต่สิ่งที่ MMU ทำให้ฉันคิดว่าอาจมีทรัพยากรฮาร์ดแวร์ MMU ไม่เพียงพอและสิ่งนี้อาจมีบางอย่างที่เกี่ยวข้องกับการรั่วไหลของหน่วยความจำที่กว้างขวาง ใช้สถาปัตยกรรมโปรเซสเซอร์ใด อาจเป็นไปได้ว่า mysql/mariadb ไม่ได้ทดสอบความเครียดโดยนักพัฒนาในสภาพแวดล้อมประเภทนี้
Gerrit avatar
cn flag
เพื่อชี้แจงความคิดเห็นของฉัน ดูเหมือนว่าการจัดสรรหน่วยความจำเสมือนซึ่งโดยปกติจะทำโดยใช้สัญญาซื้อขายล่วงหน้า และสำรองโดยเพจจริงเมื่อใช้งานจริงเท่านั้น จะถูกสำรองโดยเพจจริงบนระบบนี้ทันที Mysql เช่นเดียวกับหลาย ๆ โปรแกรมที่จัดสรรหน่วยความจำเสมือนมากกว่าที่โปรแกรมต้องการในขณะนั้นส่วนหนึ่งเป็นเพราะไลบรารีที่อยู่เบื้องหลัง ส่วนหนึ่งเป็นเพราะตัวโปรแกรมเอง และเป็นเรื่องปกติมากสำหรับโปรแกรม เพราะระบบส่วนใหญ่จัดการกับมันได้ดี
Gerrit avatar
cn flag
มิฉะนั้น หรือการโหลดของคุณไปโดนบั๊กหน่วยความจำรั่วใน mariadb โดยไม่ได้ตั้งใจ แต่เนื่องจากการติดตั้งของคุณดูเกือบจะเป็นมาตรฐานที่ลุ่มๆ ดอนๆ หากมีการรวมหน่วยความจำเล็กน้อย ฉันน่าจะคาดหวังรายงานเพิ่มเติมเกี่ยวกับปัญหาหน่วยความจำเหล่านี้อีกจำนวนมากที่กระทบกระเทือนการติดตั้ง mariadb มันยังคงเป็นไปได้แน่นอน
Gerrit avatar
cn flag
นอกจากนี้ยังอาจเป็นไปได้ว่าตัวดำเนินการของโฮสต์ห้ามการจัดสรรเพจมากเกินไปในเคอร์เนล ซึ่งจะนำไปสู่ปัญหาเดียวกัน แน่นอนว่าทางออกที่ง่ายที่สุดคือรีสตาร์ทบริการฐานข้อมูลทุกคืนหรือในเวลาอื่นที่เหมาะสม อาจไม่น่าพอใจเล็กน้อย แต่อาจทำให้คุณใช้หน่วยความจำไม่เกินขีดจำกัด และคุณสามารถจัดสรรหน่วยความจำเพิ่มเติมให้กับกลุ่ม innodb และ aria ซึ่งมีความสำคัญที่สุด
sa flag
ขอบคุณ @Gerrit สำหรับคำอธิบายที่กว้างขวางของคุณ มันสมเหตุสมผลแล้วเพราะการตั้งค่าของเรานั้นไม่ธรรมดาจริงๆ ฉันจะส่งข้อความถึงผู้ให้บริการโฮสติ้งของเราอย่างแน่นอน พวกเขาค่อนข้างช่ำชองกับสิ่งเหล่านี้และบางทีพวกเขาอาจรู้บางอย่างจากลูกค้ารายอื่นหรือแม้แต่ผู้ให้บริการของพวกเขา จะแจ้งให้คุณทราบหากนำไปสู่สิ่งที่เป็นประโยชน์! ถ้าไม่: รีสตาร์ทหนึ่งครั้งทุกสองสัปดาห์น่าจะเพียงพอ โดยปกติแล้ว OOM killer จะมาเดือนละครั้งหรือหกสัปดาห์ ดังนั้นมันจึงเป็นเรื่องปกติ
Gerrit avatar
cn flag
หากคุณต้องการขุดมากกว่านี้ คุณสามารถทำตาม: https://mariadb.com/kb/en/debugging-memory-usage/ แต่ใน Ubuntu 20 แพ็คเกจคือ `google-perftools` ไลบรารี tcmalloc คือ `/usr/lib/x86_64-linux-gnu/libtcmalloc.so.4` และ pprof คือ `google-pprof` ดูเพิ่มเติมที่ https://jira.mariadb.org/browse/MDEV-25925
sa flag
อีกหนึ่งคำถามเกี่ยวกับ aria_pagecache_buffer_size: ขนาดที่เหมาะสมคือเท่าใด ไม่มีการพูดถึงในเว็บไซต์ที่เป็นประโยชน์นี้ ดังนั้นฉันไม่แน่ใจ: https://mariadb.com/kb/en/mariadb-memory-allocation/
Gerrit avatar
cn flag
จากการตรวจสอบข้อมูลจาก 'สถานะทั่วโลก' อย่างใกล้ชิด ดูเหมือนว่าข้อมูลไม่เหมาะที่จะเก็บในแคชนั้น ยังมีบล็อกที่ไม่ได้ใช้จำนวนมากเหลืออยู่ หากเป็นกรณีนี้หลังจากรันอยู่ระยะหนึ่ง การขยายแคชนี้อาจจะไม่ส่งผลกระทบต่อประสิทธิภาพใดๆ มุ่งไปที่สระว่ายน้ำภายในแล้ว
Score:0
ธง ua

buffer_pool เติบโตจนกว่าจะถึง innodb_buffer_pool_size. นั่นควรเป็นส่วนประกอบที่ใหญ่ที่สุด 128M อาจมีขนาดเล็กที่เป็นอันตราย ปกติฉันจะแนะนำ 4G หากไม่มีแอปอื่นทำงานบนเซิร์ฟเวอร์นั้น ชุดข้อมูลมีขนาดใหญ่แค่ไหน?

คุณทำเพียง 5 Selects ใน 2 วัน? บางทีนั่นอาจเป็น แสดงสถานะ? พวกเราต้องการ แสดงสถานะทั่วโลก แทน.

หน่วยความจำรั่วได้รับการแก้ไขตั้งแต่ 10.3

----- 2021-07-06 MariaDB 10.6.3 -- -- -----

MDEV-25481 หน่วยความจำรั่วใน Cached_item_str::Cached_item_str กับ TIES ที่เกี่ยวข้องกับ blob

----- 2021-05-21 MariaDB 10.6.1 -- -- -----

รายงานการรั่วไหลของหน่วยความจำจาก mariadbd หากใช้ -T หรือ --debug

----- 2021-02-22 MariaDB 10.5.9 -- -- -----

MDEV-24693 LeakSanitizer: ตรวจพบการรั่วไหลของหน่วยความจำใน mem_heap_create_block_func / fts_optimize_create_msg

----- 2020-11-03 MariaDB 10.5.7 -- -- -----

MDEV-23526 InnoDB รั่วหน่วยความจำสำหรับวัตถุคงที่บางตัว Merge Revision #f2739e2a96 2020-08-21 11:53:55 +0300 - รวม 10.4 เป็น 10.5

----- 2020-11-03 MariaDB 10.5.7 -- -- -----

แก้ไขการรั่วไหลของหน่วยความจำใน Alter_drop allocation Merge Revision #1657b7a583 2020-10-22 17:08:49 +0300 - Merge 10.4 to 10.5

----- 2020-11-03 MariaDB 10.4.16 & 2020-11-03 MariaDB 10.3.26 -- บันทึกประจำรุ่น -- -----

แก้ไขการรั่วไหลของหน่วยความจำสำหรับข้อความค้นหาย่อยที่เกี่ยวข้องกับ ROLLUP (MDEV-17066)

----- 2020-11-03 MariaDB 10.4.16 -- -- -----

MDEV-23526 InnoDB รั่วหน่วยความจำสำหรับวัตถุคงที่บางตัว Merge Revision #2643249da5 2020-08-21 10:19:44 +0300 - Merge 10.3 into 10.4 Merge Revision #2fa9f8c53a 2020-08-20 11:01:47 +0300 - Merge 10.3 into 10.4

----- 2020-11-03 MariaDB 10.4.16 -- -- -----

MDEV-23559 : Galera LeakSanitizer: ตรวจพบการรั่วไหลของหน่วยความจำใน galera.GAL-419

----- 2020-08-10 MariaDB 10.5.5 -- -- -----

แก้ไขการรั่วไหลของหน่วยความจำใน item_sum.cc::report_cut_value_error()

sa flag
ฉันเพิ่งรีเซ็ต innodb_buffer_pool_size ในความพยายามครั้งล่าสุดเพื่อแก้ไขปัญหานี้ ไม่ว่าฉันจะตั้งค่าเป็นขนาดใด การใช้ RAM ก็เพิ่มขึ้น เพิ่มขึ้น และเพิ่มขึ้น ฉันจะแทนที่เอาต์พุต SHOW STATUS ด้วย SHOW GLOBAL STATUS ในโพสต์แรกของฉัน
ua flag
การรั่วไหลของหน่วยความจำใน MariaDB นั้นหายาก แต่ (ฉันคิดว่า) ไม่ใช่สิ่งที่เป็นไปไม่ได้ 10.3 ค่อนข้างเก่า; แนะนำให้อัพเกรด

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา