aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: error 24: Too many open files....how can i fix this?  (Read 1717 times)

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
error 24: Too many open files....how can i fix this?
« on: December 10, 2007, 01:01:13 PM »

Hi,

i get:
2007-12-10 20:54:14: Logger.cpp(268): Error: can't open file '/media/hd/Temp/310.part.met.bak' (error 24: Too many open files)

i get this alot...what can i do to get rid of this?

i have 500/600 connections..what else do you need to know?

box@fbox-desktop:~$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 6140
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 6140
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


thanks..
« Last Edit: December 10, 2007, 01:25:05 PM by hopelessone »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: error 24: Too many open files....how can i fix this?
« Reply #1 on: December 10, 2007, 04:49:38 PM »

Obviously raise your open files max.
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: error 24: Too many open files....how can i fix this?
« Reply #2 on: December 11, 2007, 01:50:51 AM »

Ahhhhh Haaaa...

Thx

p.s. any recommendations?
p.s.s. Thanks for aMule CVS version more than tripled my upload/download speeds from 2.1.3 !!
« Last Edit: December 11, 2007, 01:54:25 AM by hopelessone »
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: error 24: Too many open files....how can i fix this?
« Reply #3 on: December 12, 2007, 09:01:25 AM »

It still gives me errors:
2007-12-12 16:57:57: PartFile.cpp(885): ERROR while saving partfile: Failed to open part.met file (001.part.met ==> Movie.avi)
2007-12-12 16:57:58: ClientCreditsList.cpp(360): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24

i raiseed max connections in aMule to 5000 and still no diff??

do you mean raise file max in aMule or Linux? if so how?

thanks..
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: error 24: Too many open files....how can i fix this?
« Reply #4 on: December 12, 2007, 02:18:36 PM »

Fix:

edit /etc/security/limits.conf

and add :
[username] soft nofile 4096
[username] hard nofile 4096

hope that helps others...

cheers...

happy aMuling...
Logged