Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
java, threads, truss and other nightmares
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
adirtymindisajoyforever  
View profile  
 More options Jun 7 2012, 9:05 am
Newsgroups: comp.unix.solaris
From: adirtymindisajoyforever <getridofthes...@yahoo.com>
Date: Thu, 7 Jun 2012 06:05:57 -0700 (PDT)
Local: Thurs, Jun 7 2012 9:05 am
Subject: java, threads, truss and other nightmares

I have a java application that seems to show sometimes delays
of 3 seconds for no obvious reasons.
Trussing the app shows that one of the threads is waiting for 3
seconds
for a mutex lock to be release. However, in the trace I can't find the
thread
holding/releasing the lock.
Therefor I trussed, or better tried to, also the libraries. This
results in a hanging
application, sometimes crashing.
One of the nasty things is that the call I am interested in in now
failing with ETIME:
lwp_cond_wait(0x00281848, 0x00281830, 0xB3FFFD28, 0) Err#62 ETIME
               condvar type: USYNC_THREAD
               mutex type: USYNC_THREAD
               timeout: 0.045380900 sec

From the man page:
If  the  time  of
     day  becomes  greater  than  abstime,  _lwp_cond_timedwait()
     returns with the error code ETIME.

The man page is for underscored versions with different parameters...
Could someone explain this behaviour and if the time delay caused by
truss is the cause of this ETIME error.

Any other suggestions for tracing/debugging thsi behaviour.
In case needed: this is a camel application, invoked by maven.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
YTC#1  
View profile  
 More options Jun 7 2012, 12:17 pm
Newsgroups: comp.unix.solaris
From: YTC#1 <b...@ytc1-spambin.co.uk>
Date: Thu, 07 Jun 2012 17:17:12 +0100
Local: Thurs, Jun 7 2012 12:17 pm
Subject: Re: java, threads, truss and other nightmares
On 06/ 7/12 02:05 PM, adirtymindisajoyforever wrote:

It sounds like a job for dtrace (and no, I can't tell you how to use
that :-) )

--
Bruce Porter
"The internet is a huge and diverse community but mainly friendly"
http://blog.maui.co.uk/index.php/ytc/
There *is* an alternative! http://www.openoffice.org/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Gabriel  
View profile  
 More options Jun 7 2012, 3:08 pm
Newsgroups: comp.unix.solaris
From: and...@cucumber.demon.co.uk (Andrew Gabriel)
Date: Thu, 7 Jun 2012 19:08:47 +0000 (UTC)
Local: Thurs, Jun 7 2012 3:08 pm
Subject: Re: java, threads, truss and other nightmares
In article <jqqk68$v4...@dont-email.me>,
        YTC#1 <b...@ytc1-spambin.co.uk> writes:

Try plockstat(1M) rather than dtrace directly.
Not sure how much the output will help you for a java process though.

--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Krueger  
View profile  
 More options Jun 8 2012, 3:55 am
Newsgroups: comp.unix.solaris
From: Stefan Krueger <stadtki...@gmx.de>
Date: Fri, 8 Jun 2012 07:55:41 +0000 (UTC)
Local: Fri, Jun 8 2012 3:55 am
Subject: Re: java, threads, truss and other nightmares
On 2012-06-07, adirtymindisajoyforever <getridofthes...@yahoo.com> wrote:

http://www.c0t0d0s0.org/archives/6632-Practical-DTracing.html

http://www.c0t0d0s0.org/archives/6569-One-flew-over-the-allocators-ne...

HTH


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »