This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MIDI Memory leak  RSS feed

 
james lei
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

http://www.jsresources.org/examples/MidiInDump.html
 
james lei
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the Receiver recv = new DumpReceiver(System.out) might have something to do with it?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!