How can i get the stack of one thread from another thread

hi !
i have a pool threads ,some times all therads in that pool are besy becouse somting lock the threads so there is no free thread to handle ... .
what i want is a way to get the stack of these thread so i can print them to see way they lock ...
thanks,
zvika

Maybe something like this (haven't actually tried it):
Add a method to your Threads to print the trace:
public class MyThread extends Thread {
    public void run() {
    public void printCurrentStack() {
        (new Exception()).printStackTrace(); // or whatever method you choose
MyThread mt = new MyThread();
mt.start();
mt.printCurrentStack();

Similar Messages

  • How can I get itunes to play one album from start to finish, especially when there are different artists on it?

    How can I get itunes just to play albums from beginning to end? Often if an artist has a guest artist, or there are 'various artists' on the album, it stores them all separately, so listening from beginning to end becomes not one click away, but a multitude of clicks away just to make a play list which returns the album to its original state. Why can't Apple do this as a default?

    If your music is sorted by "Albums", even a compilation is a single click.
    'various artists' on the album, it stores them all separately,
    That happens when you sort your music by "Artist".

  • How can i get the SQL of a tablespace from the database

    Hello All,
    I am using Oracle 11g R2. I want to get the SQL of some tablespaces on my database. in the same way i get the DDL of the table using the GET_DDL function.
    How can i get that ?
    Regards,

    try this please
    select dbms_metadata.get_ddl('TABLESPACE',tb.tablespace_name) from dba_tablespaces tb;or
    select 'create tablespace ' || df.tablespace_name || chr(10)
    || ' datafile ''' || df.file_name || ''' size ' || df.bytes
    || decode(autoextensible,'N',null, chr(10) || ' autoextend on maxsize '
    || maxbytes)
    || chr(10)
    || 'default storage ( initial ' || initial_extent
    || decode (next_extent, null, null, ' next ' || next_extent )
    || ' minextents ' || min_extents
    || ' maxextents ' ||  decode(max_extents,'2147483645','unlimited',max_extents)
    || ') ;'
    from dba_data_files df, dba_tablespaces t
    where df.tablespace_name=t.tablespace_name Edited by: Mahir M. Quluzade on Mar 14, 2011 4:51 PM

  • How can I get the memory allocation info of a java thread?

    Now I am going to write a program to monitor the execution condition of the java threads. But it seems that the classes in standard edition of JDK does not provide facilities to get the information such as the memory allocation and CPU time of a running thread. How can I do with it? Can I use JNI or JVMDI to get them? If it could do, how?

    Thanks a lot. I just browsed the specification of jvmpi. It is interesting and it seems that I can get the information I need. However, if I want to get the information in my program, I mean, if I want to build a class which may use JNI method to invoke the function written with JVMPI, and then forward the data to other upper layer objects, can it be done?

  • How can I load the mix of one song for another song?

    I'm going to be mixing a live gospel album with 9 tracks of drums, bass, guitar, piano, strings, organ, lead vocals and 6 tracks of choir vocals. Each song will basically be mixed the same except for variations in the choir levels and lead vocals. I want to mix this in logic but I don't want to create a mix for each song from scratch. All the audio tracks will be consistiently on the same track, meaning Bass-trak 1, guitar-trak 10 etc... for each song. What would be the easiest way to do this without creating a mix from scratch for each song.
    Thanks

    Hi. I find myself in this situation a lot, and eventually settled on this method.
    Mix the first track the way you want it, and getting your levels and plugins settled. Save the song as the title of that particular song. Then, select everything in the arrange window, and delete it. If you are asked to delete or keep audio files, click keep, cos you don't want to lose recorded audio. If you have set markers, delete those too. if you have any automation, select track automation>delete all automation of all tracks.
    You are then set with a clean sheet with your tracks labelled, levels set and all the bells and whistles. Now do a SAVE AS and call it something like KICKASSGOSPELTEMPLATE or even save it as a logic template. Then, with this template open, open up another one of your songs, select everything in your arrange window, copy it to your clipboard, move to your template song, go bar number 1, and paste. You will be asked whether you want to copy instruments or tracks. I can't remember which one you select, but a quick trial and error should see you straight. All the audio tracks should come down onto the right audio objects and hitting play should have you almost to where you want to be.

  • Why am I getting sharper printouts from Windows Photo Viewer than PSE 7? This was not always the case. has something in my settings changed? I have tried all obvious solutions but no change. How can i get the best image print outs from PSE?

    I prefer to print from PSE as this allows me to set  picture dimensions. Windows photo viewer does not give this flexibility. I am using the same PC, the same printer and the same print file, yet the outcome from each software option is significantly different. WPV is sharp and bright whereas PSE is softer. Can any one help me?

    I prefer to print from PSE as this allows me to set  picture dimensions. Windows photo viewer does not give this flexibility. I am using the same PC, the same printer and the same print file, yet the outcome from each software option is significantly different. WPV is sharp and bright whereas PSE is softer. Can any one help me?

  • How can I get into my email through Mozilla from another computer?

    I'm on my sister's computer, and would like to get into my email to check it. I live in Michigan and am in Florida now. Thank you for any help you can supply for me. NJH

    Hi NancyHoxie,
    Try signing into your email from a private window. [[Private Browsing - Browse the web without saving information about the sites you visit]]
    Otherwise I would suggest trying Thunderbird and [[Configuration Options for Accounts]] for how to manage email on the computer. When you are done, you may need to delete the account. (if you want it to be temporary :-))

  • How can I get the receipt of my old purchases in particular application?thank you

    how can I get the receipt of one of my oldest purchased in particular application?
    thank you

    If you no longer have the original email receipt for it then all you can do is try and find it in your account's purchase history and (depending upon what you need it for) either copy it's details or take a screenshot : log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it, click on that and you should then see a list of your purchases.

  • How can I get the MS-DOS style filename?

    Hi all;
    How can I get the MS-DOS style filename from LabVIEW?
    I mean, in Windows if I have the following dir/file:
    "C:\My Documents\Misc Folder\text.txt"
    In MS-DOS style looks something like:
    "C:\MYDOCU~1\MISCFO~2\TEXT.TXT"
    Enrique
    www.vartortech.com

    A call to a kernel32.dll function does the job. See the attached VI.
    LabVIEW, C'est LabVIEW
    Attachments:
    GetShortPathA.vi ‏16 KB

  • My iphone is broken,and i came to store to change a new one today. When I come home, I found I lost my backup and may be mistake is made during before backup.The information in my previous iphone is really important for me? how can I get the backup back?

    my iphone is broken,and i came to store to change a new one today. When I come home, I found I lost my backup and may be mistake is made during before backup.The information in my previous iphone is really important for me? how can I get the backup back?

    If you don't have a backup then the only possible solution is to go back to the store and see if they can get your old phone and create a backup of that. I know very often that Apple employees will wipe the returned iPhones clean before shipping them back to wherever they ship them.
    When you say your old phone was "broken" does this mean it is dead and won't turn on?
    Do you have a Time Machine backup of your computer, or a clone that might have this info on it?
    Other than that I hate to say you may be out of luck. Time Machine and/or a cloning program performed regularily will inevitably save your a** in situations like this.
    Good luck
    PM

  • Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • HT1203 Can I share one iTunes account for my iPad and two I phones? If so, how can I get the purchased apps and music on all three devices? Do I need a home computer,

    Can I share one iTunes account for my iPad and two I phones? If so, how can I get the purchased apps and music on all three devices? How do I sync all the devices to have the same music and apps?

    You can set up an iCloud account on each one (the SAME iCloud account using the same AppleID on each) and then sync via iCloud.
    http://support.apple.com/kb/HT5262\
    However, an iCloud backup nor sync contains purchased content - that is available for redownload from the iTunes and App stores (so no need to waste iCloud space storing it for you).
    So, for purchased content, you will have to download it on each device - just use the same AppleID and download each item on each device.
    Without a computer to aid the sync'ing, downloading the purchased content on each device is the only way.
    P.S  audiobooks cannot be re-downloaded once purchased (all other content can be), so without a computer to save, store and move the audiobook files around, you will only be able to put those on one device - the one you first purchase it on.

  • How can I get the old Firefox back, this new one stinks

    how can I get the old Firefox back, this new one stinks

    Firefox is highly customizable and you may be able to customize it to meet your needs.
    If you do not like the new UI, you can make Firefox 4 look and behave more like Firefox 3.6, for details see http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6
    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • I downloaded an app off the store which said it was free and part of the 5 year promotion. I've been charged for the app by the store. I don't want the app and there's no one to speak to about it. Who can I call and how can I get the app off my phone?

    I downloaded an app off the store which said it was free and part of the 5 year promotion.
    I've been charged for the app by the store. I don't want the app and there's no one to speak to about it.
    Who can I call?
    How can I get the app off my phone?
    How do I get my money back from something I wouldn't have ordered?

    You cannot call anyone.  You contact them as everyone else does:  http://www.apple.com/support/itunes/contact/
    You delete the app as you do any other app.  Hold an icon until they wiggle.  Tap the "x".  This is covered in the manual.

  • TS3899 I upgraded to iOS 7 and I lost emails that were in my inbox - I used to see all emails that I did not delete, now I only have emails from the past month - how can I get the old, undeleted emails back? Or, at least, show email older than one month o

    I upgraded to iOS 7 and I lost emails that were in my inbox - I used to see all emails that I did not delete, now I only have emails from the past month - how can I get the old, undeleted emails back? Or, at least, show email older than one month old?

    I upgraded to iOS 7 and I lost emails that were in my inbox - I used to see all emails that I did not delete, now I only have emails from the past month - how can I get the old, undeleted emails back? Or, at least, show email older than one month old?

Maybe you are looking for

  • Firefox versus Safari? And how do I uninstall Firefox?

    I've always only used Safari. Firefox has been recommended to me in case I have to reinstall OS X while on the road and unable to update beyond the 10.4.6 of my retail OS X install disk. See: http://discussions.apple.com/thread.jspa?threadID=1897928&

  • MacBook Pro randomly restarting since upgrading to Mavericks. Help!

    Ever since I downloaded Mavericks, my 2010 MacBook Pro is randomly restarting due to a GPU panic. I tried all the trouble shooting suggested by apple support via telephone (updating software, reinstalling mavericks, repairing disks). It is still rest

  • 12 days of xmas rubbish for Iphone

    Iphone will on the whole NOT allow you to download via wireless any of the 12 days of christmas whether you use facebook or not citing "too many redirects". have just been in germany (no it doesnt work here either) with only the iphone and no itunes

  • Itunes version not localized for this language

    itunes will not load up on my computer, I get a message that "the version of itunes has not been correctly localized for this language. Please choose English Version."  I have been using I tunes for several months and not changed anything. Any ideas?

  • Run as account and profile associate

    Dears, Sorry I am new to Managing Linux in SCOM, so I have a 2 questions. In below link: http://technet.microsoft.com/en-us/library/hh212926.aspx it is mentioned that we have to create 2 type of Run as accounts: A monitoring account An agent maintena