This was when rebuilding the master data. I've emailed the problem to our host. Thought I'd let you know as the amount of memory available has been fine for the rest of our testing on this sandbox server.
[Edit: reply from Tim @ Nimbus:
It shows it's used more than 1GB of memory. That sounds like a memory leak. You can increase it in the config.php file but that might not fix your problem.]