当使用lucene 3.5.0时,在索引到RAMDirectory之后,有没有一种简单的方法可以知道它使用了多少内存?
发布于 2012-01-15 05:45:11
http://lucene.apache.org/java/3_5_0/api/core/org/apache/lucene/store/RAMDirectory.html#sizeInBytes%28%29
sizeInBytes
public final long sizeInBytes()
返回该目录下所有文件的总大小,以字节为单位。它当前被量化为RAMOutputStream.BUFFER_SIZE。
https://stackoverflow.com/questions/8864598
复制相似问题