Which algirithm is being used by java runtime for garbage collection??

On what basis does java reclaim objects using Garbage Collection ??
and explain the method i.e the step by step basis on how it is being done??

There are various whitepapers and the like on this.
As far as which objects may be collected, it's just any object that isn't referred to - directly or indirectly - by one of the root set of threads in the JVM.
Collecting algorithms vary from jvm to jvm. You'd do better to search the web for a whitepaper on the subject.
~Cheers

Similar Messages

  • How to find out which queries are being used ?

    We have a number of InfoSet Queries which the users are calling from SQ00. Some of them are very old.
    I would like to find out which queries are being used, so we can have the idle queries decommissioned.
    How can this be done ?
    Best regards,
    Peter

    Hi,
    It's been a while since I've done this but one method is to use ST03N & look for the execution of programs with an AQ* prefix.  The general structure is AQZZ/<query user group><query name>.
    You could probably get the same info from the audit log but I've not checked that.
    Cheers,

  • How to Use Multiple Java Runtimes

    Hi,
    I have installed two JRE versions (1.2.2 and 1.4.0_01) in my Machine (Windows platform).
    (The default if 1.2.2 as it was installed later)
    I want to run an application in either of the above JRE's. To do so...
    If I want to run the application on 1.2.2
    I use C:\jdk1.2.2\bin\java MyApplication
    If I want to run the application on 1.4
    I use C:\jdk1.4\bin\java MyApplication
    Basically I am hardcoding the path where the "java" executable lies..
    Now my question is, Is this the correct/only way to use different JRE's?? Is there any other cleaner way to use multiple java runtimes??
    There is some parameter for "java.exe" where we can set version
    like "java -Dversion=1.4.0_01". Can this be helpful??
    Thanks in advance
    Hiten

    You could use DOS environment variables to define the jre path to use.

  • How to know which BAPi is being used for creation of PO in classic scenario

    Hello Experts,
    We are in SRM 7.0 classic scenario.
    How can we know which BAPI is being used in the calssic scenario i.e. How can we know if we are usind BAPI_PO_CREATE or BAPI_PO_CREATE1 for creation of PO?
    Any pointers will be highly appreciated.
    Thank you in advance,
    Thanks & Regards,
    RKS

    Hi RKS
    yesterday BLOG by our SUMMER WANG helps every SRM consultant to debug the PO error
    /people/summer.wang/blog/2010/05/11/trouble-shooting-of-srm-po-transfer-error
    Good work Summer wang !!
    Muthu

  • How do u find which screen is being used in userexit for transcaction

    I have a userexit in which there are 5 screens i want to find out which screen is being used for a particular transaction. I have activated all screens but cant figure out which screen is being used.

    Hi,
    if EVENT_GOT_FOCUS is not suitable for you another possibility could be to use a timer callback, and for every timer tick call GetRelativeMouseState (panel, 0, &x_coordinate, &y_coordinate, NULL, NULL, NULL); this will return the current position of the mouse cursor on the panel. To make use of it, at the beginning of your program you need to obtain the positions of your UI controls, e.g. using GetCtrlBoundingRect ( panel, control, &button.top, &button.left, &button.height, &button.width ). Then you need to check if the mouse is within a bounding box by comparing the mouse coordinate with the control coordinate...
    But why are the tooltips not working for you?

  • Which driver is being used

    We had an issues whereby a new PC would not connect to our 64bit boot.wim to run a task sequence so we need to import a number of drivers into the boot image.  The PC is now connecting.  How can I find out which driver is being used on the boot
    image as I would like to remove the others which are not being used, is there a log file or would it be a process of elimination
    Wayne

    You can also review the logs in WinPE including setupapi.dev.log and wpeinit.log.
    Also, when you say "we need to import a number of drivers into the boot image", I hope you are just talking about NIC drivers because that's all that is truly needed during WinPE (along with storage drivers).
    Finally, when needing to add a driver, you should test it first by loading up WinPE, dropping to the command-line and using drvload to dynamically load the driver. From there you can test whether it works. Ths is still a trial and error method, but it eliminates
    the long drawn process of injecting, distributing, re-booting, etc. and of course it lets you know immediately which driver is correct.
    Jason | http://blog.configmgrftw.com

  • How to determine which configuration is being used within a page/view?.

    If I click on the little cog icon to take me into the AET for a given assignment block, how do I know which configuration is being used?. Usually one is highlighted, but the case of the Accounts main address assignment block these details are not shown. As there probably 30 of them I though there must be a quick way to determine which is being used from within the view/page.
    Anyone
    Jas

    Hi Jason, (great performance at the Transporter, but go easy on the steroids )
    There are 2 ways to know that:
    1. put your focus (not in the configuration mode) on one of the fields that are on the block. then press F2. Here you get a popup where there is the configuration searched for and the configuration found.
    2. Within the configuration, when there is no configuration with the configuration key linked to your business role present, the system takes the <DEFAULT> one. there should at least one be highlighted, otherwise you get a dump NO_CONFIG_FOUND.
    When you just press the copy button on the configurations tab, you get your configuration defaulted, this being, the configuration key linked to your business role + the search for component, usage, and subcomponent. here you see what was searched for.
    Hopefully this helps you out a bit.
    KR,
    Micha
    Edited by: Micha Van Nijen on Apr 20, 2010 3:03 PM
    Edited by: Micha Van Nijen on Apr 20, 2010 3:07 PM

  • How to know which port is being used by which process

    Hi,
    Could you please tell me how to know which port is being used by which process.as iam getting ports are already in use.
    Thank you,
    Sravan
    Message was edited by:
    sravan123

    Your OS might provide a command to support this question like '"netstat".
    Besides, on Unix the pseudo-file system /proc is also useful.

  • Java Mapping Using JAXB [Java Arch for XML Binding]

    Hi All,
    Anyone tried using JAXB  [Java Architecture for XML Binding API available with Java WebServices Pack] technique for XML processing in Java Mapping??
    I am facing the following problems..
    1. I am not able to generate namespace while marshalling target XML [In standalone mode and not tried in XI].
    2. What are the jar files we need to import?
       I tried importing the following jar files in XI.
    jaxb-api.jar,jaxb-impl.jar,jaxb-libs.jar,jax-qname.jar,namespace.jar,relaxngDatatype.jar
      and getting some errors while importing these files in XI.
    3. It throws error at runtime [Interface Mapping-Test Tab]
       like Resource not found:javax/xml/bind/Messages_en.properties,javax/xml/bind/Messages_en_US.properties
    4. Even after creating a copy of available file Messages.Properties with name: Messages_en.properties and Messages_en_US.properties.. it is not generating any messages in Target message tab
    Thanks in Advance,
    Ananth Chinnaraj

    Sravya ,
    I have searched wide and far for this, but no success.
    A lot on JAXB XI and Webdynpro, but nothing on JAXB, XI and mappings.
    Could you please post the url here ?
    Thanks and kind regards,
    Jan

  • CRVS2010 Beta - Can't use the the Runtime for VS 2010 Beta

    Hi,
    I changed my web.config as described in the PDF but I'm always getting this error message:
    Assembly 'my Assembly' uses 'CrystalDecisions.Web, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' which has a higher version than referenced assembly 'CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
    What's wrong?
    Thanks,
    Michael
    Edited by: MGuder on Apr 22, 2010 11:53 AM
    Edited by: Jonathan Parminter on Apr 22, 2010 7:47 AM

    Hi Guys,
    Are you using the VS 2010 CR for VS2010 plug in and if so is this a Beta issue?
    Or are you using a previous versions of CR runtime in VS 210 issue?
    If it is a VS 2010 and CR plug issue then the subject line needs to be changed to follow the rule for posting beta questions to:
    CRVS2010 Beta - Can't use the the Runtime for VS 2010 Beta
    If it's a migration of existing CR 2008 or previous version of CR application into VS 2010 then it's not supported. CR 2008 and previous versions of CR have not been tested with 4.0 framework and therefore it will not work and no escalation path to make it work at this time, don't upgrade your old projects.
    Thank you
    Don
    Sorry I see Jonathan has already changed the title.
    Edited by: Don Williams on Apr 22, 2010 7:52 AM

  • Which client should be use 000 or 001 for Client Copy

    Hi,
    Which client we can use 000 or 001 for fresh Client Copy.
    Also what is the diff. b/w 000 and 001 client and its uses...
    Please suggest.

    Hi
    Always use client 000, except for solution manager systems.
    Best regards
    550894 - CC-ADMIN: Setting up a new client
    Always use client 000 as a template, and never client 001. (A known exception is the SAP Solution Manager.)
    Do not copy any application data from client 000 because the consistency of data and the number ranges cannot be guaranteed.
    Only client 000 is populated with upgrades, Legal Change Packages, Support Packages, language imports and so on with new Customizing so that it always contains the current sample Customizing. This is why it is also so important that the copy is only carried out after the system is updated. Client 001, on the other hand, is obsolete. It serves only as a sample client and may be deleted at any time.

  • Having trouble updating Java Runtime for OSX Lion

    Is anyone having problems updating Java Runtime for OSX Lion?

    I have the same problem.  It is not possible to launch the "Java Preferences" app.  When I do, I get the error message:
    'To open “Java Preferences,” you need to install a Java runtime, but you are not connected to the Internet.'
    I am *most certainly* connected to the internet, since I'm posting to this forum. 

  • I'm in need of java runtime for my iphone 4s5.0.1. where could i find it?

    i'm in need of java runtime for my iphone 4s5.0.1. where could i find it?

    Hi.
    JAVA on iOS, I heard that
    iPhone will never support JAVA.

  • Which JRE is being used??

    Recently I was assigned to take care of a web application developed by JSP, Javascript, struts & EJB. The source codes are compiled into different WAR, JAR and EAR files by using JDK 1.4.2_03. The App Server being used is JBOSS 3.2.3. I hava a lot of questions concerning the application in my mind. Here are some of them, Can anyone please help:
    (1) From the Java Forums, I know that java applications need JRE to run. But I don't see the web application force me to install any JRE when I try to access it via IE6. Why?
    (2) Is there any way (e.g. bat script) that I can know which JRE the web application is using? Can you provide me with some code samples?
    (3) I read an artricle somewhere saying that JRE can be bundled to a web application. How can I now whether the JRE 1.4.2_03 is being bundle with my web application?
    (4) Since the application is compiled by JDK 1.4.2_03, is this a must to use the JRE 1.4.2_03 only?
    Thanks

    Hi,
    All Java compatible web/application servers like Tomcat/Weblogic/Websphere/JBoss ......have build-in JRE. That u dont need to care. You can find the version of jvm ....from the servers's Readme files and and the corresponding documents.
    If your java application works fine with the web/app server means, the JRE is already installed.
    Bye

  • SharePoint Databases - How to determine which ones are being used and which ones aren't

    I am not sure where to exactly post this question.  On the SQL Server side or on a SharePoint side.
    I am a SQL Server Database Administrator who is monitoring some SharePoint databases.  On a daily basis it seems that they are creating new databases but don't delete the databases that they are no longer using.  For example, they might be testing
    on a development server and if things aren't working properly instead of asking that the databases be deleted they just go ahead and create new databases to do what ever they need to do.  Is there a way on the SQL Server side to determine which SharePoint
    databases are being used and which ones aren't being used?  Or does one determine this information through the SharePoint Central Administration console?
    lcerni

    Hello,
    The following query gives you the databases now in use.
    SELECT
    DISTINCT d.name
    FROM
    sys.dm_tran_locks
    tl INNER
    JOIN sys.databases
    d
    ON
    tl.resource_database_id
    = d.database_id
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • Scripting the lenght of a page (for smooth scrolling in DPS)

    Hi, folks I am quite a layman in this scripting world but I have a question that I would really need answered. It's not so much a question of 'how' but one of 'is this possible with scripting'? We want to set up a system where the pages would be auto

  • Concatenate rows from the same table

    Hi, I have a table t1 with one column and 2 rows. I need to make a column with 1 row that is a concatenation of the rows from table t1. Can someone help me with this? Thank you.

  • Replacing Assets

    Here's the Q, I have an existing Enc Project. I changed the video in Premiere with some Soundbooth updates and new audio files for the same video. It will not allow me to store over the orig (unedited avi). SO my chapter links and asset assignments a

  • All boxes are unchecked...how do I check all boxes without doing it 1 by 1?

    I left my ipod to sync and when I came back my ipod had nothing on it...all was erased and in itunes all boxes beside each song in music folder were unchecked. How do I check all of the boxes again so that I can just uncheck the few I wish to have un

  • Image Icon previews

    For some reason, in the past week, Finder seems to have lost the ability to show me image previews via the Icon view option. I have used this feature without a problem since the day I got my new MacBook Pro (17' model of the latest version). In the p