I’m only seeing one question here, so I’ll (poorly) answer that first.
How much RAM usage is acceptable?
It totally depends! I’m sorry this is such a shitty answer, but unless you have more information about the kind of machines running the software, it’s extremely hard to judge. I’d try to keep it under 512MB, but that number is completely made up.
Now, let’s look at the others.
Differences in memory usage when running in browser to desktop flashplayer. Desktop uses a lot more.
If you’re running the desktop debugger, there is going to be more memory usage, simply because the player is doing more. Since the web plugins are usually on a shared process, there is less overhead adding one more item to that plugin’s queue.
Ram usage starts at a number then climbs up and up, then crashes back down again. Loops doing this.
You’re seeing the garbage collector doing its job. Whenever a variable is no longer tracked (set to null
, discarded, et cetera), it is marked for collection. Once the memory usage reaches a threshold (or whenever it finds a good time), the garbage collector purges that from memory, dropping the RAM usage.
Different RAM usage on different PCs. Way less on high end PCs than low end ones.
High end PCs have a faster processors, so they don’t rely on storing data to process later, they can just go ahead and run it. Also, the memory is usually much faster, so not as much data can accumulate in RAM before getting dealt with. (The garbage collector also runs more frequently.)