aspose file tools*
The moose likes Beginning Java and the fly likes MIDI Memory leak Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "MIDI Memory leak" Watch "MIDI Memory leak" New topic

MIDI Memory leak

james lei

Joined: Dec 08, 2010
Posts: 5
I tried to test out the MIDIInDump example and found memory issue that keep increase 4Kb by 4Kb or even worse 16Kb whether the midi data is being dump on the screen, it can go from 10MB to 40+MB, after strip out the MIDI API t.setReceiver(r);, it doesn't caused memory spike as no data was received.

Tried to lower XMX and XMS parameter to 10m, the problem persist. How do I limit the memory usage or any idea to free up the data?
james lei

Joined: Dec 08, 2010
Posts: 5
I think the Receiver recv = new DumpReceiver(System.out) might have something to do with it?
I agree. Here's the link:
subject: MIDI Memory leak
Similar Threads
Memory keep increasing
Servlet without timeout
store unicode
Session Size in Servlets
MIDI help