Bitcoin core – Bitcoind 0.5.3 stuck in block 364,670 – What to do?

I compiled bitcoind using the same steps as last year. In particular I put myself DB_CONFIG:

database set_lg_dir
set_lk_max_locks 537000

Unfortunately, once I arrived at block 364,670 (2015-07-10) I was treated with:

EXCEPTION: 11DbException
Db :: put: memory can not be allocated
bitcoin in ProcessMessage ()

I tried to raise set_lk_max_locks to 1000000 but that did not help. This happens immediately upon restarting the node, so it does not appear to be a RAM problem.

the ~ / .bitcoin / database It looks pretty big, assuming this is the equivalent of today ~ / .bitcoin / chainstate and “ ~ / .bitcoin / blocks / index`.

$ du -s ~ / .bitcoin
92047404 # 88 GB
$ du -s ~ / .bitcoin / database
42169668 # 41 GB

How can I get the synchronization to continue?