use the arguments -Xms<memory>
-Xmx<memory>
. Use M
or G
after the numbers for indicating Megs and Gigs of bytes respectively. -Xms
indicates the minimum and -Xmx
the maximum.
More Related Contents:
- General strategy to resolve Java memory leak?
- Circular References in Java
- How ‘random’ is allocation of memory when I say “new Integer” in Java?
- How can I create a memory leak in Java?
- How do I discover memory usage of my application in Android?
- Recommendations for a heap analysis tool for Java? [closed]
- How to find a Java Memory Leak
- Calculate size of Object in Java [duplicate]
- Does variable = null set it for garbage collection
- What is the actual memory place for static variables?
- Relation between memory host and memory arguments xms and xmx from Java
- Java still uses system memory after deallocation of objects and garbage collection
- How to find memory leaks using visualvm
- Java BigDecimal memory usage?
- substring method in String class causes memory leak [duplicate]
- Do unclosed streams cause memory leaks in java?
- Java Memory explained (SUN JVM)
- What is the memory consumption of an object in Java?
- Does GC release back memory to OS?
- Virtual Memory Usage from Java under Linux, too much memory used
- Memory leak when redeploying application in Tomcat
- is memory leak? why java.lang.ref.Finalizer eat so much memory
- Difference between “on-heap” and “off-heap”
- Recycle ImageView’s Bitmap
- Can I set Java max heap size for running from a jar file?
- Java Refuses to Start – Could not reserve enough space for object heap
- DeadObjectException on android app
- Is there a memory-efficient replacement of java.lang.String?
- Can SHA-1 algorithm be computed on a stream? With low memory footprint?
- Is Java HashMap.clear() and remove() memory effective?