Can GCs trigger a method in my app instead of just writing into logs?

I'm using the -Xverbose:memory -Xverbosetimestamp flags, which add lines like this into the logs:
[memory ][Wed Dec 01 19:41:48 2010][02644] 30937.279: parallel nursery GC 1048299K->790897K (1048576K), 35.341 ms
[memory ][Wed Dec 01 19:46:58 2010][02644] 31247.265: parallel nursery GC 1048529K->1048576K (1048576K), 31.378 ms
[memory ][Wed Dec 01 19:46:59 2010][02644] 31247.297-31247.921: GC 1048576K->413679K (1048576K), 624.106 ms
[memory ][Wed Dec 01 19:53:48 2010][02644] 31657.323: parallel nursery GC 759290K->480904K (1048576K), 34.962 ms
[memory ][Wed Dec 01 19:59:18 2010][02644] 31987.334: parallel nursery GC 759327K->500147K (1048576K), 34.632 ms
But is there more efficient way to get this information from my application aside from polling the log and parsing? I'm using WebLogic 10.3.3 and JRockit 28.0.1.
Thanks,
-Bill

I like to monitor the free memory after each OC to see whether I'm running out of memory. My users can run their own beanshell scripts within our product and sometimes run the system out of memory. If I can detect it before the system goes down, I can do some extra logging. Ideally, I'd liike to kill the thread, but I'm guessing that cannot be done without creating a bad state (like the server is running but not responding to new requests).
Anyway, I've looked at Chapter 12 (got the book right here) and I don't see quite what I'm looking for. I see the perf counters but I think I would have to poll those instead of having it pushed to me. Any suggestions?
-Bill

Similar Messages

  • TS3297 I comment the app on itunes but I can not complete the purchase of the app ask you just how I can do better

    I comment the app on itunes but I can not complete the purchase of the app ask you just how I can do better

    So you want to use the app in a different account than you bought it with. If that is the case you need to contact the Mac App Store support. You will find the link for that in the Mac App Store by clicking Featured - Under Quick Links you will see the Support link. Follow that for help.

  • HELP please! :) My ipod gets like lock, everything appear with lines, I already restore like three times the ipod and still happens the same, what can I do? and on some app store they just told me that restore, but well I do and is the same!

    My ipod gets like lock, everything appear with lines, I already restore like three times the ipod and still happens the same, what can I do? and on some app store they just told me that restore, but well I do and is the same! What can I do?? and is new, I buy it on march!
    This is a image of the ipod already restore, and everytime looks like that!

    If restoring the iPod to factory defaults/new iPod dow not solve the problem you likely have a hardware problem.  In that case either make an appointment at the Genius Bar of an Apple store or call AppleCare.  If defective, Apple will replace your iPod at no cost.

  • Open an App and see the App instead of just the name in the menu bar?

    This may seem like a dumb question, but here goes anyway...
    Two applications in particular....Microsoft Office apps (word,excel,etc)
    and Pro Tools LE....
    How do I open these apps and see the opening page of the app, rather that
    just the name of the app in the menu bar and the desktop...?
    This happens automatically in Win XP or Vista....

    Only a very few Apps have the option/preference to do that in OSX, not sure if any MS APPs do or not.
    Maybe it would be closer to what you want though, to instead of opening the APP, drag say the Word® doc you want to the Word® icon in the Dock, which runs Word, opens the document, and skips the Open Dialog.

  • How can I teach iPad2 to recognize my name instead of breaking it into two words?

    How can I teach iPad2 mail to recognize my name instead of breaking it into two words or changing it into something completely different?  I am not Britain or Brit a.

    Everyone say this, and it is simply not true.  I just filled a page in Notes with 'for', fighting my iDumbPad from replacing it with 'fir'.  A whole page and it learned NOTHING!  How many times do you think I use 'for' in a day on three devices?

  • On my iPad I have installed the update ios 7.0.4 and now I can't send emails from the mail app is it just me or a problem with the update?

    On my iPad I have updated the software to iOS 7.0.4 and now I can't send any emails from the mail app.  Is this me or the update?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Why can't I access fully authorized CC apps and not just trials?

    Sales says my purchase has been approved. However, when I open a CC application, it asks me for a serial number which I don't have. I was not given one by Adobe. Also, most of the apps in my Creative Cloud Desktop appear as "Try" not "Install." How do I get fully "authorized" so I can utilize fully authorized apps, not just Trials?    

    Hi geckocrown99,
    This happens when your system is not able to connect to the activation server.
    You should check the 'hosts' file in your computer and delete all the Adobe entries from the hosts file.
    The location of the hosts file is
    For Windows :-- C:\Window s\System32\drivers\etc\hosts
    For Mac :-- Finder --->Go--->Go to folder--->/etc--->press enter--->hosts
    Open the hosts file with Notepad(for windows) textedit(for mac)
    Once you have deleted the Adobe entries from the hosts file after that you can open Creative cloud desktop.
    Thanks
    Kapil

  • Can I combine two methods of code to load various SWF files into the same location

    I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
    Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
    [CODE]
       function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                   name:image.@name + "Thumb",
                   width:_THUMB_WIDTH,
                   height:_THUMB_HEIGHT,
                   //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                   //x:260, y:320,//doesn't work here but works in line 69
                   scaleMode:"proportionalInside",
                   bgColor:0x000000,
                   estimatedBytes:13000,
                   onFail:_imageFailHandler}),
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                    name:image.@name + "Image",
                    width:_IMAGE_WIDTH,
                    height:_IMAGE_HEIGHT,
                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                    x:0, y:144,
                    scaleMode:"proportionalInside",
                    bgColor:0x000000,
                    estimatedBytes:820000,
                    onFail:_imageFailHandler})
    [/CODE]
    Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
    Previously this is what I did to achieve it. I would specify a String:
    [CODE]
    var sourceVar_ProductsPopUps:String;
    [/CODE]
    and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
    [CODE]
    function onClickSumix1PopUp(event:MouseEvent):void {
      sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
      gotoAndPlay("prdctsPopUps");
    [/CODE]
    Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
    [CODE]
    loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]
    But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
    [CODE]
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
    [/CODE]
    and
    [CODE]
    new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]

    Thanks for looking into my issue.
    Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
    So, my main flash file is broken into labeled sections on the main time line.
    One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
    "ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
    Everything works fine (with your previous help)
    Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
    function _xmlCompleteHandler(event:LoaderEvent):void {        _slides = [];       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.        var imageList:XMLList = xml.image; //In the XML, we have  nodes with all the info we need.        //loop through each  node and create a Slide object for each.       for each (var image:XML in imageList) {         _slides.push( new Slide(image.@name,               image.@description,               new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",               {                    name:image.@name + "Thumb",                    width:_THUMB_WIDTH,                    height:_THUMB_HEIGHT,                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                    //x:260, y:320,//doesn't work here but works in line 69                   scaleMode:"proportionalInside",                    bgColor:0x000000,                    estimatedBytes:13000,                    onFail:_imageFailHandler}),                 new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",                   {                     name:image.@name + "Image",                     width:_IMAGE_WIDTH,                     height:_IMAGE_HEIGHT,                     //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                   x:0, y:144,                     scaleMode:"proportionalInside",                     bgColor:0x000000,                     estimatedBytes:820000,                     onFail:_imageFailHandler}) 
    Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
    P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away.

  • Why can't I download any of the apps? I just see a spinning circle that never goes away

    under the "apps" tab all I see is a spinning circle. I need to use photoshop. I am on a Mac

    See earlier thread regarding the same question
    Just downloaded creative cloud. When I go to desktop app and click on the apps link the loading icon just spins
    Darrell

  • Why can't I open my Microsoft Word app? I just installed Lion.

    I just installed Lion, and now I get a message saying "You can't open the application Microsoft Word because Power PC applications are no longer supported." What gives?

    Alternatively you can look at the Word compatible comparable applications which have been upgraded to Intel Mac Universal format from the links on my Crossplatform page*:
    http://www.macmaps.com/crossplatform.html
    The only reason to upgrade Office is if something non-standard in the Office suite is needed.

  • For downloads in windows 7, how can I add the option to "save as" instead of just "open" or "save"

    Hi, could really use your help! Recently updated Firefox. I used to click on downloads and be able to "save as". Now, I can only "open" or "save". When I click on "save", all the files go to one default downloads folder. Then I have to open explorer, locate the folder and file, then cut and paste it to the appropriate folder. A cumbersome process!
    Does anyone have a solution? Thanks!

    It works - thanks so much! Note if others have this issue, you may think it's not working - you'll still get the same pop-up box with only two options - "open" or "save". However, when you click "save", it then gives you the option where you'd like to save it to.

  • HT3477 Can you please send me my verification email instead of just saying you will

    I need you to send me my Apple ID verification email to my gmail account so I can download apps

    If you made a typo, then it will go to the wrong account.
    I guess it's time for
     Account Security Team (AST) 
    Check the AppleCare number for your country here:
    http://support.apple.com/kb/HE131
    Call them up, and let them know you would like to be transferred to the Account Security Team.
    HT5312: Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312

  • Can i trigger jar app. from as3

    Can i trigger jar app. from as3.
    i'm trying like this..but i getting error.
    var jarPath:String ="http://websitename.com/folder/JavaApplets/ScreenRecorder.jar";
    record_btn.addEventListener(MouseEvent.CLICK, recordClick);
    function recordClick(event:MouseEvent):void
              var jarLoader:Loader = new Loader();
              var jarRequest:URLRequest = new URLRequest(jarPath);
              jarLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, jarError_Handler);
              jarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, jarCompleteHandler);
              jarLoader.load(jarRequest);
              addChild(jarLoader);
              function jarCompleteHandler(e:Event):void
              function jarError_Handler(error_Event:IOErrorEvent):void
                        trace(error_Event);
    Error:
    [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2124: Loaded file is an unknown type. URL: http://sitename.com/folder/JavaApplets/ScreenRecorder.jar"]
    or any other solution through flash button click.

    You cannot load Java applets into the Flash movie display list. I was going to test if Java applets run in a HTML loaded into a StageWebView (AIR only), but never got around to it Another approach is to let Flash call javascript to write the applet embed code in the HTML.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Why can't I update or load new apps on my iPhone and iPad. It does not ask me for my password. I tried to sync from my laptop now I am unable to connect to any sites from internet explorer. When I try to update or load any app it tells me it is corrupt

    Why can't I update or load new apps on my iPhone and iPad. It does not ask me for my password. I tried to sync from my laptop now I am unable to connect to any sites from internet explorer. When I try to update or load any app it tells me it is corrupt

    You need to ask Apple for assistance with getting back into your old ID. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to resolve this issue through the Account Security team, fill out and submit this form.
    (118441)

  • How can I trigger an onchange event for hidden or never displayed item

    hi -- I have an item that I don't want displayed on my page -- more info than the user wants or needs; call it B. It needs to be
    set by an onchange event from a visible item (A); then, the change of B triggers on onchange to set another item (visible) -- C.
    When B is visible on the page, it all works. If I make it hidden or conditionally never displayed, it doesn't work. From the looks of
    it, B never gets changed.
    How can I trigger this onchange event (from B to set C) with B not visible?
    Thanks,
    Carol

    hi Varad -- Probably more info than you want... but here's the whole chain of events.
    Hope it answers your question.
    C
    **** 1
    In A's html form element attributes (simplified; I took out the irrelevant call to jsLookupValue that sets another item).
    onchange='jsLookupValue($v("P142_SITE_ID"),"site_id","P142_OBJECTTYPE_ID","objecttype_id","hdb_site_syn");'
    **** 2
    jsLookupValue is the following.
    The statement that actually sets the value of B is: $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    function jsLookupValue(source_item_value, source_column_name, dest_item_name, dest_column_name, lookup_table_name){
    // Continue only if there are valid values
    if (valueOf(source_column_name)&&valueOf(dest_item_name)&&valueOf(dest_column_name)&&valueOf(lookup_table_name)){
    //Check to see if the source_item_value is null (either all spaces or empty
    //If it is, set the dest item to null, but only if it's not already --
    //otherwise we get into a loop.
    source_item_value = trim(source_item_value);
    dest_item_value = trim($v(dest_item_name));
    if (source_item_value.length==0) {
    if (dest_item_value.length != 0) {
    $s(dest_item_name, null);
    }else{
    //This is the AJAX call to the Application Process from step 1
    ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
    //Here we are adding that x01 parameter we use in the app process with the value of the objecttype_name field
    ajaxRequest.addParam('x01', source_item_value);
    ajaxRequest.addParam('x02', source_column_name);
    ajaxRequest.addParam('x03', dest_item_name);
    ajaxRequest.addParam('x04', dest_column_name);
    ajaxRequest.addParam('x05', lookup_table_name);
    //Now do the actual AJAX call and put the result in ajaxResponse
    ajaxResponse = ajaxRequest.get();
    //Check if there is a response
    if (ajaxResponse) {
    //We need to format the JSON return string and put it in a JSON object
    // the formatting is done by a function in the external JSON library
    // the jsonobj can be used to retrieve the data returned by the App process
    var jsonobj= ajaxResponse.parseJSON();
    // And finally, we set the DNAME item with the value of the jsonobj.DNAME
    // an array was created in the object with the name row, so that is why you have to include row[0] to retrieve the data
    if (jsonobj.row[0].RETURN_VAL != $v(dest_item_name)) {
    $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    }else{
    } //not setting
    }else{
    alert('No response from app process');
    } //no response
    } //no source item value
    } //no bad nulls
    } //function
    **** 3
    I won't bore you with app process LOOKUP_VALUE. It just builds an sql query that gets the value for B, aliased to RETURN_VAL.

Maybe you are looking for

  • Mid 2011 Macbook Air Painfully slow.

    Mid 2011 Macbook Air Painfully slow. Hey everyone.  I am writing about my 13 inch Mid 2011 Macbook Air.  Recently it has been extremely slow and on occasion has not started up. I have reset the PRAM and SMC already, yet it is still very slow.  I have

  • My Weather Mobile

    For you weather junkies like me, this is the greatest weather app yet for the iPhone. Be forewarned however: I downloaded and installed this app last night and immediately was unable to connect (spinning wheel) to any of my mail accounts. Pandora wou

  • Imported B&W NEF images appear as colour when opened!

    Odd one here. Have searched the forum but while there are some B&W issues discussed, nothing matches this one. OS X 10.6.4, iphoto '09 build (8.1.2). Camera Nikon D90 using NEF images. Camera set to take B&W. Camera is using Colour Profile Adobe RGB

  • Can I have automatic e-mail setting for ADDM and AWR reports??

    Can I have Automatic e-mail settings for all my AWR and ADDM reports so I don;t have to run the reports all the time but they can be sent over to my mailbox and I can review them, if at all I can do that then can I bound them to a particular time fra

  • How to backup only one tablespace in cold backup noarchivelog mode

    Hi, How to backup only one tablespace in cold backup noarchivelog mode Reagrds, Rushang