* pthread_create: out of space
@ 1995-11-13 13:21 Stephen Campbell
0 siblings, 0 replies; only message in thread
From: Stephen Campbell @ 1995-11-13 13:21 UTC (permalink / raw)
To: tru64-unix-managers
We have a multi-threaded application running under DEC Unix version 3.2.
It's a classic server, and each request causes a new thread to be created.
Threads typically live for 5 to 10 minutes; never more than 20. As soon as
a thread is created, it is pthread_detached by the main loop. On a normal
day there may be 20,000 requests (threads) created and terminated. At busy
periods of the day, we typically see 250 or 300 threads active at a time.
Under peak load, we often see pthread_create failing with errno = ENOMEM.
We can't figure out why. We have searched in vain for a traditional memory
leak (though we might have missed one). The overall size of the process does
not seem excessive; it might reach 20MB as shown by 'ps l'. Our sysconfigtab
has the following:
proc:
per-proc-stack-size = 4194304
which we think is large enough. The machine has 128MB of real memory, and
though it does a number of other functions (heavy sendmail, ftpd, etc) it does
not seem to critically short of swap space as shown by swapon -s.
We would be interested in any hints as to why this application is running out
of space.
Steve Campbell
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-11-13 13:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-13 13:21 pthread_create: out of space Stephen Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox