I found two meanings for your question:
If something such as a marriage or a business is on the rocks, it is experiencing very severe difficulties and looks likely to end very soon.
If you have an alcoholic drink such as whisky on the rocks, you have it with ice cubes in it.
Both definitions come from Collins COBUILD dictionary.
- For Teachers