What WINDOWS version you are using as an Operating System? Win NT 4.0, Win2k, XP or something else? Also version of JRE (Java Runtime Environment) or JDK (Java Development Kit) would be good to know. What is the HW config, do you use e.g. Nokia 6150 for SMS bearer.
How does this "hanging" appear to you, does the server just "die"?