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 / September 2006

Tip: Looking for answers? Try searching our database.

Applet uses more and more CPU.

Thread view: 
AW på ZRX - 11 Sep 2006 10:16 GMT
Hi

I have a JApplet running in IE 6.0 with the java 1.5 plugin.

Over time the applet uses more and more CPU. It starts with small peaks, and
then the peaks gets more and more frequent, finally raising the CPU level to
a 100% causing the applet not to respond. It happens over a period of 24 -
48 hours.

The applet is a GUI, talking to a server using messagequeing (IBM MQ series)
and communicates with the browser using JSObject. Apart form this there are
no connections to the "world outside".

Using a java profiling tool (OptimizeIt) I have found that it's the main
thread that uses the CPU. However I can not see what the main thread is
doing (no information avaliable in OptimizeIt).

I don't understand this. The main thread should run when the applet starts,
and then do nothing (an I wrong here?), as the rest of the execution is made
on the AWT-Eventthread, and some other threads which I create myself. The
threads which I have created myself all behave like expected.

Has anybody got any ideas about what the main thread could be doing ?

Allan
Andrew Thompson - 11 Sep 2006 10:58 GMT
...
(applet)
> Has anybody got any ideas about what the main thread could be doing ?

Have you tried raising the trace level of the
output in the Java console in your browser?

Trace level '5' might provide more information.

Andrew T.
AW på ZRX - 11 Sep 2006 11:23 GMT
> Have you tried raising the trace level of the
> ouput in the Java console in your browser?

> Trace level '5' might provide more information.

There are no messages even with level 5. (Of cause there are some messages
when the Applet starts, but while runing normally there are no messages.)

Allan
Tris Orendorff - 13 Sep 2006 19:12 GMT
> Over time the applet uses more and more CPU. It starts with small peaks,

and
> then the peaks gets more and more frequent, finally raising the CPU level to
> a 100% causing the applet not to respond. It happens over a period of 24

-
> 48 hours.

Could there be a memory leak causing the GC to go wild?

Signature

Sincerely,

Tris Orendorff
[Q: What kind of modem did Jimi Hendrix use?
A: A purple Hayes.]



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.