Skip to main content

100% cpu with plugin on ubuntu

4 replies [Last post]
keeskuip
Offline
Joined: 2003-06-17

I'm using:

java version "1.6.0_05-ea"
Java(TM) SE Runtime Environment (build 1.6.0_05-ea-b06)
Java HotSpot(TM) Client VM (build 1.6.0_05-ea-b06, mixed mode, sharing)

Starting a java program from the commandline is OK but
i'm getting 100% cpu when i'm trying to start an applet.
The browser is not responding and I have to 'kill-9' it.
If I change to an official version of 1.6.0_03 all is well.

Ideas?

Kees.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
linuxhippy
Offline
Joined: 2004-01-07

The problem with the browser eating 99% cpu while starting an applet is a known problem, also that the browser will crash - as far as I know a fix is the works.

Could you please post the output of pstack here?
Simply look in "top" which process-id's java_vm and firefox_bin have, and then do:
pstack firefox-pid
pstack java-vm-pid
killall -3 java_vm

Also configure in "ControlPanel" -> Advanced -> Show Console. The actual names can differ, I don't have an English version.
This should bring up the java-console when you start an applet, press the 5-key as soon as it appears and also post the output here.

Good luck, lg Clemens

keeskuip
Offline
Joined: 2003-06-17

I get 100% cpu and I have to kill the browser because it stays like that.

Other applets work but the one on yahoo gives problems (no problem with jdk1.5)
I get 100% cpu when visiting the following site:
http://games.yahoo.com/play/do&cat=intermediate&ss=1

I took a the stacktrace:

Java Plug-in 1.6.0_10-ea
Using JRE version 1.6.0_10-ea Java HotSpot(TM) Client VM
User home directory = /xxx/xxx
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to
----------------------------------------------------
Dump thread stack ...
----------------------------------------------------
2007-12-06 19:37:40
Full thread dump Java HotSpot(TM) Client VM (1.6.0_10-ea-b07 mixed mode, sharing):

"Thread-45" prio=10 tid=0x0813c800 nid=0x1a42 waiting on condition [0xb407e000..0xb407ee40]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at sun.plugin.util.AnimationPanel.run(AnimationPanel.java:1036)
at java.lang.Thread.run(Thread.java:619)

"thread applet-y.vmd.0" prio=10 tid=0x0811c800 nid=0x1a3a runnable [0xb44d5000..0xb44d60c0]
java.lang.Thread.State: RUNNABLE
at sun.plugin.javascript.navig5.JSObject.JSObjectInvoke(Native Method)
at sun.plugin.javascript.navig5.JSObject.invoke(JSObject.java:151)
at sun.plugin.javascript.navig5.JSObject.JSGetNativeJSObject(JSObject.java:313)
at sun.plugin.javascript.navig5.JSObject.(JSObject.java:75)
at sun.plugin.viewer.context.NetscapeAppletContext.getJSObject(NetscapeAppletContext.java:50)
at netscape.javascript.JSObject.getWindow(JSObject.java:131)
at y.vmd.1.(Unknown Source)
at y.vmd.0.a(Unknown Source)
at y.vmd.0.init(Unknown Source)
at sun.applet.AppletPanel.run(AppletPanel.java:425)
at java.lang.Thread.run(Thread.java:619)

"AWT-EventQueue-6" prio=10 tid=0x080e9800 nid=0x1a38 in Object.wait() [0xb4526000..0xb4526fc0]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at java.awt.EventQueue.getNextEvent(EventQueue.java:479)
- locked <0x8c688410> (a java.awt.EventQueue)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:245)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

"Headspace mixer frame proc thread" daemon prio=10 tid=0x08160000 nid=0x198b in Object.wait() [0xb3c61000..0xb3c61e40]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at com.sun.media.sound.MixerThread.run(MixerThread.java:125)
- locked <0x8c667710> (a com.sun.media.sound.MixerThread)

"Java Sound Event Dispatcher" daemon prio=10 tid=0x0853c000 nid=0x1983 in Object.wait() [0xb3e98000..0xb3e98f40]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at com.sun.media.sound.EventDispatcher.dispatchEvents(EventDispatcher.java:170)
- locked <0x8c667c30> (a com.sun.media.sound.EventDispatcher)
at com.sun.media.sound.EventDispatcher.run(EventDispatcher.java:210)
at java.lang.Thread.run(Thread.java:619)

"TimerQueue" daemon prio=10 tid=0x084cac00 nid=0x18c2 in Object.wait() [0xb45b5000..0xb45b5ec0]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x8c5af960> (a javax.swing.TimerQueue)
at javax.swing.TimerQueue.run(TimerQueue.java:236)
- locked <0x8c5af960> (a javax.swing.TimerQueue)
at java.lang.Thread.run(Thread.java:619)

"Thread-3" prio=10 tid=0x084b3000 nid=0x18b7 runnable [0xb47c5000..0xb47c5f40]
java.lang.Thread.State: RUNNABLE
at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:40)
at sun.plugin.navig.motif.AThread.run(AThread.java:32)

"Thread-2" prio=10 tid=0x084b0800 nid=0x18b4 waiting on condition [0xb4816000..0xb4816ec0]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at sun.plugin.navig.motif.Plugin$Watcher.run(Plugin.java:488)

"ConsoleWriterThread" daemon prio=10 tid=0x0832c000 nid=0x18b2 in Object.wait() [0xb48c7000..0xb48c7dc0]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(ConsoleTraceListener.java:72)
- locked <0x8c57ae78> (a java.lang.Object)

"AWT-EventQueue-1" prio=10 tid=0x082d5400 nid=0x18b1 waiting on condition [0xb52fe000..0xb52ff140]
java.lang.Thread.State: RUNNABLE
at com.sun.deploy.util.ConsoleHelper.dumpAllStacksImpl(Native Method)
at com.sun.deploy.util.ConsoleHelper.dumpAllStacks(ConsoleHelper.java:66)
at sun.plugin.util.PluginConsoleController.dumpAllStacks(PluginConsoleController.java:112)
at com.sun.deploy.util.ConsoleWindow$2.actionPerformed(ConsoleWindow.java:121)
at javax.swing.JComponent$ActionStandin.actionPerformed(JComponent.java:3366)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2926)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2918)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5877)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4472)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4302)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4344)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4302)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

"AWT-EventQueue-0" prio=10 tid=0x082dbc00 nid=0x18b0 in Object.wait() [0xb525c000..0xb525d0c0]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x8c529a40> (a java.awt.EventQueue)
at java.lang.Object.wait(Object.java:485)
at java.awt.EventQueue.getNextEvent(EventQueue.java:479)
- locked <0x8c529a40> (a java.awt.EventQueue)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:245)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

"AWT-Shutdown" prio=10 tid=0x082da400 nid=0x18af in Object.wait() [0xb52ad000..0xb52ae040]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
- locked <0x8c50f2a0> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:619)

"traceMsgQueueThread" daemon prio=10 tid=0x082d4800 nid=0x18ac in Object.wait() [0xb534f000..0xb534fec0]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at com.sun.deploy.util.Trace$TraceMsgQueueChecker.run(Trace.java:79)
- locked <0x8c573430> (a java.util.ArrayList)
at java.lang.Thread.run(Thread.java:619)

"CacheCleanUpThread" daemon prio=10 tid=0x082d1000 nid=0x18ab in Object.wait() [0xb53a0000..0xb53a0e40]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x8c572a00> (a com.sun.deploy.cache.CleanupThread)
at java.lang.Object.wait(Object.java:485)
at com.sun.deploy.cache.CleanupThread.run(CleanupThread.java:219)
- locked <0x8c572a00> (a com.sun.deploy.cache.CleanupThread)

"AWT-XAWT" daemon prio=10 tid=0x082af000 nid=0x18aa runnable [0xb5408000..0xb5408dc0]
java.lang.Thread.State: RUNNABLE
at sun.awt.X11.XToolkit.waitForEvents(Native Method)
at sun.awt.X11.XToolkit.run(XToolkit.java:543)
at sun.awt.X11.XToolkit.run(XToolkit.java:518)
at java.lang.Thread.run(Thread.java:619)

"Java2D Disposer" daemon prio=10 tid=0x08182c00 nid=0x18a9 in Object.wait() [0xb547d000..0xb547e140]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x8c537468> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at sun.java2d.Disposer.run(Disposer.java:125)
at java.lang.Thread.run(Thread.java:619)

"Low Memory Detector" daemon prio=10 tid=0x0809b400 nid=0x18a5 runnable [0x00000000..0x00000000]
java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x08090800 nid=0x18a4 waiting on condition [0x00000000..0xb5894a78]
java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x0808f400 nid=0x18a3 runnable [0x00000000..0x00000000]
java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=10 tid=0x0807bc00 nid=0x18a2 in Object.wait() [0xb5b3d000..0xb5b3dec0]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x8c537630> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x0807a800 nid=0x18a1 in Object.wait() [0xb5b8e000..0xb5b8ee40]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x8c537310> (a java.lang.ref.Reference$Lock)

"main" prio=10 tid=0x08052800 nid=0x189f runnable [0xbf969000..0xbf969458]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.read(Native Method)
at java.io.DataInputStream.readInt(DataInputStream.java:370)
at sun.plugin.navig.motif.Plugin.doit(Plugin.java:173)
at sun.plugin.navig.motif.Plugin.start(Plugin.java:104)

"VM Thread" prio=10 tid=0x08071400 nid=0x18a0 runnable

"VM Periodic Task Thread" prio=10 tid=0x0809c800 nid=0x18a6 waiting on condition

----------------------------------------------------
Done.

rogyeu
Offline
Joined: 2006-07-30

Looks like you are using b07. We have just released b08, could you please try this in b08?

Also, what browser and which version do you use?

Thanks,
Roger Y.

keeskuip
Offline
Joined: 2003-06-17

I tried b08 with the same results.

I'm using:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11