How much Virtual memory to Java and how much free space

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsrinivasan
    New Member
    • Mar 2007
    • 221

    #1

    How much Virtual memory to Java and how much free space

    Hi all,

    How to view current java JVM? If anyone know reply me immediately.

    Thanks,
  • sumittyagi
    Recognized Expert New Member
    • Mar 2007
    • 202

    #2
    Originally posted by rsrinivasan
    Hi all,

    How to view current java JVM? If anyone know reply me immediately.

    Thanks,
    It is not clear what you want to ask, But I think this link would be helping you out.

    Comment

    • rsrinivasan
      New Member
      • Mar 2007
      • 221

      #3
      Originally posted by sumittyagi
      It is not clear what you want to ask, But I think this link would be helping you out.
      What i am asking is how much of Virtual memory is allocated to Java and how much of free space is when a java program is running.

      Thanks,

      Comment

      • sumittyagi
        Recognized Expert New Member
        • Mar 2007
        • 202

        #4
        Originally posted by rsrinivasan
        What i am asking is how much of Virtual memory is allocated to Java and how much of free space is when a java program is running.

        Thanks,
        Whenever you talk about java, then you no more talk about Virtual memory etc, you only talk about heap memory, because GC takes care of memory management. If you want to set heap memory size then use command line arguments for that, eg:- java -Xms200m -Xmx800m TestProgram.
        Xms - minimum heap size.
        Xmx - maximum heap size.

        I hope it helps, if not then google for memory management in java.

        Comment

        • RedSon
          Recognized Expert Expert
          • Jan 2007
          • 4980

          #5
          Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).

          This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

          MODERATOR

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Read the specs for the Runtime class.There are three utility methods there that give you memory information.

            Comment

            Working...