I'm just curious. The context: I'm primarily responsible for the maintenance of testudinata, Binary and whositbot, and am going on vacation for 3 weeks, such that I won't have the ability to toggle my home router if Verizon messes up our connection, which happens with annoying frequency. Luckily (I thought), my other half has a VPS, so I figured I'd just host the bots (as well as my own bot to burn my turns while I'm gone) there.
One problem: her VPS is a bare-bones machine with only 256MB of ram. I'd forgotten to check that, and hadn't considered that each Mafia instance eats 100-150MB by itself. So I'm just curious, to any Mafia developers or other people who really know their way around Java and the Mafia source, whether there might be any tricks I could use to significantly cut down on memory usage, given that in this context, it will always be run in CLI? I'm fine recompiling and with some amount of source-fiddling, but I'm not a Java expert.
It just seems weird that it would really need that much ram (especially running as CLI), when it's really just keeping track of a bunch of counters, making web requests, and printing stuff to console output. Ok, fine, and parsing and running scripts, but still.
If there isn't any moderately easy way, I'll either have to bug her to add more RAM to her VPS for a month, or just keep running it from home and hope Verizon doesn't crap out while I'm gone. >.>
Thanks!
One problem: her VPS is a bare-bones machine with only 256MB of ram. I'd forgotten to check that, and hadn't considered that each Mafia instance eats 100-150MB by itself. So I'm just curious, to any Mafia developers or other people who really know their way around Java and the Mafia source, whether there might be any tricks I could use to significantly cut down on memory usage, given that in this context, it will always be run in CLI? I'm fine recompiling and with some amount of source-fiddling, but I'm not a Java expert.
It just seems weird that it would really need that much ram (especially running as CLI), when it's really just keeping track of a bunch of counters, making web requests, and printing stuff to console output. Ok, fine, and parsing and running scripts, but still.
If there isn't any moderately easy way, I'll either have to bug her to add more RAM to her VPS for a month, or just keep running it from home and hope Verizon doesn't crap out while I'm gone. >.>
Thanks!