Leider ist mein Englisch nicht flie?end. Ich bin neu in der MySQL-Datenbank. Ich verwende MySQL 8.0.30 im Windows Server 2022 Datacenter. Ich habe ein Problem, bei dem MySQL st?ndig abstürzt (MySQL-Dienst stoppt), immer mit dem gleichen Fehlerprotokoll. Ich habe versucht, die Ursache des Problems zu finden, aber keine L?sung.
Zur Information: Ich verwende Grafana Web Server und MySQL auf demselben Ger?t mit den folgenden Spezifikationen: Prozessor Intel(R) Xeon(R) Silver 4208 CPU bei 2,10 GHz 2,10 GHz RAM 16,0 GB verbaut (15,6 GB verfügbar) Systemtyp: 64-Bit-Betriebssystem, x64-basierter Prozessor
Bitte geben Sie mir Vorschl?ge zur L?sung dieses Problems. Vielen Dank im Voraus
Hier sind die Fehler-MySQL-Protokolldetails:
10:01:25 UTC - mysqld got exception 0xc0000005 ; Most likely, you have hit a bug, but this error can also be caused by malfunctioning hardware. Thread pointer: 0x0 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... 7ffa8ac5b496 jemalloc.dll!??? 7ffa8ac5b918 jemalloc.dll!??? 7ffa8ac5ef91 jemalloc.dll!je_realloc() 7ffa82547ddd libcrypto-1_1-x64.dll!CRYPTO_memcmp() 7ffa8258bcea libcrypto-1_1-x64.dll!CRYPTO_memcmp() 7ffa8258e7e3 libcrypto-1_1-x64.dll!CRYPTO_memcmp() 7ffa8255956d libcrypto-1_1-x64.dll!CRYPTO_memcmp() 7ffa8246263c libcrypto-1_1-x64.dll!CRYPTO_memcmp() 7ffa826092ff libcrypto-1_1-x64.dll!CRYPTO_memcmp() 7ffab7d47167 ntdll.dll!RtlActivateActivationContextUnsafeFast() 7ffab7d4848a ntdll.dll!LdrShutdownThread() 7ffab7d28bae ntdll.dll!RtlExitUserThread() 7ffab5851b8a KERNELBASE.dll!FreeLibraryAndExitThread() 7ffab55c6c5d ucrtbase.dll!_recalloc() 7ffab55f3c19 ucrtbase.dll!_endthreadex() 7ff682fc4605 mysqld.exe!?modify_thread_cache_size@Per_thread_connection_handler@@SAXK@Z() 7ff6844987a9 mysqld.exe!?deallocate@?$allocator@V?$sub_match@V?$_String_const_iterator@V?$_String_val@U?$_Simple_types@D@std@@@std@@@std@@@std@@@std@@QEAAXQEAV?$sub_match@V?$_String_const_iterator@V?$_String_val@U?$_Simple_types@D@std@@@std@@@std@@@2@_K@Z() [truncated, 260 bytes total] 7ff68405139c mysqld.exe!?my_thread_self_setname@@YAXPEBD@Z() 7ffab55c6b4c ucrtbase.dll!_recalloc() 7ffab7274ed0 KERNEL32.DLL!BaseThreadInitThunk() 7ffab7d9e44b ntdll.dll!RtlUserThreadStart() The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains information that should help you find out what is causing the crash.
Ich habe versucht, das Lesen und Schreiben von Daten zu reduzieren und dann das Client-Verbindungslimit zu erh?hen
每秒速率 = RPS
為您的 my.ini [mysqld] 部分考慮的建議,以避免意外關(guān)閉。
innodb_thread_concurrency=10 # from 33 for reasonable limit for your 16 available total threads innodb_redo_log_capacity=96M # from innodb_log_file_size name and 48M limit
**** 這是當(dāng)前名稱(chēng),而不是已棄用的每個(gè)錯(cuò)誤日志的 innodb_log_file_size
innodb_buffer_pool_size=8G # from 124M for about 1/2 available RAM to reduce innodb_data_reads RPS of 31. read_rnd_buffer_size=32K from 256K to reduce handler_read_rnd_next RPS of 63,041 thread_cache_size=128 # from 10 to reduce threads_created RPS of ~ 5
請(qǐng)查看個(gè)人資料以獲取聯(lián)系信息。您有很多機(jī)會(huì)通過(guò)額外的全局變量更改來(lái)提高性能。
想聽(tīng)聽(tīng)您如何在 96 秒的正常運(yùn)行時(shí)間內(nèi)獲得如此多的活動(dòng)的故事。 :)