I have a VPS (512 RAM max) on which I want to run a simple IRC bot. I've written it in JAVA, but it turned out JVM is eating a tremendous amount of 144 MB ram. The bot itself has a very low demand for memory, unlike JVM.
So the question is: Is Java appropriate for this task? I'm not running any other java apps on this server so this seems to be an utter RAM waste. Would it be better to just rewrite everything in c/c++ or is there a way to run small java programs with little JVM memory overhead?
Just to be sure we're not duplicating questions: -Xms and -Xmx are not going to help, see: Java seems to ignore -Xms and -Xmx options