This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Performance and the fly likes Memory keep increasing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Memory keep increasing" Watch "Memory keep increasing" New topic
Author

Memory keep increasing

james lei
Greenhorn

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?

http://www.jsresources.org/examples/MidiInDump.html
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
What exactly is your problem?

Generally we let Java take care of memory as needed, so if you are not running out of memory, why are you worried?

Bill
 
jQuery in Action, 2nd edition
 
subject: Memory keep increasing
 
Similar Threads
Session Size in Servlets
Servlet without timeout
Javascript Memory Problem
store unicode
MIDI Memory leak