Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Finding an infinite loop?

Thread view: 
flarosa - 04 May 2007 21:09 GMT
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
a24900@googlemail.com - 04 May 2007 22:18 GMT
> 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.
Adam Maass - 07 May 2007 04:47 GMT
> Hi,
>
[quoted text clipped - 9 lines]
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.