"No more processes"

Hi:

I have a client server app.

The client is run in a loop.
The server is a single process that takes requests and assigns it to a
pool of worker threads. (It’s a standard resource manager)

The client (and server) hangs in it’s 5000th iteration, due to “No more
processes”.

  1. None of these (client, nor server) fork additional processes. How is
    it runing out of processes?

  2. Is there a limit on the no of processes per user on QNX? Where can I
    tweak it?

Help will be greatly appreciated,
Rommel

Are there some resources you aren’t releasing back to the system (timers,
pulses, etc)?

Kevin
“Rommel Dongre” <rdongre@pillardata.com> wrote in message
news:3DC04959.8060404@pillardata.com

Hi:

I have a client server app.

The client is run in a loop.
The server is a single process that takes requests and assigns it to a
pool of worker threads. (It’s a standard resource manager)

The client (and server) hangs in it’s 5000th iteration, due to “No more
processes”.

  1. None of these (client, nor server) fork additional processes. How is
    it runing out of processes?

  2. Is there a limit on the no of processes per user on QNX? Where can I
    tweak it?

Help will be greatly appreciated,
Rommel

Rommel Dongre wrote:

Hi:

I have a client server app.

The client is run in a loop.
The server is a single process that takes requests and assigns it to a
pool of worker threads. (It’s a standard resource manager)

The client (and server) hangs in it’s 5000th iteration, due to “No more
processes”.

  1. None of these (client, nor server) fork additional processes. How is
    it runing out of processes?

  2. Is there a limit on the no of processes per user on QNX? Where can I
    tweak it?

Run spin and check out the amount of free memory … QNX6.2 will die a
quiet ungreacefully death if there is not enough memory for its
operation :slight_smile:

Armin


Help will be greatly appreciated,
Rommel

spin shows that it has free memory before i start my test. but freezes
(like all other apps) when that threshold (of about 5000 iteretions) is
reached.
so icant guage anything from it.
would there be another way top find this ?

thanks,
rommel

Armin Steinhoff wrote:

Rommel Dongre wrote:

Hi:

I have a client server app.

The client is run in a loop.
The server is a single process that takes requests and assigns it to a
pool of worker threads. (It’s a standard resource manager)

The client (and server) hangs in it’s 5000th iteration, due to “No more
processes”.

  1. None of these (client, nor server) fork additional processes. How is
    it runing out of processes?

  2. Is there a limit on the no of processes per user on QNX? Where can I
    tweak it?


    Run spin and check out the amount of free memory … QNX6.2 will die a
    quiet ungreacefully death if there is not enough memory for its
    operation > :slight_smile:

Armin



Help will be greatly appreciated,
Rommel

In fact, when the app hangs, saying “No more processes”, spin spits out
the following message"
“Oh, oh. Why would anyone want to do this to us!” !!!

I am interested in knowing if this is a limitation of the system, so
something that I am not correctly handling in my code. I think it’s the
latter, but am lost as to what it could be…

Rommel Dongre wrote:

spin shows that it has free memory before i start my test. but freezes
(like all other apps) when that threshold (of about 5000 iteretions) is
reached.
so icant guage anything from it.
would there be another way top find this ?

thanks,
rommel

Armin Steinhoff wrote:


Rommel Dongre wrote:

Hi:

I have a client server app.

The client is run in a loop.
The server is a single process that takes requests and assigns it to a
pool of worker threads. (It’s a standard resource manager)

The client (and server) hangs in it’s 5000th iteration, due to “No more
processes”.

  1. None of these (client, nor server) fork additional processes. How is
    it runing out of processes?

  2. Is there a limit on the no of processes per user on QNX? Where can I
    tweak it?


    Run spin and check out the amount of free memory … QNX6.2 will die a
    quiet ungreacefully death if there is not enough memory for its
    operation > :slight_smile:

Armin



Help will be greatly appreciated,
Rommel

“Armin Steinhoff” <a-steinhoff@web.de> wrote in message
news:3DC26066.8816C4BF@web.de

Rommel Dongre wrote:

Hi:

I have a client server app.

The client is run in a loop.
The server is a single process that takes requests and assigns it to a
pool of worker threads. (It’s a standard resource manager)

The client (and server) hangs in it’s 5000th iteration, due to “No more
processes”.

  1. None of these (client, nor server) fork additional processes. How is
    it runing out of processes?

  2. Is there a limit on the no of processes per user on QNX? Where can I
    tweak it?

Have the program run only 4000th iteration and then look via spin/sin/pid
what resource is being consumed (my guess is file descriptor)

Run spin and check out the amount of free memory … QNX6.2 will die a
quiet ungreacefully death if there is not enough memory for its
operation > :slight_smile:

Armin



Help will be greatly appreciated,
Rommel

Heh…I remember seeing this message when I was looking at the source to
spin. I don’t have it here at home, it’s in San Jose at my work. I won’t
be there for a week or so, you might see if Igor Kovalenko poking around
somewhere, he would be able to tell you where and when that error message
comes to life. Try the QNX IRC channel, go to www.openqnx.com and you can
login.

Kevin



Unfortunately
“Rommel Dongre” <rdongre@pillardata.com> wrote in message
news:3DC31B4C.7070308@pillardata.com

In fact, when the app hangs, saying “No more processes”, spin spits out
the following message"
“Oh, oh. Why would anyone want to do this to us!” !!!

I am interested in knowing if this is a limitation of the system, so
something that I am not correctly handling in my code. I think it’s the
latter, but am lost as to what it could be…

Rommel Dongre wrote:

spin shows that it has free memory before i start my test. but freezes
(like all other apps) when that threshold (of about 5000 iteretions) is
reached.
so icant guage anything from it.
would there be another way top find this ?

thanks,
rommel

Armin Steinhoff wrote:


Rommel Dongre wrote:

Hi:

I have a client server app.

The client is run in a loop.
The server is a single process that takes requests and assigns it to
a
pool of worker threads. (It’s a standard resource manager)

The client (and server) hangs in it’s 5000th iteration, due to “No
more
processes”.

  1. None of these (client, nor server) fork additional processes. How
    is
    it runing out of processes?

  2. Is there a limit on the no of processes per user on QNX? Where can
    I
    tweak it?


    Run spin and check out the amount of free memory … QNX6.2 will die a
    quiet ungreacefully death if there is not enough memory for its
    operation > :slight_smile:

Armin



Help will be greatly appreciated,
Rommel

\