Hi All,

Iīm having a trouble where my server is falling to it's knees
when a certain number of connections are match.

Well, in a short, I configured the my.cnf files to accept up to
120 connections. When the server receives about to 55
connections, it hangs the connections and I donīt get me
even enter the MySQL interactive mode.

I see in the list people configuring the MySQL tu accept up
to 1000 connections and my server donīt get to hold 100... :-/

I think some queries of the applications was badly designed,
but even thus I need to optimize it.

My server is a P4-2.4 with 1 Gb RAM.
MySQL 4.0.18

The my.cfn file has the following sets:
--------------------------
[mysqld]
port=3306
socket=/tmp/mysql.sock
skip-locking
set-variable    = key_buffer=384M
set-variable    = sort_buffer_size=512K
set-variable    = record_buffer=512K
set-variable    = read_buffer_size=512K
set-variable    = max_connections=120
set-variable    = max_connect_errors=50
set-variable    = max_allowed_packet=1M
set-variable    = table_cache=256
set-variable    = myisam_sort_buffer_size=8M
set-variable    = thread_cache=16
log-bin
server-id       = 1
#set-variable   = bdb_cache_size=64M
#set-variable   = bdb_max_lock=100000
#skip-innodb
innodb_data_file_path = ibdata1:10M:autoextend
#innodb_data_home_dir = c:\ibdata
#innodb_log_group_home_dir = c:\iblogs
#innodb_log_arch_dir = c:\iblogs
#set-variable = innodb_mirrored_log_groups=1
#set-variable = innodb_log_files_in_group=3
set-variable = innodb_log_file_size=5M
set-variable = innodb_log_buffer_size=8M
#innodb_flush_log_at_trx_commit=1
#innodb_log_archive=0
set-variable = innodb_buffer_pool_size=256M
set-variable = innodb_additional_mem_pool_size=20M
set-variable = innodb_file_io_threads=16

[mysqldump]
quick
set-variable    = max_allowed_packet=16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
set-variable    = key_buffer=8M
set-variable    = sort_buffer=8M
set-variable    = read_buffer=2M
set-variable    = write_buffer=2M

[myisamchk]
set-variable    = key_buffer=8M
set-variable    = sort_buffer=8M
set-variable    = read_buffer=2M
set-variable    = write_buffer=2M

[mysqlhotcopy]
interactive-timeout
--------------------------

The error message is:
--------------------------
041125 12:13:14  InnoDB: Started
/usr/local/libexec/mysqld: ready for connections.
Version: '4.0.18-log'  socket: '/tmp/mysql.sock'  port: 3306
InnoDB: Fatal error: cannot allocate 81920 bytes of
InnoDB: memory with malloc! Total allocated memory
InnoDB: by InnoDB 322902064 bytes. Operating system errno: 12
InnoDB: Cannot continue operation!
InnoDB: Check if you should increase the swap file or
InnoDB: ulimits of your operating system.
InnoDB: On FreeBSD check you have compiled the OS with
InnoDB: a big enough maximum process size.
InnoDB: We now intentionally generate a seg fault so that
InnoDB: on Linux we get a stack trace.
mysqld got signal 11;
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.
We will try our best to scrape up some info that will hopefully help
diagnose
the problem, but since we have already crashed, something is definitely
wrong
and this may fail.

key_buffer_size=402653184
read_buffer_size=520192
max_used_connections=55
max_connections=120
threads_connected=55
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections =
515615 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
--------------------------

Thanks,
Ronan



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to