Where is the precise exception being thrown? The message suggests the database is too large or you are querying a DB and retrieving something which cannot be loaded due to system memory.