Run the said programs from the terminal and look at the output. If it is indeed a memory problem, there is nothing you can do, unfortunately n900 have a relatively small amount of RAM by todays standards. That was one of the main reasons for the making of neo900.