LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-29-2013, 08:36 AM   #1
voda22
LQ Newbie
 
Registered: Nov 2012
Posts: 10

Rep: Reputation: Disabled
Angry mysql error: Can't create a new thread (errno 11);


Hello everyone.

I have a db server running Percona Xtradb server, and 5 slaves. I always get the error

Quote:
mysql error: Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug
Though i set ulimited

Quote:
root@master:~# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 2062915
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1000000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 1000000
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Quote:
root@master:~# cat /proc/`pidof mysqld`/limits | egrep "(processes|files)"Max processes 1000000 1000000 processes
Max open files 1000000 1000000 files

I really dont know what's going on? Please help me.

Thanks,
 
Old 03-30-2013, 11:18 AM   #2
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
what OS/version etc? what does your my.cnf contain?

Last edited by Ginola; 03-30-2013 at 02:10 PM. Reason: more questions
 
Old 03-30-2013, 12:43 PM   #3
voda22
LQ Newbie
 
Registered: Nov 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Code:
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0

[mysqld]
#old_passwords=1
character_set_server=utf8
#
# * Basic Settings
#
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /home/mysql/
tmpdir          = /tmp
#lc-messages-dir        = /usr/share/mysql

skip-external-locking


default_storage_engine         = MyISAM
# MyISAM #
key_buffer_size                = 5G
myisam_recover                 = FORCE,BACKUP

# SAFETY #
max_allowed_packet             = 16M
#max_connect_errors             = 10000
innodb                         = FORCE
#explicit_defaults_for_timestamp
#skip_secure_auth


# BINARY LOGGING #
#log_bin                        = /home/mysql/mysql-bin
#expire_logs_days               = 14
#sync_binlog                    = 1

read_buffer_size = 512M
read_rnd_buffer_size = 256M
sort_buffer_size = 128M
join_buffer_size = 128M

# CACHES AND LIMITS #
tmp_table_size                 = 256M
max_heap_table_size            = 64M
query_cache_type               = 1
query_cache_size               = 256M
query_cache_limit              = 256M
max_connections                = 40400
#wait_timeout                  = 60
thread_cache_size              = 100
open_files_limit               = 602400
#table_definition_cache         = 4096
table_open_cache               = 524288

tmp_table_size                 = 512M
#table_cache                   = 40096
# INNODB #
innodb_flush_method            = O_DIRECT
innodb_log_files_in_group      = 2
innodb_log_file_size           = 32M
innodb_flush_log_at_trx_commit = 1
innodb_file_per_table          = 1
innodb_buffer_pool_size        = 8M

# LOGGING #
log_error                      = /var/log/mysql/mysql-error.log
I get this error whenever server reaches 32k
 
Old 03-31-2013, 02:22 PM   #4
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
Quote:
Originally Posted by voda22 View Post
I get this error whenever server reaches 32k
Reaches 32k what? Connections?

What OS (Distro & Version) and MySql version are you running, and how much memory do you have?
 
Old 04-01-2013, 03:10 PM   #5
voda22
LQ Newbie
 
Registered: Nov 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
Reaches 32k what? Connections?

What OS (Distro & Version) and MySql version are you running, and how much memory do you have?
Im using ubuntu 12.04.02, mysql is 5.5 and i have 265 GB RAM. Yes, i found out that i had a lot of opening tables and meta locking.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
under HP-UX, why errno is always 0 in a thread? iclinux Programming 8 10-21-2014 04:58 AM
create socket throw errno 9 huvcbo Linux - Networking 5 05-06-2011 08:58 PM
Mysql help needed: Can't find file: './mysql/host.frm' (errno: 13) rs232 Linux - Software 3 10-26-2010 05:43 AM
MySql Thread error on startup Biggen Linux - Software 9 09-30-2004 08:05 AM
Mysql install error in RH9 -undefined reference to errno murugesan_n Linux - Software 0 09-09-2003 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration