#34 Resource temporarily unavailable


My AOLserver version is 3.5.11. When the function
NsCreateThread call function pthread_create, the err
isn't zero, so it call function NsThreadFatal. And the
output message is "nsthreads: pthread_create failed in
NsCreateThread: Resource temporarily unavailable". But
it arises a core dump. I want to know why? The
maxthreads is 800 in sample_config.tcl. And the
following is the core analyse:
#0 0x4017b801 in __kill () from /lib/i686/libc.so.6
#1 0x4011e61b in raise (sig=6) at signals.c:65
#2 0x4017cd82 in abort ()
at ../sysdeps/generic/abort.c:88
#3 0x400d3651 in Tcl_PanicVA () at eval.c:41
#4 0x400d3674 in Tcl_Panic () at eval.c:41
#5 0x40064e28 in NsThreadFatal () at eval.c:41
#6 0x40066e90 in NsCreateThread () at eval.c:41
#7 0x40065c3a in Ns_ThreadCreate () at eval.c:41
#8 0x4003e791 in SchedThread () at eval.c:41
#9 0x40065cd5 in NsThreadMain () at eval.c:41
#10 0x40067264 in ThreadMain () at eval.c:41
#11 0x4011bbfd in pthread_start_thread
(arg=0x404cac00) at manager.c:262


  • Dossy Shiobara

    Dossy Shiobara - 2004-12-02

    Logged In: YES

    What OS is this? Looks like Linux -- what vendor/version?

    What is the kernel thread-max set to? "sysctl
    kernel.threads-max" will tell you on a system that supports

    What's "stacksize" configured to be in the AOLserver config

    How much memory is available on the system (physical RAM and
    swap space)? Approximately how many threads were running at
    the time this error occurred?

    -- Dossy

  • Dossy Shiobara

    Dossy Shiobara - 2004-12-02
    • milestone: 125737 --> aolserver3_4
    • assigned_to: nobody --> dossy
  • Dossy Shiobara

    Dossy Shiobara - 2005-01-11
    • status: open --> pending
  • Dossy Shiobara

    Dossy Shiobara - 2005-01-11

    Logged In: YES

    There's been no response for over a month. If you still
    want support on this issue, either re-open this ticket or
    open a new one with more information, please.

  • YanboMa

    YanboMa - 2005-01-11
    • status: pending --> open
  • YanboMa

    YanboMa - 2005-01-11

    Logged In: YES

    The question has been solved, because the tcl8.4.7 consists
    problem about memory leak. After I changed the tcl to 8.4.0,
    the question has vanished.

  • YanboMa

    YanboMa - 2005-01-11
    • status: open --> closed

Log in to post a comment.