Abstract
To increase the memory efficiency in physical servers is a significant concern for increasing the number of virtual machines (VM) in them. When similar web application service runs in each guest VM, many string data with the same values are created in every guest VMs. These duplications of string data are redundant from the viewpoint of memory efficiency in the host OS. This paper proposes two approaches to reduce the duplication in Java string in a single Java VM (JVM) and across JVMs. The first approach is to share string objects cross JVMs by using a read-only memory-mapped file. The other approach is to selectively unify string objects created at runtime in the web applications. This paper evaluates our approach by using the Apache DayTrader and the DaCapo benchmark suite. Our prototype implementation chieved 7% to 12% reduction in the total size of the objects allocated over the lifetime of the programs. In addition, we observed the performance of DayTrader was maintained even under a situation of high density guest VMs in a KVM host machine.
- Apache geronimo v2.0 daytrader. http://geronimo.apache.org/GMOxDOC22/daytrader-a-more-complex-application.html.Google Scholar
- Apache OpenJPA. http://openjpa.apache.org/.Google Scholar
- IBM corporation.WebSphere Application Server. http://www-01.ibm.com/software/webservers/appserv/was/.Google Scholar
- JVM Tool Interface. http://docs.oracle.com/javase/6/docs/platform/jvmti/jvmti.html.Google Scholar
- The Apache Software Foundation. Apache JMeter. http://jakarta.apache.org/jmeter/.Google Scholar
- The API documentation of the StringBuilder class. http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html.Google Scholar
- Andrea Arcangeli, Izik Eidus, and Chris Wright. Increasing memory density by using ksm. In In Proceedings of the Linux Symposium, pages 19--28, 2009.Google Scholar
- C. Bailey. Java Technology, IBM Style: Introduction to the IBM Developer Kit: An overview of the new functions and features in the IBM implementation of java 5.0, 2006. http://www.ibm.com/developerworks/java/library/j-ibmjava1.html.Google Scholar
- DaCapo benchmark suite. http://www.dacapobench.org.Google Scholar
- Stephen M. Blackburn, Robin Garner, Chris Hoffmann, Asjad M. Khang, Kathryn S. McKinley, Rotem Bentzur, Amer Diwan, Daniel Feinberg, Daniel Frampton, Samuel Z. Guyer, Martin Hirzel, Antony Hosking, Maria Jump, Han Lee, J. Eliot B. Moss, Aashish Phansalkar, Darko Stefanović, Thomas VanDrunen, Daniel von Dincklage, and Ben Wiedermann. The dacapo benchmarks: Java benchmarking development and analysis. In Proceedings of the 21st Annual ACM SIGPLAN conference on Object-Oriented Programming Systems, Languages, and Applications, OOPSLA '06, pages 169--190. ACM, 2006. Google Scholar
Digital Library
- Shigeru Chiba and Rei Ishikawa. Aspect-Oriented Programming beyond Dependency Injection. In Proceedings of the 19th European conference on Object-oriented programming, pages 121--143. Springer, 2005. Google Scholar
Digital Library
- AdrianaE. Chis, Nick Mitchell, Edith Schonberg, Gary Sevitsky, Patrick O'ullivan, Trevor Parsons, and John Murphy. Patterns of memory inefficiency. In ECOOP '11: Proceedings of the 25th European Conference on Object-Oriented Programming, Lecture Notes in Computer Science, pages 383--407. Springer Berlin Heidelberg, 2011 Google Scholar
Digital Library
- Eric Clayberg and Dan Rubel. Eclipse Infrastructure. In Eclipse Plug-ins, pages 107--133. Addison-Wesley Professional, 3 edition, 2008.Google Scholar
- Oracle Corporation. Jsr-000121 application isolation api specification.Google Scholar
- James Gosling and Billy Joy. The Java Language Specification, Third Edition. Addison Wesley, 2005. Google Scholar
Digital Library
- Nikola Grcevski, Allan Kielstra, Kevin Stoodley, Mark Stoodley, and Vijay Sundaresan. Java just-in-time compiler and virtual machine improvements for server and middleware applications. In Proceedings of the 3rd Conference on Virtual Machine Research and Technology Symposium - Volume 3, pages 151--162, Berkeley, CA, USA, 2004. USENIX Association. Google Scholar
Digital Library
- Kiyokuni Kawachiya, Kazunori Ogata, and Tamiya Onodera. Analysis and reduction of memory inefficiencies in Java strings. In Proceedings of the 23rd ACM SIGPLAN conference on Object-Oriented Programming Systems Languages and Applications, OOPSLA '08, pages 385--402. ACM, 2008. Google Scholar
Digital Library
- Gregor Kiczales, Erik Hilsdale, Jim Hugunin, Mik Kersten, Jeffrey Palm, and William G. Griswold. An Overview of AspectJ. In ECOOP '01 - Object-Oriented Programming: 15th European Conference, LNCS 2072, pages 327--353. Springer, 2001. Google Scholar
Digital Library
- KVM. http://www.linux-kvm.org/page/main_page.Google Scholar
- Darko Marinov and Robert O'Callahan. Object equality profiling. In Proceedings of the 18th Annual ACM SIGPLAN Conference on Object-Oriented Programing, Systems, Languages, and Applications, OOPSLA '03, pages 313--325, New York, NY, USA, 2003. ACM. Google Scholar
Digital Library
- Hiroshi Maruyama, Kent Tamura, Naohiko Uramoto, Makoto Murata, Andy Clark, Yuichi Nakamura, Ryo Neyama, Kazuya Kosaka, and Satoshi Hada. XML and Java: Developing Web Applications, 2nd Edition. Addison Wesley, 2002. Google Scholar
Digital Library
- Nick Mitchell, Edith Schonberg, and Gary Sevitsky. Making sense of large heaps. In ECOOP '09: Proceedings of the 23th European Conference on Object-Oriented Programming, Lecture Notes in Computer Science, pages 77--97. Springer Berlin Heidelberg, 2009. Google Scholar
Digital Library
- Nick Mitchell and Gary Sevitsky. The causes of bloat, the limits of health. In Proceedings of the 22nd annual ACM SIGPLAN conference on Object-oriented programming systems and applications, pages 245--260. ACM, 2007. Google Scholar
Digital Library
- Jones Richard and Lins Rafael. Garbage Collection: Algorithms for Automatic Dynamic Memory Management. Wiley, 1996. Google Scholar
Digital Library
- Jack Shirazi. Java Performance Tuning. O'Reilly Media Inc., 2003. Google Scholar
Digital Library
- Carl A. Waldspurger. Memory resource management in vmware esx server. SIGOPS Oper. Syst. Rev., 36(SI):181--194, 2002. Google Scholar
Digital Library
Index Terms
String deduplication for Java-based middleware in virtualized environments
Recommendations
String deduplication for Java-based middleware in virtualized environments
VEE '14: Proceedings of the 10th ACM SIGPLAN/SIGOPS international conference on Virtual execution environmentsTo increase the memory efficiency in physical servers is a significant concern for increasing the number of virtual machines (VM) in them. When similar web application service runs in each guest VM, many string data with the same values are created in ...
Transparently bridging semantic gap in CPU management for virtualized environments
Consolidated environments are progressively accommodating diverse and unpredictable workloads in conjunction with virtual desktop infrastructure and cloud computing. Unpredictable workloads, however, aggravate the semantic gap between the virtual ...
Understanding Performance Interference of I/O Workload in Virtualized Cloud Environments
CLOUD '10: Proceedings of the 2010 IEEE 3rd International Conference on Cloud ComputingServer virtualization offers the ability to slice large, underutilized physical servers into smaller, parallel virtual machines (VMs), enabling diverse applications to run in isolated environments on a shared hardware platform. Effective management of ...







Comments