Erlang Mailing Lists

Author Message

<  Ejabberd mailing list  ~  TCP FAILED, TUNING EJABBERD

Guest
Posted: Thu Oct 05, 2006 9:40 am Reply with quote
Guest
Hi,
I experience this error although I start ejabberd with

*-env ERL_MAX_PORTS 5000

(http://ejabberd.jabber.ru/tuning)

*

In process list (*ps aux | grep ejabberd*) I don't see *-env option
*I use a compile version (svn) not the latest.
Need I install the 1.1.2 ejabberd *.bin* to implement this feature or
someone can help ?

_Error message:_
=INFO REPORT==== 2006-10-04 15:53:30 ===
I(<0.161.0>:ejabberd_listener:105): (#Port<0.178>) Failed TCP accept:
{enfile,[{erlang,open_port,[{spawn,tcp_inet},[binary]]},{prim_inet,open0,1},{prim_inet,async_accept,2},{prim_inet,accept0,2},{inet_tcp,accept,1},{ejabberd_listener,accept,3},{proc_lib,init_p,5}]}


Benjamin
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Sun Oct 08, 2006 8:56 pm Reply with quote
Guest
2006/10/5, Benjamin Baudouin <benjamin@nctel.net>:
> I experience this error although I start ejabberd with
>
> *-env ERL_MAX_PORTS 5000
>
> (http://ejabberd.jabber.ru/tuning)

> *I use a compile version (svn) not the latest.
> Need I install the 1.1.2 ejabberd *.bin* to implement this feature or
> someone can help ?

You don't need to update ejabberd. That option is for Erlang, and
whatever version you have probably supports it.

I used this option on those experiments:
http://ejabberd.jabber.ru/benchmark

Maybe you need to increment Linux limitations too (check the link above):
ulimit -n 16000


--
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Mon Oct 09, 2006 7:57 am Reply with quote
Guest
Badlop:
> 2006/10/5, Benjamin Baudouin <benjamin@nctel.net>:
>> I experience this error although I start ejabberd with
>>
>> *-env ERL_MAX_PORTS 5000
>>
>> (http://ejabberd.jabber.ru/tuning)
>
>> *I use a compile version (svn) not the latest.
>> Need I install the 1.1.2 ejabberd *.bin* to implement this feature or
>> someone can help ?
>
> You don't need to update ejabberd. That option is for Erlang, and
> whatever version you have probably supports it.
>
> I used this option on those experiments:
> http://ejabberd.jabber.ru/benchmark
>
> Maybe you need to increment Linux limitations too (check the link above):
> ulimit -n 16000
>
I run ejabberd on Debian. ulimit command return me "unlimited".
I will set up -n 16000 an test it, but "unlimited" should be ok (bigger
than "16000"...)
Do you see in process list -env (something) option ?

Benjamin
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Mon Oct 09, 2006 9:35 am Reply with quote
Guest
2006/10/9, Benjamin Baudouin <benjamin@nctel.net>:
> Do you see in process list -env (something) option ?

No, I don't see -env options, while I see others.

On my start script I have:
... +P 250000 -env ERL_MAX_ETS_TABLES 80000 -env ERL_MAX_PORTS 19000

But later on ps aux the -env options are not shown:
/usr/local/lib/erlang/erts-5.4.13/bin/beam -P 250000 -- -root
/usr/local/lib/erlang -progname erl -- ...

--
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Mon Oct 09, 2006 9:41 am Reply with quote
Guest
Badlop :
> 2006/10/9, Benjamin Baudouin <benjamin@nctel.net>:
>> Do you see in process list -env (something) option ?
>
> No, I don't see -env options, while I see others.
>
> On my start script I have:
> ... +P 250000 -env ERL_MAX_ETS_TABLES 80000 -env ERL_MAX_PORTS 19000
>
> But later on ps aux the -env options are not shown:
> /usr/local/lib/erlang/erts-5.4.13/bin/beam -P 250000 -- -root
> /usr/local/lib/erlang -progname erl -- ...
>
Really interresting. Thanks for your reactivity.
I appreciate. But if process list don't show us -env option
how to be sure (and where to see) that erlang is running a 19000
ERL_MAX_PORTS or a 80000 ERL_MAX_ETS_TABLES ?

Benjamin

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum