943,733 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 426
  • Java RSS
Sep 17th, 2009
0

Someone i know has a memory issue with java sound.

Expand Post »
Hello everyone,
Someone I know asked me about a problem he has with a program he is writing. I know nothing about his code, but he is writing a keyboard program, with the midi synthesizer in the sound api. what I do know is that he is using note on when a key is depressed, and note off when it is released.
I don't know what made him do it, but he decided to watch task manager as he tested this program (in eclipse if it matters), and the more keys he pressed the higher the memory usage of the program went, and didn't decrease.
I have no explanation for him, I recommended that he register here and ask for himself, but as he hasn't done it, I suspect he won't.

Does anyone know something I can tell him?
Similar Threads
Reputation Points: 73
Solved Threads: 22
Posting Pro in Training
sciwizeh is offline Offline
423 posts
since Jun 2008
Sep 18th, 2009
0

Re: Someone i know has a memory issue with java sound.

Does he ever get a Heap Space exception? Does he ever even fill at least have of the Heap Space? If not, it may just be that the JVM hasn't felt that a GC run has been necessary yet. Also, even if it has, Java only reserves from the system the min heap space, then, as that is surpassed will periodically reserve more until the Maximum Heap Space has been reached. But the JVM never releases that memory back to the System. So, even though the memory usage of the JVM seems to go up and up and up, from the System view, that doesn't mean there is any kind of memory problem. Find a profiler and monitor the actual Heap Space, not the system memory usage of the JVM.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Sep 18th, 2009
0

Re: Someone i know has a memory issue with java sound.

thanks for the info, I'll relay that to him.
Reputation Points: 73
Solved Threads: 22
Posting Pro in Training
sciwizeh is offline Offline
423 posts
since Jun 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Aglet problem
Next Thread in Java Forum Timeline: what to do next?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC