(critical) chassis.c:981: could not raise RLIMIT_NOFILE to 8192, Invalid argument (22)

Asked by Quang Nguyen

Hi, I'm using Ubuntu 10.04 (Lucid) and I've just installed mysql-proxy by running
#sudo apt-get install mysql-proxy
and it is installed wihout any problem. But any time I run mysql-proxy with any parameters like
#mysql-proxy --proxy-lua-script=first_example.lua
I got those messages:

2011-01-20 00:20:42: (critical) chassis.c:981: could not raise RLIMIT_NOFILE to 8192, Invalid argument (22). Current limit still 34130786546353152.
2011-01-20 00:20:42: (critical) network-socket.c:504: bind(0.0.0.0:4041) failed: Address already in use (98)

I tried to search around on internet but still stuck. Anyone can help me out. THanks.

Quang

Question information

Language:
English Edit question
Status:
Solved
For:
MySQL Proxy Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Kneschke
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Kneschke (jan-kneschke) said :
#1

Am 20.01.2011 um 09:22 schrieb Quang Nguyen:

> New question #142172 on MySQL Proxy:
> https://answers.launchpad.net/mysql-proxy/+question/142172
>
> Hi, I'm using Ubuntu 10.04 (Lucid) and I've just installed mysql-proxy by running
> #sudo apt-get install mysql-proxy
> and it is installed wihout any problem. But any time I run mysql-proxy with any parameters like
> #mysql-proxy --proxy-lua-script=first_example.lua
> I got those messages:
>
> 2011-01-20 00:20:42: (critical) chassis.c:981: could not raise RLIMIT_NOFILE to 8192, Invalid argument (22). Current limit still 34130786546353152.

That one you can safely ignore.

> 2011-01-20 00:20:42: (critical) network-socket.c:504: bind(0.0.0.0:4041) failed: Address already in use (98)

Check what program runs on port 4041 with:

$ netstat -an | grep 4041

and either move the --admin-address to another port (it defaults to 4041) or so something else to free that port.

Jan

Revision history for this message
Quang Nguyen (tinquang) said :
#2

Hi Jan, your instructions solved my problems. The first message I didn't know that I can ignore it. Thanks for your help.

Quang