Sometimes aMule crashes every several minutes. And if you run it under terminal, you get an error like this:
open /dev/urandom operation failed with error 24
Yeah, it is because too many file descriptors for '/dev/urandom'. One of the possibility is the setting of sysctl, and you can deal with it like this:
Seems like running out of file descriptors ("Too many open files"). You should increase the maximum number of open files your system allows (but I can't tell you how to do it); and maybe tell us more about how many shared files/downloads do you have.
This should work on Leopard:
$ sudo sysctl -a | grep kern.max > /Users/$(whoami)/Desktop/sysctl.bak
$ sudo sysctl -w kern.maxfilesperproc=32768
$ sudo sysctl -w kern.maxfiles=131392
$ sudo sysctl -w kern.maxprocperuid=16384
$ sudo sysctl -w kern.maxproc=2048
The first line backup the existing configuration....
Another possibility is 'ulimit'. You may get this:
localhost:~ Elias$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) 6144
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 266
virtual memory (kbytes, -v) unlimited
localhost:~ Elias$
Hmm, the setting of 'open files' is 256, which is too small. You can add
ulimit -n 4096
into your '~/.profile' file and restart aMule. Now aMule 2.2.6 runs nearly flawless.