
On the rack
Emotional Stress
Used to show that someone is experiencing a lot of emotional stress, like worry or fear. 
Physical metaphor
The phrase stems from the idea of being stretched painfully on a medieval torture device, the rack. 
Informal Use
It's an informal phrase, more appropriate in casual conversations, not formal situations. 