I have one thread program that has infinite loop. It does mean that It will never be finished, unless and until JVM shuts down. Some times it works pretty well. But most of times it stopped automatically. What might be the problem for this issue? Is there JVM configuration I might have missed?