1 Reply Latest reply: Dec 28, 2009 10:16 PM by 807559 RSS

    using errinfo dtrace script..get lots of errors for java proccess

    807559
      SYSCALL lwp_cond_wait when using java
      Nov 22, 2009 8:13 AM
           
      Click to email this message Click to edit this message...




           
      Hi,

      I am trrying to understand an issue I have..
      I have a SUN server (T5240), I am runng a java application on it.

      The thing is the machine has a very high cpu (usr)..
      I have used a dtrace tool to check for any problems..

      I ran the erronfo tool, I got a very wierd output.
      It looks like the java process is failing...

      This is part of th output:

      tcsh exece 2 7 No such file or directory
      tcsh ioctl 25 7 Inappropriate ioctl for device
      awk stat64 2 12 No such file or directory
      xntpd sigsuspend 4 23 interrupted system call
      grep stat64 2 24 No such file or directory
      tcsh close 9 30 Bad file number
      java lwp_cond_wait 62 1255 timer expired


      I get 1255 timer expired events for the java process..
      What does that mean?? Who Can I countinue with the troubleshooting??

      I have checked the sizes of lwp_cond_wait :

      root@hostname [export/home/admin/DTraceToolkit-0.99]# dtrace -n 'syscall::lwp_cond_wait:entry /execname == "java"/ { @Size = quantize(arg2); }'
      dtrace: description 'syscall::lwp_cond_wait:entry ' matched 1 probe

      value ------------- Distribution ------------- count
      -1 | 0
      0 |@@@@@@@@@@@@@@@@@@@@@@@@@ 184922
      1 | 0
      2 | 0
      4 | 0
      8 | 0
      16 | 0
      32 | 0
      64 | 0
      128 | 0
      256 | 0
      512 | 0
      1024 | 0
      2048 | 0
      4096 | 0
      8192 | 0
      16384 | 0
      32768 | 0
      65536 | 0
      131072 | 0
      262144 | 0
      524288 | 0
      1048576 | 0
      2097152 | 0
      4194304 | 0
      8388608 | 0
      16777216 | 0
      33554432 | 0
      67108864 | 0
      134217728 | 0
      268435456 | 0
      536870912 | 0
      1073741824 | 0
      2147483648 |@@@@@@@@@@@@@@@ 110843
      4294967296 | 0



      What does that mean??

      Thanks!

      Thanks!!
        • 1. Re: using errinfo dtrace script..get lots of errors for java proccess
          807559
          I'm not sure that last output means anything useful. In lwp_cond_wait, the value for arg2 is a pointer to struct timespec_t. Since arg2 itself is typed uint64_t, what you're quantizing on are raw pointer values, not time. timespec_t looks like this:

          typedef struct timespec {          /* definition per POSIX.4 */
               time_t          tv_sec;          /* seconds */
               long          tv_nsec;     /* and nanoseconds */
          } timespec_t;