Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By JosAH

Thread: Java Memory issue.

  1. #1
    anandcta123 is offline Member
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default Java Memory issue.

    Dear Friends,

    I am newbie to Java programming. I developed a video display module in java using JMF on MAC OSX. Everything is working fine. I am using direct NIO buffer to read frames from native C code and this I am allocating only once. But I am facing very tricky issue and I am not getting where is the problem.

    The issue is, when video window opened and if I resize the video window randomly, in Activity Monitor of OSX, our process real memory is increasing and it is not reducing back. I ran VisualVM tool, here even though memory is more, after garbage collected it is decreasing, but at the same time it is not decreasing real memory used in Activity Monitor. I am not understanding where the problem is going on.

    Please help me get rid of this issue. Give any suggestions, so I can try further. Awaiting for your replay.

    Thanks and Regards,
    Anand

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,133
    Rep Power
    23

    Default Re: Java Memory issue.

    You could try tuning the garbage collector to not keep such a large heap free.
    But it should reduce anyway.

    How big a spare heap are you seeing? Is it more than the 70% default?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    jack12 is offline Member
    Join Date
    Oct 2016
    Posts
    9
    Rep Power
    0

    Default Re: Java Memory issue.

    Better you can try some online java tools for solving all types of memory problems

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,133
    Rep Power
    23

    Default Re: Java Memory issue.

    Jack, you've already been asked at least once to stop resurrecting old threads.
    This one is 3 years old now.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,389
    Blog Entries
    7
    Rep Power
    25

    Default Re: Java Memory issue.

    Quote Originally Posted by Tolls View Post
    Jack, you've already been asked at least once to stop resurrecting old threads.
    This one is 3 years old now.
    So what? This December I'll be 60 years old, but I'm still feeling like 6 years old (and no noticeable progress).

    kind regards,

    Jos (<--- and he's a jolly good fellow, and he's a jolly good fellow!)
    DarrylBurke likes this.
    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. Java.lang out of memory issue! HELP PLEASE!
    By DreaDk in forum Forum Lobby
    Replies: 7
    Last Post: 06-23-2013, 11:37 PM
  2. Memory Leak Issue
    By viren2727in in forum Advanced Java
    Replies: 7
    Last Post: 01-10-2013, 07:44 AM
  3. Out Of Memory Issue on Byte Array
    By arunkumar.palaniyappan in forum New To Java
    Replies: 1
    Last Post: 10-11-2012, 09:42 AM
  4. HELP!Another Memory Game issue
    By allan2020 in forum AWT / Swing
    Replies: 2
    Last Post: 03-06-2012, 06:41 PM
  5. Java Memory Issue
    By personal in forum Advanced Java
    Replies: 12
    Last Post: 01-07-2012, 03:05 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •