authorizationservices

Store global token in Cache

我是研究僧i 提交于 2019-12-11 07:32:04
问题 I have a module which in the AuthorizationServiceEventHandler Checking or Complete Events i'm sending a request to an external API which gives me some instructions like what modules should be enabled/displayed to the user . The appraoch i want to follow is storing this instructions somewhere probably on the cache and then whenever a Service module Exposed being requested by the user (through a controller ) the module will check the instructions using the CacheManager . the problem with the

I can't run more than 100 processes

安稳与你 提交于 2019-12-10 10:06:21
问题 I have a massive number of shell commands being executed with root/admin priveleges through Authorization Services' "AuthorizationExecuteWithPrivileges" call. The issue is that after a while (10-15 seconds, maybe 100 shell commands) the program stops responding with this error in the debugger: couldn't fork: errno 35 And then while the app is running, I cannot launch any more applications. I researched this issue and apparently it means that there are no more threads available for the system

I can't run more than 100 processes

纵然是瞬间 提交于 2019-12-05 23:07:50
I have a massive number of shell commands being executed with root/admin priveleges through Authorization Services' "AuthorizationExecuteWithPrivileges" call. The issue is that after a while (10-15 seconds, maybe 100 shell commands) the program stops responding with this error in the debugger: couldn't fork: errno 35 And then while the app is running, I cannot launch any more applications. I researched this issue and apparently it means that there are no more threads available for the system to use. However, I checked using Activity Monitor and my app is only using 4-5 threads. To fix this