Reputation: 1764
My program seems to go into some infinite loop, but isn't giving any heap error or anything. Still I would like to know where the loop is.
I am using Eclipse and running in normal mode (not in debug mode). Also my program is nondeterministic, so I can't run it again to recreate the infinite loop.
Is there a way to find the infinite loop?
Upvotes: 1
Views: 377
Reputation: 946
I guess You could run your application under profiler VisualVM It's help you to find your infinity loop (analize iterations, process loading and so on parameters)
Upvotes: 0
Reputation: 500327
One way is to wait until the infinite loop shows up, then use jstack -l <pid>
to get a stack dump, and analyze that.
With a modicum of luck, this should suggest some lines of further inquiry.
Upvotes: 1