How to set the maximum amount of memory used for java? I keep the MineCraft server - as much as possible can be set up in support for the 1GB virtual server, in what way can I set a larger amount of allocated memory?

    1 answer 1

    Set 2 gig hip / heap:

    java -xmx2g <myClass>

    Generally read the Java documentation. Run

    java -X