You are correct, the format is as follows.

Command Packet
        * Header
              o length (4 bytes)
              o id (4 bytes)
              o flags (1 byte)
              o command set (1 byte)
              o command (1 byte)
        * data (Variable)

Reply Packet
        * Header
              o length (4 bytes)
              o id (4 bytes)
              o flags (1 byte)
              o error code (2 bytes)
        * data (Variable)

Source: http://java.sun.com/j2se/1.4.2/docs/guide/jpda/jdwp-spec.html
Also maybe useful:
http://java.sun.com/j2se/1.5.0/docs/guide/jpda/socketTransport-example.c

- Eric

On 3/10/06, Rick Jones <[EMAIL PROTECTED]> wrote:
> Stephen Hemminger wrote:
> > The strace shows that the client? does lots of little send's
> > also, the response is handled in a different thread than the sender so they
> > spend a lot of time banging on futex's.
> >
> > I got these by doing
> >        strace -ff -o /tmp/foo eclipse
> >
> >
> > sched_getscheduler(15164) = 0 (SCHED_OTHER)
> > gettimeofday({1142026997, 896025}, NULL) = 0
> > futex(0x80b77ec, FUTEX_WAKE, 1) = 1
> > futex(0x80b77e8, FUTEX_WAKE, 1) = 0
> > futex(0x80ce014, FUTEX_WAIT, 3, NULL)         = 0
> > futex(0x805c638, FUTEX_WAIT, 2, NULL)        = -1 EAGAIN (Resource 
> > temporarily unavailable)
> > futex(0x805c638, FUTEX_WAKE, 1)  = 0
> > futex(0x80cca4c, FUTEX_WAIT, 5, NULL)         = 0
> > futex(0x80cca48, FUTEX_WAIT, 2, NULL)         = 0
> > futex(0x80cca48, FUTEX_WAKE, 1)         = 0
> > futex(0x80cac18, FUTEX_WAKE, 1)         = 0
> > send(3, "\0\0\0\37", 4, 0)              = 4
> > send(3, "\0\0\0\2", 4, 0) = 4
> > send(3, "\200", 1, 0)                               = 1
> > send(3, "\0\0", 2, 0) = 2
> > send(3, "\0\0\0\4\0\0\0\4\0\0\0\10\0\0\0\10\0\0\0\10", 20, 0) = 20
> > futex(0x80cca4c, FUTEX_WAIT, 7, NULL)         = 0
> > futex(0x80cca48, FUTEX_WAIT, 2, NULL)         = 0
> > futex(0x80cca48, FUTEX_WAKE, 1)         = 0
> > futex(0x80cac18, FUTEX_WAKE, 1)         = 0
> > send(3, "\0\0\0\17", 4, 0) = 4
> > send(3, "\0\0\0\3", 4, 0)               = 4
> > send(3, "\200", 1, 0)                   = 1
> > send(3, "\0\0", 2, 0)                   = 2
> > send(3, "\0\0\0\2", 4, 0)               = 4
>
> That sure smells like the first four bytes are a message length and the
> rest of it are the "data"  and if that is correct, it certainly does
> look like someone needs to be hit upside with the HP P/N 19511-80014 "HP
> Attitude Adjuster"
>
> It also explains why after the cwnd finally grew to five packets things
> appeared happy in the trace.
>
> rick
>
>
>
>
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to