In my server program, when a request comes, I create a new thread for that.

I put memory limit to program with setrlimit. So, when the limit is reached, new thread cannot be created.

I want to tell client back that there is system problem. But catching "Throwable" does not suffice for this it seems like. Program still breaks and tells that "Error creating thread". Is there any normal way to catch this event?

Reply via email to