Can you throw up a hello world project on github and tell me which arguments to pass it to get the memory lower? I've tried, but maybe I've missed something.
If you’re launching your hello world project in the CLI, you’d just add -Xmx=64m or whatever size you need. 64 tends to be the default and I haven’t personally tried pushing it lower (for my work I actually have to push it up into the 3-6G range. Ah, language processing).
Try it, I did. I can't get a servlet to use under 100MB after getting hit with a moderate amount of traffic. It runs out of heap.
Use a smaller servlet engine. Most of them assume you will be fine with a larger heap and prepare caching structures, etc with that in mind Others are smaller and lighter.
Which are good for low memory?
I figured as much. I have the luxury of having sole use of a 16 machine cluster with 16G RAM each so I haven’t had to worry about OutOfMemoryError in a while.
Response: Learn to manually configure its memory useage, don't just go with the default.
Not really front-page worthy.