| Author |
Message |
< Erlang ~ {error, emfile} |
| Keenster |
Posted: Mon Jan 12, 2009 10:07 pm |
|
|
|
Joined: 12 Jan 2009
Posts: 3
|
I'm just wrapping up a TCP server written using OTP principles and I have been doing load testing today. I have run into a troubling problem where instead of returning {ok, Socket} gen_tcp:connect/3 returns {error,emfile} after hitting 249 active connections.
Now, I've looked into this, and found that the problem lies with my *nix system placing a limit of X number of file pointers per running process. I am somewhat familiar with the ulimit utility, and upping the limit using that doesn't solve the problem.
I am wondering if erl is running as some other user or some such problem. Any ideas? |
|
|
| Back to top |
|
| Mazen |
Posted: Tue Jan 13, 2009 10:58 am |
|
|
|
User
Joined: 20 Jul 2006
Posts: 164
Location: London
|
have you checked if the user has the right to up the limit? (/etc/security/limits.conf) Also perhaps add the ulimit command in the bin/start_erl script and see if it works.
/M |
|
|
| Back to top |
|
| Keenster |
Posted: Wed Jan 14, 2009 8:23 pm |
|
|
|
Joined: 12 Jan 2009
Posts: 3
|
| Yes. I did set the option (nofile) in limits.conf. Unfortunately, that had no effect. What a strange and frustrating problem. |
|
|
| Back to top |
|
| flodis |
Posted: Tue Feb 03, 2009 12:26 pm |
|
|
|
User
Joined: 09 Jul 2008
Posts: 27
|
Keenster wrote: Yes. I did set the option (nofile) in limits.conf. Unfortunately, that had no effect. What a strange and frustrating problem.
You probably need to start the erlang shell with:
erl -env ERL_MAX_PORTS 50000 |
|
|
| Back to top |
|
| Keenster |
Posted: Sun Feb 08, 2009 7:55 pm |
|
|
|
Joined: 12 Jan 2009
Posts: 3
|
| Thanks for the suggestion, but it's an OS level issue. The only real solution is to distribute your TCP server across multiple nodes on the same physical server (or not), or a custom kernel compile. |
|
|
| Back to top |
|
| wuji |
Posted: Tue Sep 11, 2012 2:16 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
JCPenney and Chrysler, though, decided not to buy airtime during the episode. episode. designer replica *beep* episode. Wendy's decided not to advertise on "The Ellen Show" at all.A
has changed since the day that show first aired.JCPenney has tapped DeGeneres DeGeneres cheap authentic jordans DeGeneres as its spokeswoman and supported its decision even when One Million
a "pro-family advocacy" group, threatened to boycott the national retail chain for for [h3]cheap Ralph Lauren[/h3] for refusing to fire her.In 1996, a Gallup poll showed that the
approval rating for gay marriage was 27 percent. It is more than than [h4]discount designer *beep*[/h4] than 50 percent today.And there are now 34 shows featuring gay characters
leading and supporting roles -- not including reality TV -- compared to to cheap replica *beep* to only 11 shows in 1997.In the "20/20" interview, DeGeneres said she
willing to risk people knowing."I decided this was not going to be be [h4]cheap Ralph Lauren Polo[/h4] be something that I was going to live the rest of my |
|
|
| Back to top |
|
| landrover0594 |
Posted: Wed Sep 12, 2012 2:31 am |
|
|
|
User
Joined: 11 Sep 2012
Posts: 16
|
| What's happening, what is happening, the doorways that way! screamed Malfoy, yet Harry designed a hairpin swerve and also dove. Michael Kors Outlet The actual diadem seemed to drop in sluggish action, converting and glistening as it decreased in the direction of the maw of a yawning serpent, then he'd this, Michael Kors Online captured this round his arm ChemicalHarry swerved once again because the serpent lunged with him; he or she soared way up and directly towards the place where, he prayed, the doorway stood available; Michael Kors Watches Ron, Hermione and Goyle experienced faded; Malfoy was screaming as well as having Harry thus firmly that harm. Next, through the smoke, Michael Kors *beep* Harry saw a rectangular spot about the wall and also steered the particular sweeper in internet marketing, as well as times later beautiful crammed his bronchi and they collided with the wall structure within the hallway beyond. Michael Kors Outlet Online Malfoy fell from the broom and also lay facedown, gasping, coughing, and also retching. Harry folded over and sat up: The door for the Room regarding Prerequisite acquired disappeared, Michael Kors Outlet as well as Ron as well as Hermione sitting panting on to the floor next to Goyle, who was simply nonetheless other than conscious. |
|
|
| Back to top |
|
| landrover0594 |
Posted: Wed Sep 12, 2012 2:33 am |
|
|
|
User
Joined: 11 Sep 2012
Posts: 16
|
Harry grabbed a set of heavy-looking broomsticks from your closest stack associated with junk and also chucked one to Ron,
Louis Vuitton Outlet which drawn Hermione into it behind your pet. Harry thrown their leg over the second broom and,
Louis Vuitton Luggage together with difficult leg techinques to the floor, they will leaped upwards in the air,
Louis Vuitton Online Store missing by ft the horned beak of the flaming raptor that broke it is jaws their way. The particular smoke as well as heat have been becoming mind-boggling: Below all of them the cursed fire was eating the particular contraband associated with generations regarding sought after students,
Louis Vuitton Outlet Store the actual responsible outcomes of a thousand restricted studies, the actual secrets of a variety of spirits that had searched for sanctuary in the room. Harry could not visit a track of Malfoy, Crabbe, or perhaps Goyle anywhere.
Authentic Louis Vuitton He swooped as little as he care over the marauding monsters associated with flare to attempt to find them,
Louis Vuitton Online Store however there is only fire: Such a awful approach to die. He previously never wanted this kind of. |
|
|
| Back to top |
|
| dongdongwu |
Posted: Wed Sep 19, 2012 8:08 am |
|
|
|
User
Joined: 19 Sep 2012
Posts: 236
|
| Girls would refuse to even leave their replicas behind. specifically when the product beats the complete meaning of the Christian Louboutin men outlet; in conditions of good quality and detailing.If Cinderella was residing in your twenty primary century as opposed to the aged a single then there would not be any 'Happy actually after'. properly appears like girls nowadays are as well fond of the strong;Christian Louboutin Men Shoes to leave them in your center of nowhere.Christian Louboutin for men Shoes would arrive true handy being a excellent handbag using the glimpse and really feel belonging to the authentic but at a very much lesser price tag adding as very much as types picture in your process. |
|
|
| Back to top |
|
|
|