JDK-4416804 : jdb in 1.3 is 6.5 times slower than 1.2
  • Type: Bug
  • Component: vm-legacy
  • Sub-Component: jvmdi
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2001-02-19
  • Updated: 2005-03-03
  • Resolved: 2005-03-03
Related Reports
Relates :  
Relates :  
Description

Name: boT120536			Date: 02/19/2001


C:\jdk1.3\bin>jdb -version
jdb version 99/06/11

C:\jdk1.3\bin>java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

----------------  and ----------------
C:\jdk1.2.2\bin>jdb -version
jdb version 98/06/23

C:\jdk1.2.2\bin>java -version
java version "1.2.2"
Classic VM (build JDK-1.2.2-001, native threads, symcjit)

I am working on a rather large Java application.  When I use the jdb in 1.2.2,
and run the program, I see the first bit of output in 20 seconds.  When I use
the jdb in 1.3, and run the same program (no changes), I see the first bit of
output in 130 seconds (2 min. 10 seconds).  I see this as a major bug.
(Review ID: 117261) 
======================================================================
tim.bell@Eng 2001-02-20

From: <xxx@zzz>
To: "'###@###.###'" <###@###.###>
Subject: Performance of JDI with JDK 1.3
Date: Tue, 20 Feb 2001 13:42:17 +0100

Hello,

I have a question concerning JDI performance:

I have attached a ZIP file which contains 
a debugee and a JDI client.

The debugee is very short and uses the JAXP
XML parser. It parses an XML file multiple times
and traces the execution times on stderr.

The JDI client can be attached to the debugee
(dt_shmem or dt_socket).

My measured times are listed in result.txt.
In general it shows:
	
debugee			time (in sec)	time (in sec)
				JDK1.2.2		JDK1.3
-------------------------------------------------------
no JDWP at all		11,2			3,1

JDWP switched on		53,7			15,9
(no JDI client		
connected)

JDI client connected	54,1			702,1
(no events requested)	

JDI client connected	217,4			1320 (approx.)
few method entry events	
requested


From my point of view it seems the 1.3 VM performance is 
decreased enormously if any JDI client is attached.

I have noticed this behaviour during normal debugging as well.
For debugging sessions I need to switch back to JDK 1.2.2 because
of the performance decrease...
We are using KAWA resp. JBuilder4 in our department.



Comments
EVALUATION daniel.daugherty@Eng 2001-02-19 I believe this is a duplicate of the following bug: 4293376 4/5 JDB is too slow on kestrel-beta This fix was made for the Kestrel Solaris production release which is not the same as the JDK1.3 reference release. On Win32, the change is first available in a Ladybird release (1.3.1).
11-06-2004

WORK AROUND Name: boT120536 Date: 02/19/2001 I have not upgraded to 1.3. ======================================================================
11-06-2004

PUBLIC COMMENTS .
10-06-2004