<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：Berkeley DB XML 多线程添加文档例子</title>
	<atom:link href="http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/</link>
	<description>Oracle Berkeley DB 中国研发团队的博客</description>
	<lastBuildDate>Thu, 15 Dec 2011 10:53:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-947</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Mon, 26 Apr 2010 05:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-947</guid>
		<description>不能删除这些文件，他们是日志文件，具体的请参考《Getting Started with Berkeley DB XML Transaction Processing》的第二章。</description>
		<content:encoded><![CDATA[<p>不能删除这些文件，他们是日志文件，具体的请参考《Getting Started with Berkeley DB XML Transaction Processing》的第二章。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：天门冬</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-918</link>
		<dc:creator>天门冬</dc:creator>
		<pubDate>Thu, 22 Apr 2010 06:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-918</guid>
		<description>蔡瀛，你好！
请问下，在运行的时候会生成很多的log.0000000001-log.00000000**的一大堆文件。这些文件主要是做什么的？可以删除吗，或者会自动清理？</description>
		<content:encoded><![CDATA[<p>蔡瀛，你好！<br />
请问下，在运行的时候会生成很多的log.0000000001-log.00000000**的一大堆文件。这些文件主要是做什么的？可以删除吗，或者会自动清理？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-855</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Fri, 16 Apr 2010 02:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-855</guid>
		<description>http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_txn/JAVA/logconfig.html#logregionsize

你可能要增加log region的大小。数据应该没有问题， 可以用dbxml shell打开那个container文件看看，拷贝到另外一个目录打开，或者把环境的那些文件都删除掉。</description>
		<content:encoded><![CDATA[<p><a href="http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_txn/JAVA/logconfig.html#logregionsize" rel="nofollow">http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_txn/JAVA/logconfig.html#logregionsize</a></p>
<p>你可能要增加log region的大小。数据应该没有问题， 可以用dbxml shell打开那个container文件看看，拷贝到另外一个目录打开，或者把环境的那些文件都删除掉。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：小王</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-853</link>
		<dc:creator>小王</dc:creator>
		<pubDate>Fri, 16 Apr 2010 01:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-853</guid>
		<description>就是在打开环境的时候就报错误了。我里面的数据有什么办法恢复吗？
Logging region out of memory; you may need to increase its size
The log message is null.
com.sleepycat.dbxml.XmlException: Error: Not enough space, errcode = DATABASE_ERROR</description>
		<content:encoded><![CDATA[<p>就是在打开环境的时候就报错误了。我里面的数据有什么办法恢复吗？<br />
Logging region out of memory; you may need to increase its size<br />
The log message is null.<br />
com.sleepycat.dbxml.XmlException: Error: Not enough space, errcode = DATABASE_ERROR</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-846</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Thu, 15 Apr 2010 05:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-846</guid>
		<description>&lt;a href=&quot;#comment-842&quot; rel=&quot;nofollow&quot;&gt;@小王 &lt;/a&gt; 
你说的出错了是什么意思？无法用openContainer打开？错误提示是什么呢？</description>
		<content:encoded><![CDATA[<p><a href="#comment-842" rel="nofollow">@小王 </a><br />
你说的出错了是什么意思？无法用openContainer打开？错误提示是什么呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：小王</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-842</link>
		<dc:creator>小王</dc:creator>
		<pubDate>Wed, 14 Apr 2010 05:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-842</guid>
		<description>你好，我的DBXML如果出错了，运行程序无法打开了。有什么办法恢复里面的数据吗？</description>
		<content:encoded><![CDATA[<p>你好，我的DBXML如果出错了，运行程序无法打开了。有什么办法恢复里面的数据吗？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-755</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Wed, 17 Mar 2010 10:21:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-755</guid>
		<description>请参考这里如何使用setLogRegionSzie: &lt;a href=&quot;http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_txn/JAVA/logconfig.html#logregionsize&quot; rel=&quot;nofollow&quot;&gt;http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_txn/JAVA/logconfig.html#logregionsize&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>请参考这里如何使用setLogRegionSzie: <a href="http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_txn/JAVA/logconfig.html#logregionsize" rel="nofollow">http://www.oracle.com/technology/documentation/berkeley-db/db/gsg_txn/JAVA/logconfig.html#logregionsize</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：天门冬</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-754</link>
		<dc:creator>天门冬</dc:creator>
		<pubDate>Tue, 16 Mar 2010 07:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-754</guid>
		<description>Hi，你好。又有个问题要麻烦你看下了。
我运行了一段时间后，出现了如下问题。我查看了Berkeley DB XML论坛，说可以用setLogRegionSize来增加大小。我试了好像没有用！
Logging region out of memory; you may need to increase its size
The log message is null.
com.sleepycat.dbxml.XmlException: Error: Not enough space, errcode = DATABASE_ERROR
        at com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_openContainer__SWIG_2(Native Method)</description>
		<content:encoded><![CDATA[<p>Hi，你好。又有个问题要麻烦你看下了。<br />
我运行了一段时间后，出现了如下问题。我查看了Berkeley DB XML论坛，说可以用setLogRegionSize来增加大小。我试了好像没有用！<br />
Logging region out of memory; you may need to increase its size<br />
The log message is null.<br />
com.sleepycat.dbxml.XmlException: Error: Not enough space, errcode = DATABASE_ERROR<br />
        at com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_openContainer__SWIG_2(Native Method)</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-697</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Wed, 03 Mar 2010 02:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-697</guid>
		<description>&lt;a href=&quot;#comment-696&quot; rel=&quot;nofollow&quot;&gt;@天门冬&lt;/a&gt; 
使用2.5版本的情况呢。出现死锁的问题，请参考这里解决死锁的问题：http://www.oracle.com/technology/documentation/berkeley-db/xml/gsg_xml_txn/java/lockingsubsystem.html#deadlockresolve</description>
		<content:encoded><![CDATA[<p><a href="#comment-696" rel="nofollow">@天门冬</a><br />
使用2.5版本的情况呢。出现死锁的问题，请参考这里解决死锁的问题：http://www.oracle.com/technology/documentation/berkeley-db/xml/gsg_xml_txn/java/lockingsubsystem.html#deadlockresolve</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：天门冬</title>
		<link>http://www.bdbchina.com/2010/03/berkeley-db-xml-%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%b7%bb%e5%8a%a0%e6%96%87%e6%a1%a3%e4%be%8b%e5%ad%90/comment-page-1/#comment-696</link>
		<dc:creator>天门冬</dc:creator>
		<pubDate>Wed, 03 Mar 2010 01:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=809#comment-696</guid>
		<description>Hi，蔡瀛你好。
根据你上面的多线程例子解决了我大部分的问题。但在我测试时，如果把数据量调大，还是会存在DB_LOCK_DEADLOCK问题，只是大大减小了出现次数。如下大概出现了2次。
我用的Berkeley DB XML版本：2.4.16
我把你上面的例子，把for里面的调整成：for (int i = 0; i &lt; 10000; i++) 
在过程中还是会遇到：insert error:Error: Db::put: DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock</description>
		<content:encoded><![CDATA[<p>Hi，蔡瀛你好。<br />
根据你上面的多线程例子解决了我大部分的问题。但在我测试时，如果把数据量调大，还是会存在DB_LOCK_DEADLOCK问题，只是大大减小了出现次数。如下大概出现了2次。<br />
我用的Berkeley DB XML版本：2.4.16<br />
我把你上面的例子，把for里面的调整成：for (int i = 0; i &lt; 10000; i++)<br />
在过程中还是会遇到：insert error:Error: Db::put: DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock</p>
]]></content:encoded>
	</item>
</channel>
</rss>
Դ
