Server has 100% CPU usage and 5% memory usage??

Ok so i just bought a slicehost server. The minimum one with 256MB ram and 10GB disk space. I ran a simple java server program I have, I can post the code if necessary, and it caused my slice to have 100% cpu usage and 5% memory usage. Any idea why this is or how i can track what is causing this?

A little about the server program. It is a multi-threaded server application. All it basically does is multiplex data across sockets to the two clients playing a game. Even with no clients connected it has 100% cpu usage.

Any help is greatly appreciated.

nevermind. infinite while loop was causing the problem.

FYI - I split this into another topic so that people can more easily find VPS info.

http://www.java-gaming.org/index.php/topic,23461.0.html