Results 1 to 2 of 2
  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
    12,224
    Rep Power
    20

    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 **

Similar Threads

  1. Java.lang out of memory issue! HELP PLEASE!
    By DreaDk in forum Forum Lobby
    Replies: 7
    Last Post: 06-24-2013, 12:37 AM
  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, 10: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
  •