Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Performance Tuning Guide

- Previous: HTTP Session Handling
- Next: EJB Performance Tuning

#### Disable Security Manager

The security manager is expensive because calls to required resources must call the `doPrivileged()` method and must also check the resource with the `server.policy` file. If you are sure that no malicious code will be run on the server and you do not use authentication within your application, then you can disable the security manager.

To disable use of the `server.policy` file, use the Admin Console. Under Configurations > config-name > JVM Settings (JVM Options) delete the option that looks like this:

    -Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy

- Previous: HTTP Session Handling
- Next: EJB Performance Tuning

- © 2010, Oracle Corporation and/or its affiliates