Performance Issues

Enforcing access control rules requires runtime checks. So it is natural to ask: What are the performance implications? Will these runtime checks degrade the runtime performance of my application significantly? What factors impact this degradation? What can I do to better understand and manage it?

To answer these questions, let us do a simple experiment and collect some performance data. We write a program that carries out an access controlled operation in a loop and run it under different policies. Listing 5-14 shows such a program that retrieves a system property, by invoking the static method getProperty() on the System class, a security sensitive operation, inside a loop and times the loop. Many rounds of measurements are ...

Get J2EE™ Security for Servlets, EJBs and Web Services: Applying Theory and Standards to Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.