I need a small Confluence with few simultaneous users, so I've subscribed to a cheap Ubuntu virtual server with 512 MB ram at alvotech.de and installed Confluence onto it. Now, my problem is that Confluence keeps hogging 4-500 MB of memory, which ultimately crashes the server as soon as it's put under just a little bit of pressure.
To reduce its memory usage I've tried two things (simultaneously):
1) Halved the allowed sizes in JAVA_OPTS so that it's now:
-Xms128m -Xmx256m -XX:MaxPermSize=128m
2) Tried to disable caching by setting, in ehcache.xml:
maxElementsInMemory="0"
Neither has any effect on memory usage - it's still around 4-500 MB.
Am I way off track here? Should I give up and buy myself a larger, non-virtual server? Or is it possible to get the memory usage below 512 MB?