Does implementing the Java Security Manager result in decreased performance?
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.
In real use case scenario, Content written within Java.policy file is handled by Java security Manager. It is always suggested to start the policy file with the blank one and in case of security exception add the necessary permissions. Repeat the process until you have minimal set of permissions to run the application. This will let you to avoid unnecessary permission check which definitely helps to improve performance.
© 2022 - 2024 — McMap. All rights reserved.