Search code examples
javaperformancesecuritysecuritymanager

Does Java Security Manager decrease performance?


Does implementing the Java Security Manager result in decreased performance?


Solution

  • That depends entirely on the details of the implementation, and on the application.

    It's certainly possible to implement a Security Manager that takes a long time to check certain permissions and an application that requires these premissions to be checked very frequently, resulting in horrible performance.

    But typically, checking permissions does not happen often enough to cause significant performance decreases.