Maximum memory usage for JVM

+1 vote

How do I maximize the total memory usage for my JVM during any process?

Nov 13, 2018 in Java by v.liyyah
• 1,300 points
583 views

1 answer to this question.

0 votes

I guess, you can try using the below arguments:

  • -Xms<memory> //for setting the minimum limit
  • -Xmx<memory> //for setting the maximum limit

You can make use of M or G after the numbers to specify the Megs and Gigs of bytes respectively.

answered Nov 13, 2018 by 93.lynn
• 1,610 points

Related Questions In Java

0 votes
2 answers

Setting Proxy for JVM usage

JVM uses the proxy to make HTTP ...READ MORE

answered Aug 26, 2019 in Java by Sirajul
• 58,210 points
802 views
0 votes
1 answer

What is the maximum Java heap size of a 32-bit JVM on a 64-bit OS?

32-bit JVMs which expect to have a ...READ MORE

answered Nov 15, 2018 in Java by Frankie
• 9,810 points
1,273 views
+1 vote
1 answer

How can I find memory usage of my application in Android?

You can get memory info programmatically and ...READ MORE

answered Jan 10, 2019 in Java by Sushmita
• 6,890 points
1,079 views
+1 vote
1 answer

What are the types of memory in JVM?

The different types of Memory in JVM ...READ MORE

answered Mar 7, 2019 in Java by Priyaj
• 57,700 points
1,235 views
0 votes
1 answer

How can we activate JMX on my JVM for access with jconsole?

Hello @kartik, Run your java application with the ...READ MORE

answered Apr 9 in Java by Niroj
• 79,920 points
178 views
0 votes
1 answer

Increasing the JVM memory using command line

You can adjust your JVM memory needs by ...READ MORE

answered Sep 24, 2018 in Java by geek.erkami
• 2,680 points
123 views
0 votes
1 answer

Is it possible to create a memory leak with Java

Here's a good way to create a memory ...READ MORE

answered May 30, 2018 in Java by Parth
• 4,630 points
1,323 views
0 votes
1 answer

java.lang.OutOfMemoryError: GC overhead limit exceeded Error

This simply means that for some reason ...READ MORE

answered May 31, 2018 in Java by misc.edu04
• 1,430 points
2,963 views
+12 votes
12 answers

Default parameters of XMS and XMX in JVM

Run this code to see all the ...READ MORE

answered Nov 13, 2018 in Java by anonymous
266,934 views
0 votes
1 answer

Remotely debugging JVM using Java command line

In order to use JAVA_OPT you need ...READ MORE

answered Jun 18, 2018 in Java by 93.lynn
• 1,610 points
431 views