United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6642981 Excessive CPU consumption during some shutdown situations
JDK-6642981 : Excessive CPU consumption during some shutdown situations

Details
Type:
Bug
Submit Date:
2007-12-18
Status:
Resolved
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-01-11
Component:
deploy
OS:
windows
Sub-Component:
plugin
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b10)

Related Reports

Sub Tasks

Description
If the environment variable JPI_PLUGIN2_DEBUG is set, thereby causing a DOS console to be opened for the new plug-in's debugging output on the browser side, and if the user has the QuickEdit mode set and inadvertently clicks in the text area of that window, some text may end up getting selected. This will cause the browser-side code to hang attempting to print output to the DOS console, and heartbeat messages will not be returned to the attached JVMs. The attached JVMs will then think the browser side has exited, and will shut themselves down, cancelling the conversation associated with the last heartbeat message. If the right mouse button is then clicked in the DOS console, resuming the processing on the browser side, then during the time duration those attached JVMs are in the process of shutting down, the system will furiously pass the heartbeat message back and forth between the two processes, consuming 100% CPU. Further, the browser side code will attempt to kill the attached JVMs even after they have exited. This behavior obstructs debugging and should be fixed.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6642981.0
                                     
2007-12-18
EVALUATION

Added checks during shutdown to avoid pingponging an abandoned
HeartbeatMessage back and forth, and to avoid killing an
already-exited subordinate JVM process.
                                     
2007-12-18



Hardware and Software, Engineered to Work Together