有没有使用过berkeley db java edition的高手,现有一个问题急需解决,特在此寻求帮助。问题如下:
现需要向数据库中插入大概5000w条记录,数据项的key为String类型,data为自定义的A类型,处理的过程中发现数据库的日志文件(*.jdb)越来越大,直达50G,直接将我的硬盘撑爆,太恐怖了~~~,有没有解决的方法。在此,先感谢所有提供意见的朋友!我的je配置如下:# If true (default is false) NIO is used for all file I/O.
je.log.useNIO=true# If non-0 (default is 0) break all IO into chunks of this size.
# This setting is only used if je.log.useNIO=true.
# minimum = 0
# maximum = 67108864
je.log.chunkedNIO=8192# If true (default is false) direct NIO buffers are used.
# This setting is only used if je.log.useNIO=true.
je.log.directNIO=true# The maximum size of each individual JE log file, in bytes.
# minimum = 1000000
# maximum = 4294967296
# 100M
je.log.fileMax=104857600# maximum starting size of a JE log buffer
# 32M
je.log.bufferSize=33554432# The number of JE log buffers
# minimum = 2
je.log.numBuffers=2# The total memory taken by log buffers, in bytes. If 0, use
# 7% of je.maxMemory
# minimum = 6144
# 32M * 2
je.log.totalBufferBytes=67108864# By default, JE sizes the cache as a percentage of the maximum
# memory available to the JVM. For example, if the JVM is
# started with -Xmx128M, the cache size will be
# (je.maxMemoryPercent * 128M) / 100
# Setting je.maxMemory to an non-zero value will override
# je.maxMemoryPercent
# minimum = 1
# maximum = 90
je.maxMemoryPercent=60# If true (the default), use an LRU-only policy to select nodes for
# eviction. If false, select by Btree level first, and then by LRU.
je.evictor.lruOnly=false# The number of nodes in one evictor scan
# minimum = 1
# maximum = 1000
je.evictor.nodesPerScan=100# The cleaner will keep the total disk space utilization percentage
# above this value. The default is set to 50 percent.
# minimum = 0
# maximum = 90
je.cleaner.minUtilization=90
现需要向数据库中插入大概5000w条记录,数据项的key为String类型,data为自定义的A类型,处理的过程中发现数据库的日志文件(*.jdb)越来越大,直达50G,直接将我的硬盘撑爆,太恐怖了~~~,有没有解决的方法。在此,先感谢所有提供意见的朋友!我的je配置如下:# If true (default is false) NIO is used for all file I/O.
je.log.useNIO=true# If non-0 (default is 0) break all IO into chunks of this size.
# This setting is only used if je.log.useNIO=true.
# minimum = 0
# maximum = 67108864
je.log.chunkedNIO=8192# If true (default is false) direct NIO buffers are used.
# This setting is only used if je.log.useNIO=true.
je.log.directNIO=true# The maximum size of each individual JE log file, in bytes.
# minimum = 1000000
# maximum = 4294967296
# 100M
je.log.fileMax=104857600# maximum starting size of a JE log buffer
# 32M
je.log.bufferSize=33554432# The number of JE log buffers
# minimum = 2
je.log.numBuffers=2# The total memory taken by log buffers, in bytes. If 0, use
# 7% of je.maxMemory
# minimum = 6144
# 32M * 2
je.log.totalBufferBytes=67108864# By default, JE sizes the cache as a percentage of the maximum
# memory available to the JVM. For example, if the JVM is
# started with -Xmx128M, the cache size will be
# (je.maxMemoryPercent * 128M) / 100
# Setting je.maxMemory to an non-zero value will override
# je.maxMemoryPercent
# minimum = 1
# maximum = 90
je.maxMemoryPercent=60# If true (the default), use an LRU-only policy to select nodes for
# eviction. If false, select by Btree level first, and then by LRU.
je.evictor.lruOnly=false# The number of nodes in one evictor scan
# minimum = 1
# maximum = 1000
je.evictor.nodesPerScan=100# The cleaner will keep the total disk space utilization percentage
# above this value. The default is set to 50 percent.
# minimum = 0
# maximum = 90
je.cleaner.minUtilization=90
解决方案 »
- 在面板上绘图闪一下就没了
- 我使用Eclipse调试一个程序,不知哪里错了
- JToggleButton 问题 如何实现按下做一个循环,弹起跳出循环?
- 急!File 类中的delect() 方法怎么删除文件夹里面的子文件夹和文件呢?
- dispose()和setVisible()把界面怎么了??手写代码和机写的界面效果为什么有差异?
- 问一个算法问题,有两个框,其中第一个框输入1-20,第二个则只能输入20,第二个是20-40,则第二个框为40,依次类推,应该不算很复杂的
- java如何读取带空格的文件夹中的文件(如Program Files)
- 查找特定字符
- Java线程、集合大家用的多吗?用在哪?主要是用了哪些内容?有没有好的经验总结呢?
- 创建根结点
- 使用命令提示符往已有jar包添加新文件
- 一个线程处理的问题
能不能把DB的LOG关了请教,如何关闭,谢谢!
[/Quote]