Just am hosting, when i try to reindex, i got this error.
You need to increase limit in php.ini file following below steps, php.ini
Find the following section in the php.ini file.
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
Try increase the memory_limit value to 256M.
If the php memory_limit is already at 256M, you can increase it to 512M.
Save the changes.