Finding an infinite loop?

F

flarosa

Hi,

I have a web application running on JBoss. Every few hours I find that
the CPU meter of my machine is pegged near 100% and things are running
very slowly, although the application is still active and able to
serve requests.

I suspect that some request or circumstance is causing the server to
go into an infinite loop, but I don't know how to reproduce it on a
test machine.

Is there a way to query the JVM once it is in this state and try to
figure out what code is running?

Thanks,
Frank
 
A

a24900

Is there a way to query the JVM once it is in this state and try to
figure out what code is running?

Generate a thread dump. If supported on your platform generate a stack
trace, too.
 
A

Adam Maass

flarosa said:
Hi,

I have a web application running on JBoss. Every few hours I find that
the CPU meter of my machine is pegged near 100% and things are running
very slowly, although the application is still active and able to
serve requests.

I suspect that some request or circumstance is causing the server to
go into an infinite loop, but I don't know how to reproduce it on a
test machine.

Is there a way to query the JVM once it is in this state and try to
figure out what code is running?

My first instinct is garbage collection.

-- Adam Maass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top