| | |
Someone i know has a memory issue with java sound.
![]() |
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?
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?
My site, random PM's from people I haven't hear from before will be DELETED
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
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.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
thanks for the info, I'll relay that to him.
My site, random PM's from people I haven't hear from before will be DELETED
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "-Albert Einstein
![]() |
Similar Threads
- any Java Sound API gurus? (Java)
- possible mobo / memory issue (Troubleshooting Dead Machines)
- Memory Leaks in Java (Java)
- the idea of using Java for end-user GUI apps (Java)
- Memory Issue (Windows NT / 2000 / XP)
- Memory Issue's! Please Help!! (Motherboards, CPUs and RAM)
Other Threads in the Java Forum
- Previous Thread: Aglet problem
- Next Thread: what to do next?
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary blackberry block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working






