I need to minimize the JVM MaxHeapSize. My program keeps freezing on executing. I am using Centos 7. My JVM MaxHeapSize=2G When applying the following command:
java -Xmx1024m
I get this error:
 Usage: java [-options] class [args...]
            (to execute a class)    or  java [-options] -jar jarfile [args...]
            (to execute a jar file) where options include:
     -d32          use a 32-bit data model if available
     -d64          use a 64-bit data model if available
     -server       to select the "server" VM
                   The default VM is server,
                   because you are running on a server-class machine.
How to change jvm to a client, and how to avoid this error. With many thanks
 
    