mysql connection issue

i am getting this error on new centos 6.0 OS with Server version: 5.1.42-community-log MySQL Community Server (GPL).

Memory is available on system,

Max Memory Ever Allocated : 110.10 G
Configured Max Per-thread Buffers : 21.68 G
Configured Max Global Buffers : 90.07 G
Configured Max Memory Limit : 111.75 G
Physical Memory : 126.03 G
Max memory limit seem to be within acceptable norms

mysql not letting application more than 1016 connections.

The same configuration was working for years on centos 5.

OS limit settings are:

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1032346
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 10240
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

You didn’t say anything about what the actual error is.

the actual error on client is:

(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)

this is happening on new centos 6.0 os i migrated from centos 5.4