hi. IMO vars for django may uses this values inside [MYSQLD], cause max_connections default is 100
innodb_buffer_pool_instances=8 max_connections=255 you could verify your environment using console command mysql -u your-user -p[your-password-whit-nospace] show variables like '%connec%'; show variables like '%buffer%'; for example my env show: mysql> show variables like '%buffer%'; +------------------------------+----------+ | Variable_name | Value | +------------------------------+----------+ | bulk_insert_buffer_size | 8388608 | | innodb_buffer_pool_instances | 1 | | innodb_buffer_pool_size | 19922944 | | innodb_change_buffering | all | | innodb_log_buffer_size | 1048576 | | join_buffer_size | 131072 | | key_buffer_size | 8388608 | | myisam_sort_buffer_size | 11534336 | | net_buffer_length | 16384 | | preload_buffer_size | 32768 | | read_buffer_size | 20480 | | read_rnd_buffer_size | 262144 | | sort_buffer_size | 262144 | | sql_buffer_result | OFF | +------------------------------+----------+ 14 rows in set (0.00 sec) mysql> show variables like '%connec%'; +--------------------------+------------------+ | Variable_name | Value | +--------------------------+------------------+ | character_set_connection | cp850 | | collation_connection | cp850_general_ci | | connect_timeout | 10 | | init_connect | | | max_connect_errors | 10 | | max_connections | 100 | | max_user_connections | 0 | +--------------------------+------------------+ 7 rows in set (0.04 sec) 2016-08-01 21:05 GMT-03:00 Tim Graham <timogra...@gmail.com>: > Sometimes the MySQL 5.7.13 builds on Ubuntu 16.04 are failing with "Lost > connection to MySQL server during query" because the MySQL server restarts > during the tests. I wonder if anyone has an idea about how to solve this. > Looking through the MySQL error log, I think this is the root cause: > > 2016-08-01T23:02:56.636617Z 0 [ERROR] [FATAL] InnoDB: Semaphore wait has > lasted > 600 seconds. We intentionally crash the server because it appears > to be hung. > 2016-08-01 23:02:56 0x7f5fb75d8700 InnoDB: Assertion failure in thread > 140049074980608 in file ut0ut.cc line 920 > InnoDB: We intentionally generate a memory trap. > InnoDB: Submit a detailed bug report to http://bugs.mysql.com. > InnoDB: If you get repeated assertion failures or crashes, even > InnoDB: immediately after the mysqld startup, there may be > InnoDB: corruption in the InnoDB tablespace. Please refer to > InnoDB: > http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html > InnoDB: about forcing recovery. > 23:02:56 UTC - mysqld got signal 6 ; > This could be because you hit a bug. It is also possible that this binary > or one of the libraries it was linked against is corrupt, improperly built, > or misconfigured. This error can also be caused by malfunctioning hardware. > Attempting to collect some information that could help diagnose the > problem. > As this is a crash and something is definitely wrong, the information > collection process might fail. > > key_buffer_size=536870912 > read_buffer_size=131072 > max_used_connections=4 > max_threads=151 > thread_count=4 > connection_count=4 > It is possible that mysqld could use up to > key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = > 584285 K bytes of memory > Hope that's ok; if not, decrease some variables in the equation. > > 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... > stack_bottom = 0 thread_stack 0x200000 > /usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xe7bdab] > /usr/sbin/mysqld(handle_fatal_signal+0x489)[0x783759] > /lib/x86_64-linux-gnu/libpthread.so.0(+0x113d0)[0x7f60131dc3d0] > /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f6012596418] > /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f601259801a] > /usr/sbin/mysqld[0x759764] > /usr/sbin/mysqld(_ZN2ib5fatalD1Ev+0x145)[0x110c905] > /usr/sbin/mysqld(srv_error_monitor_thread+0xe2d)[0x10aa34d] > /lib/x86_64-linux-gnu/libpthread.so.0(+0x76fa)[0x7f60131d26fa] > /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f6012667b5d] > 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. > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-developers@googlegroups.com. > Visit this group at https://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/3f787f25-2e3f-49b1-b6a3-7a3411e70a9b%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/3f787f25-2e3f-49b1-b6a3-7a3411e70a9b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- gilberto dos santos alves +55(11)9-8646-5049 sao paulo - sp - brasil -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAP9G-N%2BQ999XNBXY5hLOttoGWp4d%2BUmiLgHrKU%3Dx9iB_7c4DtA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.