Thread View: comp.sys.mac.programmer.codewarrior
2 messages
2 total messages
Started by Mike Fahl
Thu, 07 Feb 2002 14:36
Remote java debugging very slow from OS X
Author: Mike Fahl
Date: Thu, 07 Feb 2002 14:36
Date: Thu, 07 Feb 2002 14:36
47 lines
3377 bytes
3377 bytes
I'm looking at migrating my java development to CodeWarrior 7.1 under OS X. Most of the time I'm cross debugging to a PC. However, JDWP cross debugging from an OS X G4/500 development host to a 500 MHz Win2k box is *extremely* slow: * Launching the app under remote debugging takes 30 seconds, timed from hitting Debug in CW to the first window appears on the screen (this is a moderately sized Swing app). * Continuing from there until I hit the first breakpoint (set to fire when I open a dialog box from within my app) takes 19 seconds the first time (drops down to 2-3 seconds for subsequent hits of the same bp). * Single stepping takes about one second per step. It doesn't seem that the speed of the debug target makes much difference. During these long pauses I see a furious flashing on my hub, as if many small packets and handshaking takes place between the OS X Mac and the debugged PC (this is all within one room, with a 100 MBit hub and cables known to be good). My guess is that the VM being debugged passes a lot of data back to CW about classes being loaded, etc, since this is mainly during app start-up and the first time I access classes (eg, open a dialog box). Now comes the fun part. Doing the above but running CodeWarrior 7.1 from a PC WinNT host instead (with the same Win2k remote debug target) gives the following times: * Launching the app under remote debugging takes 4 seconds. * Continuing from there until I hit the first breakpoint takes 1 second the first time. * Single stepping is virtually instantaneous. During those initial four seconds, I see a relatively small number of flashes on the hub, as if the number of packets is much smaller (but possibly larger - I haven't sniffed them). My conclusions: Either the TCP/IP implementation in OS X sucks, or there's a bug/deficiency in CW7.1 for OS X. Could it be that CW7 goes through the OpenTransport shim rather than straight to the sockets implementation, and perhaps that's slowing things down? But this badly? Any ideas or suggestions are most welcome! Mike Fahl
Re: Remote java debugging very slow from OS X
Author: MW Ron
Date: Fri, 08 Feb 2002 17:55
Date: Fri, 08 Feb 2002 17:55
19 lines
1827 bytes
1827 bytes
In article <3C6290C1.DA403898@dataton.se>, Mike Fahl <fahl@dataton.se>
wrote:
>I'm looking at migrating my java development to CodeWarrior 7.1 under
>OS X. Most of the time I'm cross debugging to a PC. However, JDWP
>cross debugging from an OS X G4/500 development host to a 500 MHz
>Win2k box is *extremely* slow:
We are looking into this, and I don't think your performance is other
than typical.
Ron
--
TOP PICK HandHeld Computing - issue 4.5
"The best overall development tool for the Palm OS"
Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads