I've encountered an error with the feed not running completely. There are a total of 853 products in the store. I'm having to run the feed in two batches with 800 products in one go with a further 53 products in the 2nd go. The error message shown is - WARNING: An Error occurred, please refresh the page and try again. Checking the debug files I see the following message:

[11-Feb-2015 16:02:21 Europe/London] PHP Fatal error: 2008:MySQL client ran out of memory :: SELECT master_categories_id FROM products WHERE products_id = 2529 LIMIT 1;

[11-Feb-2015 16:02:21 Europe/London] PHP Fatal error: 2013:Lost connection to MySQL server during query :: select count(*) as total from sessions where sesskey = 'hllll7cj3169a9hbkfjoi3jo02'

A couple of points:

1. The feed was working fine up until two weeks when the site was upgraded to php version 5.4.35
2. If the shipping options is not set within the Google Merchant Center Feeder Configuration then the feed runs fully without any issue.
3. Removing some extra data such as additional image or payment type usually helps add 2 or 3 products to the number it will run successfully.

Server Settings
max_execution_time: 60
max_file_uploads: 256M
max_input_nesting_level: 64
max_input_time: 1024
max_input_vars: 8000
memory_limit: 1000M
Zen Cart Version: 1.5.1
Host: 1&1

Any advice would be appreciated.