I've met the same issue several times. The process took lots of memory and then got stuck. After ending the generate_client_meta_cache process in task manager TEM made a retry and the second generate_client_meta_cache completed successfully and quickly. But the reason of such behaviour is unclear to me.
I have killed the BMIDE, Process after stuck it,
Then clear all the teamcenter related caches and re-run the TEM.
So after that deployment is done sucessfully.
Mayur K. Thange