[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Berkeley DB error while closing/opening 'xxx' database/table

From: Brian Buesker <bbuesker_at_qualcomm.com>
Date: 2004-09-28 05:00:02 CEST

I've been intermittently getting errors like the following:

[Mon Sep 27 19:49:44 2004] [error] [client 127.0.0.1] (20014)Error
string not specified yet: Berkeley DB error while closing 'nodes'
database for filesystem /opt/repos/svn/test/db:\nCannot allocate memory
[Mon Sep 27 19:49:44 2004] [error] [client 127.0.0.1] (20014)Error
string not specified yet: Berkeley DB error while opening 'copies' table
for filesystem /opt/repos/svn/test/db:\nCannot allocate memory

So far, I have seen these occur in two different scenarios. The first is
when doing a checkout of a directory which contains some large
subdirectories. When it occurs in this situation, it usually happens
once the large directory is completely checked out and svn starts to try
to check out a new directory.

The other case in which I've seen it happen is when doing many HTTP HEAD
requests in a row, such as done by the attached script. I am using HTTP
HEAD requests because I need to check if a given file exists, and I
can't use an svn ls through the Perl bindings since that apparently
leaks memory as I previously reported.

Any ideas on what may be causing this? I started with a freshly created
repository, and ran the attached script, and it still happend. Even if I
run svnadmin recover after it happens and then run the script again, I
still get these kind of errors.

Here is my environment:

OS: CentOS 3.1

SVN Version:
$ svn --version
svn, version 1.1.0 (Release Candidate 3)
   compiled Sep 27 2004, 09:12:49

Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' schema
  - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' schema

Compiler:
$ gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Perl Version:
$ perl -v

This is perl, v5.8.5 built for i386-linux-thread-multi

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

Berkeley DB Version: 4.2.52

Please let me know if there is any more information I can provide to
help debug this problem.

Thanks,
Brian Buesker

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Tue Sep 28 05:02:10 2004

This is an archived mail posted to the Subversion Users mailing list.