Roland Zagler wrote:

I use Asterisk 1.0.2 on a RedHat Enterprise Server 3.0 (Kernel 2.4.21)
and i experienced that the memory consumption of the asterisk-process
started by the init.d-script raises continously. Now, after 3 hours of
operation (on our testing-system we have 30 concurrent connections to
another asterisk box using IAX2 and GSM codec) there is already 66MB
allocated. I think this could be ok, but the memory consumption
increases until all memory (including swap) is used, and then there is
following entry in /var/log/asterisk/messages:

Failed to fork(): Cannot allocate memory


This is a just a guess, but an educated one - RHEL3 is using a RedHat back port of NPTL which is, how to say it... completly fscked up :-)

If this is really the problem then all you have to do to resolve the issue is to add a line with:

export LD_ASSUME_KERNEL=2.4.1

to the init script that runs Asterisk.

For an explanation of what this does look here:

http://people.redhat.com/drepper/assumekernel.html

If this does work, you must do the following:

1. Tell me it worked, I'm a curious bastard :-)

2. Call up RedHat support and tell them to fix their broken "Enterprise" distro.


Good luck, Gilad

--
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com  | SIP: [EMAIL PROTECTED]
Tel: +972.9.8650475 ext. 201 | Fax:  +972.9.8850643

"I am Jack's Overwritten Stack Pointer"
        -- Hackers Club, the movie
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to