Any way to get CPU-seconds for process or a thread from within my app?

I'm trying to guage the work by different processes within our application. I'd like to be able to get the number of CPU-seconds before a long task and then again after the task finishes and compute the difference. I'm sure I could poll the % CPU every second and try estimate the value, but I don't think it would be very accurate.
Is there a MBean or some other way to access the CPU-seconds for the process?
It would even be better if I could get this at the thread level (which seems possible since JRA recordings can show the 'running' time on a graph drawn in milliseconds).
Thanks
-Bill

We are considering making this available through a MBean in our upcoming R28 release.Do you have a program I can participate in to get beta or pre-releases of new JRockit versions? The purpose would be to do preliminary performance testing so we can get official releases to our development team more quickly once they are formally released.
I'm also hoping to find cumulative disk i/o bytes and cumulative network i/o bytes on a thread or even at the JVM levelI don't think we have that in JRockit today... What would you use it for?The use would be for performance monitoring. In a large system or a busy system, the effect of code changes can be hard to measure just based on clock time or traditional measurements like % CPU or bytes/sec at a specific instant. Knowing how much 'work' is getting done (together with the clock time) gives a better picture.
I like cumulative numbers like cpu-sec and # of bytes because I only need two measures (before and after) instead of continuous polling and summing. Some of my processes get created on their own threads, so I could potentially get these measures of work on my customer's production systems with a lot of other activity going on. By comparing samples over time, we can tell if processes are running longer due to 'more work' or due to resource bottlenecks.
I think it could be useful on shared threads too even though i don't know yet if I can see which threads specific requests are using.
-Bill

Similar Messages

  • Is there any way to get firmware update for my DVD-RW Drive from Ultra 40?

    Hi, I have Sun Ultra 40 Workstation which comes with Matshita DVD-RAM drive.
    While I do enjoy working on my U40 workstation, its DVD-RAM drive is wll pretty bad.
    It just fails to burn DVD/CD-R/RW media too often.
    Yes, I got it serviced, but it's just the same.
    So my final hope is to get the latest firmware, becuase latest firmware often solves such media compatability issues.
    Mine has D100 firmware and I find other people who has the same drive on different system have D101, D200, D201 firmware.
    So does anyone know how to contact Sun to get the latest firmware for my DVD-RAM drive?
    I did contacted Matshita for this matter and they tell me to contact Sun. But I cannot even find email address for Sun Support or any. sigh...
    Thanks.
    Sang

    Hello Sang,
    I have Sun Ultra 40 Workstation which comes with Matshita DVD-RAM drive.
    Mine has D100 firmware and I find other people who has the same drive on different system have D101, D200, D201 firmware.
    So does anyone know how to contact Sun to get the latest firmware for my DVD-RAM drive?
    I did contacted Matshita for this matter and they tell me to contact Sun.
    I did review the Full Components List for the Ultra 40. The only DVD drives listed (Part No. 370-7970) are Panasonic UJ-485 and Teac DV-W28SLA-093. Both aren't capable of reading or writing DVD-RAM.
    In some countries Panasonic uses Matshita as brand name.
    I did a search on SunSolve with the keywords DVD firmware.
    Sun supplies only firmware updates for two DVD readers: Toshiba DVD 1401 (fixes: unable to boot from Solaris 8 DVD) and Toshiba SD-C2732 (fixes: returns incorrect data).
    I was unable to update the firmware of the SD-C2732 (Sun part) with the Sun patch. The drive was attached to an Ultra 10 (with an adapter). I ended attaching the drive to a PC and using a DOS boot floppy with the Toshiba flash program and the Sun firmware.
    Regarding you problems with the drive: Have you tried another brand of media. The Ultra 40 is under warranty (GA date was February 14, 2006).
    Use the contact information from your other thread.
    If you search the net for firmware you can locate sites that offers region-code-free firmware for several drives. Usually they provide a flash program (requires creation of a DOS boot floppy). Using these programs/firmware voids your warranty. Maybe you can not revert the firmware upgrade.
    These slimline drives have no jumpers, the installed firmware (of the drive) determines if the drive is master, slave, uses cable-select (CS) or reversed CS.
    Michael

  • I have  license for Adobe Design Std CS6 6.0 MLP .Is there any way to get the installer for this?

    I have  license for Adobe Design Std CS6 6.0 MLP .Is there any way to get the installer for this?

    Download CS6 products
    Mylenium

  • Had to restore iphone from a backup that was done 1 week ago.  any way to get back the texts, call logs, etc. that happened within the last week?

    this morning, i had to restore iphone from a backup that was done 1 week ago.  is there any way to get back the texts, call logs, etc that happened within the last week?

    No

  • Is there any way to get the file for your site from Creative Cloud?

    I lost the file for my Muse site and was wondering if there was any way to get the file from the server or from somewhere in Creative Cloud.
    Thanks.

    Are you Mac or Windows?

  • HT203077 Is there any way to get other voices for the voice over?  Alex is dull.

    Is there any way to get other American English voices for the voice over--besides Alex?

    Settings > General > Siri > Voice Gender

  • Is there any way to get the apple stock photos as wallpaper? From the iPhone features page?

    I want this picture.
    http://www.apple.com/iphone/features/
    The picture on the black phone next to the 4 inch retina display section. Is there any way to get it? Is it a default photo or wallpaper of iPhone 5?

    It has always been very basic to always maintain a backup copy of your computer/files/docs/pics/music/etc, for just such an occasion.
    Use your backup copy to put everything back.
    If for some reason you have failed to maintain a backup ( not good), then you can transfer itunes purchases from an ipod:  File>Transfer Purchases
    Once the music is in itunes on your computer, then you can sync to your iphone.

  • Guide me for any way to avoid manual update for processing data package

    Hi sap gurus,
                         I am new to SAP BI.  In my project everyday I have to manually update for processing data packets for an infocube. Can you tell me why it happens that some time data get stuck and we have to do manual update? Is there any possible solution to avoid or correct that? Can we make some kind of Process chains that automatically do these things?
                         Please reply..as it is very irritating to do same thing everyday..
    -Thanks in advance.

    We have program RSARFCEX, which can execute all of them in one go.
    But you can not schedule it in process chain, as you will never know when TRFC will struck. So it will execute without anything if there is no TRFC struck.
    Pravender

  • Any way of getting a HH5 for free? (HH2 currently)

    Been with Infinity since it launched, Homehub 2 is pretty problematic with the switch / amount of devices I use. DHCP issues a lot with wireless devices, to cut a long story short is there any way I can obtain (without pretending my current router is fully broke) a Homehub 5 from BT? I'm not going to be spending any money out on equipment offered to new customers especially as I've just renewed too. There are much better ASUS routers to be had for similar kind of money. Thanks guys
    Solved!
    Go to Solution.

    You should have negotiated a new router when you renewed.
    If you found this post helpful, please click on the star on the left
    If not, I'll try again

  • Deleted Garageband off my 2007 iMac Intel and no longer have the original reinstallation disk and I don't wan't to buy Garageband again. Is there any way to get it back for free?

    Any help? I wouldn't mind any links to where I can install Garageband for free even if it's not from Apple. (Currently running Mac OS X 10.5.8 and will be updating the software tomorrow on February 13th to Snow Leapord 10.6)

    If you don't want to purchase the latest version, you have to call Apple to get replacement DVDs for the iMac > http://support.apple.com/kb/HE57
    When you receive the discs, just insert the Mac OS X Install Disc 2 and install GarageBand.
    If you have a Time Machine backup, you can use it to restore GarageBand. First, open Finder and select Applications on the sidebar. Then, open Time Machine app and navigate through your backups to restore the application

  • Is there any way to get around the arbitrary ban on repeating a password within a year?

    I just want to figure out how to change my password to one that was my password less than a year prior. Why is this requirement in place when Apple has no requirement that passwords be changed annually? It seems that any added security benefit would be negligible and the mandate is excessive and unwarranted. Is there any way to avoid this requirement?

    Remove restriction passcode
    1. Restore to Factory Default
    http://support.apple.com/kb/HT1414
    2. You can restore from a backup that was done before you enable the Restriction Code.

  • Is there any way to get unique numbers for a label?

    Im writing a lottery code and would like to know if there is anyway to get my 6 numbers in my label to be different
    this is my code so far
    Public Class frmMain
    Private randGen As New Random
    Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click
    Me.Close()
    End Sub
    Private Sub btnSelect_Click(sender As Object, e As EventArgs) Handles btnSelect.Click
    Dim intNum1 As Integer
    Dim intNum2 As Integer
    Dim intNum3 As Integer
    Dim intNum4 As Integer
    Dim intNum5 As Integer
    Dim intNum6 As Integer
    intNum1 = randGen.Next(1, 54)
    intNum2 = randGen.Next(1, 54)
    intNum3 = randGen.Next(1, 54)
    intNum4 = randGen.Next(1, 54)
    intNum5 = randGen.Next(1, 54)
    intNum6 = randGen.Next(1, 54)
    lblNumbers.Text = String.Format("{0}, {1}, {2}, {3}, {4}, {5}", intNum1, intNum2, intNum3, intNum4, intNum5, intNum6)
    End Sub
    End Class

    Here's one way using nested For loops.  This was tested and it works.  It will select 6 different unique numbers between 1 - 54. 
    Private Sub btnOK_Click(sender As System.Object, e As System.EventArgs) Handles btnOK.Click
    Dim num As Integer, dup As Boolean = False
    Dim randnum As New Random()
    Dim strand As String = ""
    Dim itm As String = ""
    For x As Integer = 1 To 6
    For y As Integer = 1 To 6
    num = randnum.Next(1, 55)
    itm = num.ToString()
    If strand.Contains(itm) Then
    dup = True
    x = x - 1
    Exit For
    End If
    Next y
    If dup = False Then strand &= itm & " "
    dup = False
    Next x
    lblRandom.Text = strand
    End Sub
    Here is another way using the Shuffle Sort algorithm with an array:
    Private Sub btnShuffle_Click(sender As System.Object, e As System.EventArgs) Handles btnShuffle.Click
    Dim mix, temp As Integer
    Dim randnum As New Random
    Dim strand(54) As Integer
    lblRandom.Text = ""
    For x As Integer = 1 To 54
    strand(x) = x
    Next
    For x As Integer = 1 To 54
    mix = randnum.Next(1, 55)
    temp = strand(mix)
    strand(mix) = strand(x)
    strand(x) = temp
    Next
    For x As Integer = 1 To 6
    lblRandom.Text &= strand(x).ToString & " "
    Next
    End Sub
    Solitaire

  • Is there any way to get 3D Support for nokia C5-03...

    Nokia C5-03

    If you're talking about a full 3D viewing experience then no, the hardware is not available on your phone. However there are (as suggested) software alternatives which give a 3D effect to your homescreens.
    If I have helped you, please hit the star at the bottom of my posts - it's appreciated!
    Don't forget if your problem is solved to press the "Accept as Solution" button.

  • Federal court website gives a .pl document which opens as garbage until we manually change it to .pdf, is there any way to get Firefox to do this automatically?

    I am using a Mac. When downloading a document from the federal court website using Firefox, we get a .pl document which opens as garbage (in TextEdit) until we manually change it to .pdf, which causes it to open just fine (in Preview). It used to work fine, giving a .pdf document every time, but apparently upgrades to Firefox have removed this functionality. As far as I can tell my computer, an iMac running Mac system OS X 10.10.1, does not recognize the .pl format. Is there any way to get Firefox to automatically convert a downloaded file from .pl format to .pdf format? My friend tells me that Google Chrome downloads these documents with no problem. I would prefer to stick with Firefox but I might have to change if every downloaded document is in an unreadable format.
    This is a typical example of what I get when I try to open a .pl document (the pdf version is a one page document using plain English):
    =====
    %PDF-1.5
    %‚„œ”
    2 0 obj
    <</Length1 15628/Length 10121/Filter/FlateDecode>>stream
    xúÌ{i`U∂9∑™∫;kWoYÈtuöK“ÑR@“ F!,Å$ñêÑÑd Ç䆆¢≤)
    ¢Ääƒet\FeûN࣌∆y3"ÈÔ‹Í|Ûæ˜˝˙˛LUNü{œ›Œ=€=∑i

    HI jlawrence1,
    Is it possible to associated the pl file mimetype with an application? [[Applications panel - Set how Firefox handles different types of files]]

  • HT1766 Hi . I did a restore buckup from i cloud but the photovaulet back me empty with out any pic . Is there any way too get back my photo

    Hi. I lost my phone and i get s5 iphone . I made restore backup and i get all my old phone contine but the photovaulet back is empty . I had a lot of photo there . Is there any way to get back my photovault pic. Thnx alot

    Back from where?
    You choose to not copy them off to a computer as they are designed to be.
    If they are no longer showing in iCloud, they are gone.

Maybe you are looking for

  • Right-click menu not showing certain options?

    When I highlight text, and right-click, it used to show options such as "Search Google for '(the highlighted text)'", or "Open Link in New Tab" if the text was a URL. Now, it shows none of these options, or copy, paste, cut, delete, select all, and o

  • Window stuck maximised; "restore down" minimizes window.

    There are a few posts already about this problem, where FF windows will not resize from maximum via the restore down button, but instead minimize to the toolbar...and vice versa, you can only maximize the window from the minimized position. After sea

  • ACR 5 - Support for Custom Camera Profiles

    ACR 4 allows users to select from a list of four device-independent colour spaces (Adobe RGB 1998, ColorMatch RGB, ProPhoto RGB and sRGB). Unlike other RAW processors, it does not allow selection of a custom camera profile. This capability is very us

  • Using boxover.js for tooltip with no luck

    Hi, I'm trying to use boxover.js provided at this url: http://apex-notes.blogspot.com/2008/01/javascript-tootip-integration.html I followed all those instructions I'm unable to get tooltip. Steps followed: 1)I've uploaded static file in shared compon

  • Automatically open document with Pages 5

    When I upgraded from Pages 4.3 to 5x, documents were automatically set by the installation to all open with version 5.0.x . Due to some initial problems with Pages 5, I changed the setting so that Pages 4.3 opened all documents. I did that by command