String Deduplication for Java']Java-based Middleware in Virtualized Environments

被引:1
作者
Horie, Michihiro [1 ]
Ogata, Kazunori [1 ]
Kawachiya, Kiyokuni [1 ]
Onodera, Tamiya [1 ]
机构
[1] IBM Res Tokyo, Tokyo, Japan
关键词
Measurement; Performance; !text type='Java']Java[!/text; Memory reduction; String allocation; Calling context; String sharing;
D O I
10.1145/2674025.2576210
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 across 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 Day Trader and the DaCapo benchmark suite. Our prototype implementation achieved 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 Day Trader was maintained even under a situation of high density guest VMs in a KVM host machine.
引用
收藏
页码:177 / 188
页数:12
相关论文
共 18 条
[11]   Object equality profiling [J].
Marinov, D ;
O'Callahan, R .
ACM SIGPLAN NOTICES, 2003, 38 (11) :313-325
[12]  
Maruyama H., 2002, XML JAVA DEV WEB APP
[13]   The causes of bloat, the limits of health [J].
Mitchell, Nick ;
Sevitsky, Gary .
ACM SIGPLAN NOTICES, 2007, 42 (10) :245-260
[14]  
Mitchell N, 2009, LECT NOTES COMPUT SC, V5653, P77, DOI 10.1007/978-3-642-03013-0_5
[15]  
Oracle Corporation, JSR 000121 APPL IS A
[16]  
Richard JonesRafael D. Lins., 1996, Garbage Collection: Algorithms for Automatic DynamicMemoryManagement
[17]  
Shirazi J., 2003, JAVA PERFORMANCE TUN, V2nd
[18]   Memory resource management in VMware ESX server [J].
Waldspurger, CA .
USENIX ASSOCIATION PROCEEDINGS OF THE FIFTH SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION, 2002, :181-194