Jump to content

настройка сервера


Rashp
 Share

Recommended Posts

Всем здравствуйте, появился деятель на сайте собирает корзины по 100 - 120  строк товаров с цветом и размером, после этого происходит падение памяти до 7 гб из 16 (в логах предупреждение mysqld[25623]: 2025-01-20 18:01:30 0 [Warning] Aborted connection 0 to db: 'unconnected' user: 'unauthenticated' host: 'connecting host' (Too many connections). Корзина кэшируется.  Подскажите пожалуйста как можно с этим бороться? Действия намеренные судя по тому, что постоянно меняет ip адреса (использует vpn) и данные устройств и браузера. 

в my.cnf

max_connections         = 100
connect_timeout         = 5
wait_timeout            = 600
max_allowed_packet      = 16M
thread_cache_size       = 128
sort_buffer_size        = 2M
bulk_insert_buffer_size = 16M
tmp_table_size          = 32M
max_heap_table_size     = 32M
#
# * MyISAM
#
key_buffer_size         = 128M
table_open_cache        = 400
myisam_sort_buffer_size = 1024M
concurrent_insert       = 2
read_buffer_size        = 2M
read_rnd_buffer_size    = 1M

 

в php.ini

memory_limit = 1024M

 

 

Edited by Rashp
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...