3 ms·
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
by saryant 15y ago
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).
- jshen 15y agoTry 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.
- saryant 15y agoI 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.
- democracy 15y agoservlet + web server + (guessing) crazy number of libraries - is it still a 'hello world' app?
- headius 15y agoUse 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.
- jshen 15y agoWhich are good for low memory?