Memory Error : resize mutex region

438 views
Skip to first unread message

tlem...@gmail.com

unread,
Nov 8, 2012, 3:55:15 AM11/8/12
to rdfli...@googlegroups.com
Hello,

I'm using rdflib with sleepycat as database and python 2.7 as development language.
From time to time, while opening my database (with graph.open), I get the following error:

MemoryError: (12, 'Not enough space -- unable to allocate memory for mutex; resize mutex region')

I tried to find where I should bring modifications in python modules but I have no solution.
How shall I proceed to "resize mutex region" ?

Thanks a lot for help.

Thirry Le Meur

Gunnar Aastrand Grimnes

unread,
Nov 8, 2012, 4:04:10 AM11/8/12
to rdfli...@googlegroups.com
Hmm - you can probably resolve it by running "db_recover" in your DB
folder when it HAS happened.

Most problems with sleepycat happen because the DB is not cleanly
closed (not sure about this one though) - you can try using a finally
clause or the "atexit" module to make sure your DB is closed.
Do you open it many times?

I've not tried this, but apparently you can increase the mutex region by putting

mutex_set_max 10000

in a file called DB_CONFIG in your DB directory and running db_recover.
(from http://docs.oracle.com/cd/E17076_02/html/api_reference/C/mutex_set_max_parameter.html)

Somehow I doubt that actually running of mutexes is the problem though.

Maybe someone else can give a more definite answer!

- Gunnar
> --
> You received this message because you are subscribed to the Google Groups "rdflib-dev" group.
> To post to this group, send email to rdfli...@googlegroups.com.
> To unsubscribe from this group, send email to rdflib-dev+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msg/rdflib-dev/-/aeonA87b5kkJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
http://gromgull.net

tlem...@gmail.com

unread,
Nov 8, 2012, 11:05:15 AM11/8/12
to rdfli...@googlegroups.com, tlem...@gmail.com
Thanks for the answer.
I'll try the different solutions you gave me. I'll keep you informed.
Thierry
Reply all
Reply to author
Forward
0 new messages