HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mysql memory leak on hpux 11.23
Operating System - HP-UX
1834987
Members
1971
Online
110073
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2009 07:24 PM
09-22-2009 07:24 PM
Mysql memory leak on hpux 11.23
Hi,
I got the following error messages while connect to mysql4.1.17 on hpux 11.23, around 3000 processes, see below:
Mysql connect('database=user;host=enghp2','root',...) failed: 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 at ./testconn.pl line 19
I have been adjust the max open files limit of mysql and kernel:
mysql> show variables like "open%";
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| open_files_limit | 65535 |
+------------------+-------+
1 row in set (0.00 sec)
[root@enghp2]:/etc > ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) 1048576
file size (blocks, -f) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 16
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29001
virtual memory (kbytes, -v) unlimited
[root@enghp2]:/etc > kctune -a |grep dbc
dbc_max_pct 50 Default Immed
dbc_min_pct 5 Default Immed
The error message display while create more than 3000 sessions and the memory around 1083M:
[root@enghp2]:/ccrun/mysql4/bin > mysqladmin -ucci -pcci processlist |wc -l
3101
System: Tue Sep 22 20:20:45 2009
Load averages: 0.17, 0.27, 0.50
319 processes: 270 sleeping, 44 running, 4 stopped, 1 zombie
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.17 6.5% 0.8% 11.7% 81.0% 0.0% 0.0% 0.0% 0.0%
1 0.17 8.3% 1.4% 11.1% 79.1% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.17 7.4% 1.0% 11.5% 80.1% 0.0% 0.0% 0.0% 0.0%
Memory: 2659044K (1663340K) real, 4678212K (3288376K) virtual, 472592K free Page# 1/9
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 pts/11 16001 cis 152 20 1029M 415M run 0:13 1.59 1.59 mysqld
I got the following error messages while connect to mysql4.1.17 on hpux 11.23, around 3000 processes, see below:
Mysql connect('database=user;host=enghp2','root',...) failed: 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 at ./testconn.pl line 19
I have been adjust the max open files limit of mysql and kernel:
mysql> show variables like "open%";
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| open_files_limit | 65535 |
+------------------+-------+
1 row in set (0.00 sec)
[root@enghp2]:/etc > ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) 1048576
file size (blocks, -f) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 16
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29001
virtual memory (kbytes, -v) unlimited
[root@enghp2]:/etc > kctune -a |grep dbc
dbc_max_pct 50 Default Immed
dbc_min_pct 5 Default Immed
The error message display while create more than 3000 sessions and the memory around 1083M:
[root@enghp2]:/ccrun/mysql4/bin > mysqladmin -ucci -pcci processlist |wc -l
3101
System: Tue Sep 22 20:20:45 2009
Load averages: 0.17, 0.27, 0.50
319 processes: 270 sleeping, 44 running, 4 stopped, 1 zombie
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.17 6.5% 0.8% 11.7% 81.0% 0.0% 0.0% 0.0% 0.0%
1 0.17 8.3% 1.4% 11.1% 79.1% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.17 7.4% 1.0% 11.5% 80.1% 0.0% 0.0% 0.0% 0.0%
Memory: 2659044K (1663340K) real, 4678212K (3288376K) virtual, 472592K free Page# 1/9
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 pts/11 16001 cis 152 20 1029M 415M run 0:13 1.59 1.59 mysqld
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2009 07:29 PM
09-22-2009 07:29 PM
Re: Mysql memory leak on hpux 11.23
Hi,
Could you post swapinfo -tam
Suraj
Could you post swapinfo -tam
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2009 10:11 PM
09-22-2009 10:11 PM
Re: Mysql memory leak on hpux 11.23
>Can't create a new thread (errno 11);
This is EAGAIN 11 No more processes
You need to increase nproc or maxuprc.
What are their values?
Doing "kcusage nproc" would be helpful.
And possibly nkthread.
This is EAGAIN 11 No more processes
You need to increase nproc or maxuprc.
What are their values?
Doing "kcusage nproc" would be helpful.
And possibly nkthread.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP