Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Java memory management

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Location
    San Fransisco
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java memory management

    I kind of not big fan of Java because it manages its memory itself. Either ways I am looking for some pointers on internals of Java memory management and stuff.

    Acumen
    Lucid forums


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Java memory management

    I know you can pass command-line arguments to the JVM. Try doing a google search on that. Other than that, I think the JVM has become open-source (or is in the process of becoming), so you can look at it. To do it in pure Java, I don't think it's possible.

  3. #3
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Java memory management

    The JVM has become really clever over the last couple of years and especially the garbage collector which is what frees up a lot of memory for you once objects become unreferenced.

    What exactly is it you want to manage when it comes to Java memory?

    Don't be fooled though, just because Java manages the memory through the JVM doesn't mean it will resolve memory leaks etc for you. Beware of the code you write.

    // Json

  4. #4
    Junior Member
    Join Date
    Aug 2009
    Location
    San Fransisco
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java memory management

    Thanks for replies guy. So I don't have any specific problem, it was just out of interest I wanted to learn about it.

    Acumen
    Lucid forums

  5. #5
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Java memory management

    If you fancy a read here you go.

    http://java.sun.com/j2se/reference/w...whitepaper.pdf

    // Json

  6. #6
    Junior Member
    Join Date
    Aug 2009
    Location
    San Fransisco
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java memory management

    Thanks Json, appreciate your prompt replies

    Acumen,
    Lucid forums

Similar Threads

  1. Replies: 10
    Last Post: June 22nd, 2009, 08:45 AM

Tags for this Thread