The Error "EXCEPTION: 11DbException
Db::put: Cannot allocate memory bitcoin in ProcessMessage() " is comming because you are using a very old version of bitcoind(0.3.24) . I had the same problem and I upgraded it to the latest bitcoind version(0.9.3) and now every thing is working fine for me. So I will suggest you to upgrate it ASAP.
You can see below now its working for me -
Array ( [version] => 90300 [protocolversion] => 70002 [walletversion] => 10500 [balance] => 0 [blocks] => 299134 [timeoffset] => -73 [connections] => 32 [proxy] => [difficulty] => 8000872135.9682 [testnet] => [keypoololdest] => 1415022680 [keypoolsize] => 101 [paytxfee] => 0 [relayfee] => 1.0E-5 [errors] => )