Selamlar,
VPS sunucum var ubuntu kurulu üzerinde 1 tane wordpress sitesi var site google app ile entegre halde
Sunucu özelikleri 1GB ram var üzerinde 25 GB disk
Günde 2 3 kere aşağıdaki database bağlanamıyor hatasından site gidiyor mysql restart edince kendine geliyor.
Hata kodu aşağıdaki gibi nasıl düzeltebiliriz. araştırmalarımda ram eklemesi yaparak düzelebileceği yazıyor ram şuan için eklemek istemiyorum en son çehrede eklemesini yapabilirim
2020-09-17T01:39:21.424915Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-09-17T01:39:21.426987Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.31-0ubuntu0.18.04.1) starting as process 6738 ...
2020-09-17T01:39:21.448983Z 0 [Note] InnoDB: PUNCH HOLE support available
2020-09-17T01:39:21.449022Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-09-17T01:39:21.449026Z 0 [Note] InnoDB: Uses event mutexes
2020-09-17T01:39:21.449030Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-09-17T01:39:21.449034Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-17T01:39:21.449037Z 0 [Note] InnoDB: Using Linux native AIO
2020-09-17T01:39:21.449293Z 0 [Note] InnoDB: Number of pools: 1
2020-09-17T01:39:21.452889Z 0 [Note] InnoDB: Using CPU crc32 instructions
2020-09-17T01:39:21.454638Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-09-17T01:39:21.455495Z 0 [ERROR] InnoDB: mmap(137428992 bytes) failed; errno 12
2020-09-17T01:39:21.455512Z 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2020-09-17T01:39:21.455517Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-09-17T01:39:21.455526Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-09-17T01:39:21.455531Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-09-17T01:39:21.455548Z 0 [ERROR] Failed to initialize builtin plugins.
2020-09-17T01:39:21.455551Z 0 [ERROR] Aborting
Cannot allocate memory for the buffer pool Hatası
2
●112
- 17-09-2020, 11:42:32
- 17-09-2020, 22:22:45Merhaba,
my.cnf dosyanızda /etc/my.cnf konumunda olur genelde innodb_buffer_pool_size değerini düşürebilirsiniz. örneğin 100M olarak 128M yerine ;
innodb_buffer_pool_size=100M
Sonrasında MySQL servisini restartlayın değişikliğin etkili olması için :
service mysqld restart || service mysql restart || service mariadb restart - 18-09-2020, 10:14:02Söylediğiniz kodu daha önceden eklemiştim ama işe yaramamıştı. Sunucunun ram 2GB yapınca düzeldi ama tabii bunu yapmak istemiyorum aslındaBerkay24 adlı üyeden alıntı: mesajı görüntüle
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
!innodb_buffer_pool_size=100M