To know the currently active objects

Hi all,
I am facing a problem to know the number of active objects in the JVM for the currently running java application.
I mean iwant to know when they are destroyed and how much memory they are consuming while they are in the heap.
Also i want to know their references.
Can any one suggest me a way to achieve this objective?
Thanks in advance.
Pravat.

Hi,
Just for information, you can perform join with V$SQLTEXT too
select s.username c1, t.sql_text from
v$session s, v$sqltext t
where
s.sql_address = t.address and
s.sql_hash_value = t.hash_value and
s.username is not null
order by s.username, s.prev_sql_addr,s.prev_hash_value, t.piece;Cheers

Similar Messages

  • Suggestions to find the current active fields in debugging mode

    Hi All,
    I need to validate a particular entry in the screen in a particular subroutine(inside a user exit). I know the field gets populated but do not know which field is that, is there a way to know the current active fields in the debugging mode.
    Regards,
    Karthik

    Hi,
      You can create dynamic types and data for those types are run time.
      lets assume that you have structure of some type and you have work area of that type.
    DATA: lv_data type SPFLI.
    DATA: lr_rtti_struc TYPE REF TO cl_abap_structdescr.
    DATA: lt_comp       TYPE cl_abap_structdescr=>component_table.
    DATA: ls_comp       LIKE LINE OF lt_comp.
    DATA: lr_data       TYPE REF TO data.
    FIELD-SYMBOLS: <fs_data> TYPE ANY.
        lr_rtti_struc ?= cl_abap_structdescr=>describe_by_data( lv_data ).
        lt_comp = lr_rtti_struc->get_components( ).
    "Now  lets remove two fileds from the table as follows.
    LOOP AT lt_comp into ls_comp.
    DELETE lt_comp INDEX sy-tabix.
    IF sy-tabix = 2.
    EXIT. " Delete two components of the structure now lt_comp as two components less from SPFLI
    ENDIF.
    ENDLOOP.
        CALL METHOD cl_abap_structdescr=>create
          EXPORTING
            p_components = lt_comp
            p_strict     = abap_false
          RECEIVING
            p_result     = lr_rtti_struc.
    CREATE DATA lr_data TYPE HANDLE lr_rtti_struc. "Now you have data of the new type
        ASSIGN lr_data->* TO <fs_data>.
        CREATE DATA lr_table LIKE STANDARD TABLE OF <fs_data>.
        ASSIGN lr_table->* TO <fs_table>.
    Regards,
    Sesh

  • JavaScript:  How do you pass the currently active doc to a dialog in a menu item?

    I'm using Adobe Acrobat 11.0 Standard on Windows 7, and I'm having trouble with the menu item that I'm creating.  The menu item calls a dialog that prompts the user to select a page in the currently active document.  The problem is, I can't figure out how to pass the currently active document to the dialog.  I scoured the rest of the documentation, did searches on Google and here in the Adobe forums, but haven't turned anything up.  The AcroJS API gives the following solution (found under app/methods/execDialog):
    This function attaches the Doc object to the dialog box, then passes the dialog box to the app.execDialog method. The dialog4 object and this function can be at the document level.
       function dotheDialog(dialog,doc)
            dialog.doc = doc;
            var retn = app.execDialog( dialog )
    Finally, the following script can be executed from a mouse-up action, for example.
        dotheDialog( dialog4, this );
    I did this exact thing, but in the dialog, the value of this.numPages still comes out as undefined, indicating that the current document still hasn't been passed.  My own code looks like this:
      function dotheDialog(dialog, thisDoc){
        dialog.doc = thisDoc;
        var retn = app.execDialog(dialog);
      app.addMenuItem({
        cName: "Test Dialogue Box",
        cParent: "Edit",
        cExec: "dotheDialog(templateDialogue, this);"
    where templateDialogue is the name of my own dialog, rather than dialog4.  I'm not sure what the retn variable that they declare in the documentation is for, but I've tried it with and without that part, and it doesn't seem to make a difference.  Does anyone know how to do this?

    Sorry, here it is.  It's also just a small modification of something directly from the API, which is why it still has the date bit in it.
    var templateDialogue = {
      initialize: function (dialog) {
        // Create a static text containing the current date.
        var todayDate = dialog.store()["date"];
        todayDate = "Date: " + util.printd("mmmm dd, yyyy", new Date());
        dialog.load({ "date": todayDate });
      commit:function (dialog) {    // called when OK pressed
        var results = dialog.store();
        var inBounds = (parseInt(results["tPag"]) < this.numPages);
        if(!inBounds){
          app.alert({
            cMsg: "Please enter a valid number for the page from which to make the template." +
            "\n" + parseInt(results['tPag']) + " = parseInt(results['tPag']) !< this.numPages = " +  // I put this in to see the value of this.numPages,
            this.numPages,                                                                           // and it continues to be undefined.
            cTitle: "Page out of Bounds",
            nIcon: 0, nType: 0
        }else{
          var nButton = app.alert({
            cMsg: "Your template is named " + results["tNam"] + " and is made from page " + results["tPag"],
            cTitle: "javascript",
            nIcon: 3, cType: 0
      description:    {
        name: "Personal Data",    // Dialog box title
        align_children: "align_left",
        width: 350,
        height: 200,
        elements:
            type: "cluster",
            name: "Add a page to this documents templates.",
            align_children: "align_left",
            elements:
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Template Name: "
                    item_id: "tNam",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Generating Page: "
                    item_id: "tPag",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "static_text",
                name: "Date: ",
                char_width: 25,
                item_id: "date"
            alignment: "align_right",
            type: "ok_cancel",
            ok_name: "Ok",
            cancel_name: "Cancel"
    Side Question:  Out of curiosity, how would you abort if the user clicks cancel?  I get the feeling that they don't cover it because it's something you're supposed to already know how to do, but...I don't.  Would you just put whatever action you want to take into an if ( button == "Ok" ) type statement so that cancel does nothing?

  • Reader Hive query - Cannot deserialize the current JSON object

    Hi all,
    I am trying to run a Reader module in MLStudio with a Hive query but it fails with Error 0000: Internal error.
    In the output log I see this error:
    [ModuleOutput] DllModuleHost Error: 1 : Program::Main encountered fatal exception: Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException: Error 0000: Internal error ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'Newtonsoft.Json.Linq.JToken' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
    [ModuleOutput] To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
    [ModuleOutput] Path 'FileStatus.length', line 3, position 14.
    But I don't see any configuration to change any JSON settings.
    What am I doing wrong? Can anyone help me?
    Thanks,
    Csaba
    PS: Using the Hive Editor I can select from my table without any problems.

    Can you let us know if you are still encountering this error? It doesn't look the error is due to user error.

  • How do you reset your password if you dont know the current password

    Does anyone know how to reset your password if you do not know the current password

    If you have forgotten your Apple ID password: If you forgot your Apple ID password
    If it's your iPhone passcode; then you need to do a restore: Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled

  • Restart current song while iTunes is not the current active app

    In prior iTunes 11 / Mtn. Lion when using an Apple keyboard the F7 key when pressed would re-start a song that was playing with one press, and go to the previous with 2. This functionality has changed so that now it will go to the previous track with one press.
    Is there a way to change the functionaly back or, add a separate key command that allows me to restart the current song when iTunes is not the currently active app?
    Thanks!

    I have a SteelSeries Shift keyboard, and experienced the same problem after updating to 10.4.
    Found this little piece of software to fix the problem for me:
    http://code.google.com/p/hktunes/
    It's not ideal, as it has to run in the system tray in order to work, but it's way better than being without the functionality of the hotkeys, untill the problem is fixed.
    Hope this works for you guys as well!

  • How to know the current Task/Job ID in which a request is waiting for

    Hi Team,
    Is there any table/view in IDM 7.2 that provides current task/job ID number a request is waiting for?
    Even though the last completed phase of the request can be seen from admin UI that only shows the description of the completed steps but not the technical details like task ID/Job ID of the current step.
    Knowing the current step/Job ID helps the admin a lot to directly go the step when the request is waiting for long/got failed etc..
    Regards,
    Venkata Bavirisetty

    Hi Matt,
    Thanks for your response.
    I read few articles in your blog couple of weeks before and they are very much informative.
    The information provided in the provisioning queue just shows the task ID and no.of requests (without request nos) waiting in that task.
    Basically the question I have mentioned in my previous post is not related to any specific task type. It is like using request no we wanted to know complete request history specially the current task (task ID) at which the request is waiting for.
    Regards,
    Venkata Bavirisetty

  • How to know the current patch or version of 11g

    How to know the current version of the 11g with patch info?

    Check this
    http://obi9.blogspot.com/2012/11/determining-current-patch-levels.html
    If helps pls mark

  • Hello I have a problem with the iPhone 5 does not know the account activation lock

    Hello I have a problem with the iPhone 5 does not know the account activation lock 

    You will not be able to access the device without the account activate lock password. IF you have the receipt and other proof of purchase you may have sucess with contacting apple and asking them for assistance. Depending gretaly on how much proof of purchase you have.
    Good luck Friend.

  • How can I automatically have a new tab always be a copy of the current active tab?

    The add-on extension "NewTabURL" (by "sogame") provided the option I want and used for a number of years. But it stopped working when Firefox was updated to version 16.0. When I click for a new tab, all I get is a completely blank tab. How can I automatically have the new tab always be a copy of the current active tab?
    Can the extension "NewTabURL" be revised to work in version 16 and/or version 17? If not, how else can I get the new tab functionality that I desire? I can't seem to find any other extension that provides that functionality.
    Milt Beychok

    My trackball has 4 buttons and a scroll wheel. Each of the 4 buttons is programmable. The 4 buttons are normally pre-programmed for single-click, double-click, drag and right-click by simply pressing on them
    Each of the 4 buttons may be programmed to also have other functions. For example, I programmed "control/single-click" to produce a middle click. I could also have used "shift/single-click" or "alt/single-click" to produce the middle-click. Or I could have similarly programmed double-click or drag or right-click. The Kensington Expert Mouse is quite versatile ... once you get the hang of programming it.
    I have had it for about 4 years and I had never had the need to program one of them until you told me about using a middle-click.
    Milt Beychok

  • How to know the current version of SAP

    Hi everybody,
    How can we know the current version of SAP we are working with? Is there any function module for it?
    please let me know.
    thanks in advance,
    regards,
    mounika.

    goto sap...From MENU  System-->Status...it will open a popup..Under component version..the is a click icon...click on it and it will open another popup where u will find details...example...
    SAP_BASIS     620
    SAP_ABA                     620
    SAP_APPL     470
    SAP_HR                     470
    EA-IPPE                     110
    So, basis is on 6.2 & abap gui is on 6.2 where as abap application is on 4.7

  • After the currently active tab is closed, can the previously acitve tab be automatically displayed?

    After the currently active tab is closed, I don't want to see the tab on its right or on its left. I want to see the tab that was active before the closed one, whatever its position is on the tab strip.
    Can that be achieved?

    My trackball has 4 buttons and a scroll wheel. Each of the 4 buttons is programmable. The 4 buttons are normally pre-programmed for single-click, double-click, drag and right-click by simply pressing on them
    Each of the 4 buttons may be programmed to also have other functions. For example, I programmed "control/single-click" to produce a middle click. I could also have used "shift/single-click" or "alt/single-click" to produce the middle-click. Or I could have similarly programmed double-click or drag or right-click. The Kensington Expert Mouse is quite versatile ... once you get the hang of programming it.
    I have had it for about 4 years and I had never had the need to program one of them until you told me about using a middle-click.
    Milt Beychok

  • How do I change the password in iPhone without knowing the current PW?

    I synced my iPhone 4S and know my access password very well, yet the phone tells me it's wrong. I have no access to my data and can't make phone calls as the access is denied.
    How can I retrieve control over my phone again? Is there a way to change the pw without knowing the current one?
       ---- HELP!!!

    LOST PASSCODE
    You may be able to reset the passcode by restoring the device.
    Connect the device to the computer with which you normally sync and open iTunes.
    Note: If iTunes prompts you to enter the passcode, try another computer that you have synced with. Otherwise, go to "If you have never synced your device with iTunes", below.
    Right-click the device in the left column and select Back up.
    When the backup is complete, select Restore.
    When finished, restore from your most recent backup.
    Otherwise read this
    If that doesn’t work  you will need to perform a factory restore to remove it. Or read:
    Enter Wrong passcode
    http://support.apple.com/kb/ht1212

  • Script to find the currently active sql

    hey,
    Can somebody post me a script to find the currently active sql in the database ???

    Hi,
    You can try these below:
    select s.username
           c1,t.sql_text
    from v$session s, v$sqltext t
    where
    s.sql_address = t.address and
    s.sql_hash_value = t.hash_value and
    s.username is not null
    order by s.username,s.prev_sql_addr,s.prev_hash_value,t.piece;
    or
    select sesion.sid,
           sesion.serial#,
           sesion.username,
           sesion.sql_id,
           sesion.sql_child_number,
           optimizer_mode,
           hash_value,
           address,
           sql_text
      from v$sqlarea sqlarea, v$session sesion
    where sesion.sql_hash_value = sqlarea.hash_value
       and sesion.sql_address    = sqlarea.address
       and sesion.username is not nullCheers

  • How to know the current tab

    Hi everyone,
    Does annyone knows if there is an indicator that indicate you the current tab where you are working in?
    I want my BSP to do different action depending on wich tab the user is in.
    I'm working in the BSP CRMD_BUS2000126 for the activities.
    Thanks!

    This is probably a question better suited to the BSP forum.  I also noticed that your application name starts with CRM.  I'm not familiar with CRM and its particular take on BSP, but I can tell you how I do this in my BSP applications:
    First I use the phtmlb:containerTabStrip to create my tabstrip.  I use an application class attribute to store my selectedIndex (the current selected Tab).
    <phtmlb:containerTabStrip id                    = "TabStrip15"
                              collapsed             = "FALSE"
                              collapsible           = "FALSE"
                              firstVisibleItemIndex = "1"
                              hasContentConnector   = "TRUE"
                              maxVisibleItems       = "5"
                              onCollapse            = "myCollapse"
                              scrollableItems       = "TRUE"
                              selectedIndex         = "<%= application->SELECTED_date2       %>" >
    Now I use MVC, so in my DO_HANDLE_EVENT method of my controller class I trap the tabstrip event and query for the selected tab:
    data: event_id type string.
      event_id = event.
      if htmlb_event is not initial.
        event_id = htmlb_event->id.
      endif.
      data: model type ref to zcl_bsp_m_eqi_selection.
      data: appl type ref to zcl_eq_bsp_eqi.
    ****Get a pointer to the Model Object.
      model ?= get_model( 'MS' ).
    ****Get a Pointer to the application Object
      appl ?= application.
      if event_id cs 'tabstrip15'.
        data: event1 type ref to if_htmlb_data.
        event1 = cl_htmlb_manager=>get_event_ex( request ).
        if event1->event_type eq cl_phtmlb_containertabstrip=>co_phtmlb_event_tab_selected.
          appl->selected_date2 = event1->event_server_name.
        endif.
      endif.

Maybe you are looking for

  • Report Layout Can Applied as a default in Background ??

    Dear Friends, I have created an Variant for report layout  S_ALR_87012403 and set as default layout .... Foreground execution picked the defaulted layout but when am trying to execute the same report in back ground report layout is not picked properl

  • I'm having a problem sending tex it keeps coming back not delivered on my I phone 4 can you help

    Can you help I can't send Tex's on my I phone 4 it's been the last couple days now I can receive them but when I reply they come back undelivered can you help

  • Mounting Sony Bravia 46" TV

    I'm trying to wall mount my Sony Bravia TV and found that the mounting holes on the TV are not verticle. They are at a slight angle which will cause the hangers to not lie flat on the hanging bracket. Does this mean I have to buy mounting bracket spe

  • EXS 24 can't find samples

    One day randomly EXS 24 wouldn't load certain sample instruments like "String Ensemble" for example. When I click on the sample it freezes for a moment and then gives a message that says " EXS 24 cannot find " *random numbers* .wav" files and then gi

  • Change field alignment for field type currency / float

    Hello Experts. I have a requirement : I want to align the field in the webUI on the right, not the label. Actually for the attribute type currency or float, it is at aligned at the right position. I see the configuration description and the XML file.