ScienceDirect® Home Skip Main Navigation Links
You have guest access to ScienceDirect. Find out more.
 
Home
Browse
My Settings
Alerts
Help
 Quick Search
 Search tips (Opens new window)
    Clear all fields    
Computers & Security
Volume 24, Issue 3, May 2005, Pages 192-207
 
Font Size: Decrease Font Size  Increase Font Size
 Abstract - selected
Article
Purchase PDF (281 K)

 
 
 
Related Articles in ScienceDirect
View More Related Articles
 
View Record in Scopus
 
doi:10.1016/j.cose.2004.08.006    How to Cite or Link Using DOI (Opens New Window)
Copyright © 2004 Elsevier Ltd All rights reserved.

Performance of the Java security manager

Almut HerzogCorresponding Author Contact Information, E-mail The Corresponding Author and Nahid ShahmehriE-mail The Corresponding Author

Department of Computer and Information Science, Linköping University, 581 83 Linkoping, Sweden

Received 7 April 2004; 
revised 11 August 2004; 
accepted 18 August 2004. 
Available online 17 November 2004.

Purchase the full-text article



References and further reading may be available for this article. To view references and further reading you must purchase this article.

Abstract

The Java Security Manager is one major security feature of the Java programming language. However, in many Java applications the Security Manager is not enabled because it slows execution time. This paper explores the performance of the Java Security Manager in depth, identifies the permissions with the worst performance and gives advice on how to use the Security Manager in a more efficient way.

Our performance test shows that the CPU execution time penalty varies between 5% and 100% per resource access statement. This extreme range is due to the fact that some resource accesses are costly (such as file and socket access) and therefore hide the performance penalty for the access control check almost completely. The time penalty is much more noticeable with access to main memory resources (such as Java objects).

In order to achieve reasonable response times, it is of utmost importance to tune garbage collection because the Java Security Manager creates short-lived objects during its permission check. Also, the order of permissions in the policy file can be important.

Keywords: Java; Performance; Security; Security Manager; Access controller; Permission; Policy; CPU execution time

Article Outline

Introduction
The Java security manager
Test design
Results
Memory penalty
Time penalty
Different permissions
Permissions and permission collections
Protection domains
Policy file
Java virtual machine options
Comments on hprof
Advice to application developers
Conclusion
Appendix
References
Vitae








Computers & Security
Volume 24, Issue 3, May 2005, Pages 192-207
 
Home
Browse
My Settings
Alerts
Help
Elsevier.com (Opens new window)
About ScienceDirect  |  Contact Us  |  Information for Advertisers  |  Terms & Conditions  |  Privacy Policy
Copyright © 2008 Elsevier B.V. All rights reserved. ScienceDirect® is a registered trademark of Elsevier B.V.