NSL max allowed processes exceeded
A -1110 error rerturned from the NSLGetNumbAvailProc() call indicates that the number of activations has been exceeded, and the calling instance should be made to deactivate and terminate. Please note that this doesn't work in Java because of the behavior of the Java Virtual Machine. All running Java applications (and not just instances of your own application) will be counted.
In much the same way you could also use an application agility variable to police the number of running instances. You application would have to check this number and compare with the value of this variable. Again, to work, this depends on all running instances being visible to all users.
Solution
Deactivate and terminate the caller of NSLGetNumbAvailProc() when -1110 is returned. Alternatively, increase the number of allowed processes on the server. For Java apps, set the max to 0.