when getting "Cannot allocate memory" errors when accessing a repository via http try running:
svnadmin recover /path/to/repos
and then make sure that the permissions for the db directory inside the repos are still ok. you might have to run
chmod -R 776 /path/to/repos
for more info see http://subversion.tigris.org/faq.html#bdb-cannot-allocate-memory