I agree with CLKD. You should make sure you are drinking water whilst you are exercising as if you're sweating with the exercise, you can become dehydrated. You should also eat an hour or so before you exercise but obviously, something sensible. I think if your GP didn't seem overly concerned, it's obviously nothing serious. I would ask one of the staff at the gym what they advise.