When you are using JVM in 32-bit mode, the maximum heap size that can be allocated is 1280 MB. So, if you want to go beyond that, you need to invoke JVM in 64-mode.java
You can use following:web
$ java -d64 -Xms512m -Xmx4g HelloWorld
where,oracle
You can tune in -Xms and -Xmx as per you requirements (YMMV)app
參考weblogic jvm設置官方博文:ui
https://docs.oracle.com/cd/E15523_01/web.1111/e13814/jvm_tuning.htm#PERFM156code
JVM Tuning: Heapsize, Stacksize and Garbage Collection Fundamentalhtm
http://crunchify.com/jvm-tuning-heapsize-stacksize-garbage-collection-fundamental/blog