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,320 points
104 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,600 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
• 48,810 points
394 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
772 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
203 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,530 points
971 views
0 votes
1 answer

I am learning looping statements. Can you tell me how 'for-each' works in Java?

While programming we often write code that ...READ MORE

answered Apr 17, 2018 in Java by Rishabh
• 3,560 points
95 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,660 points
55 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,640 points
1,078 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
1,986 views
+8 votes
12 answers

Default parameters of XMS and XMX in JVM

-xmx and -xms are the parameters used ...READ MORE

answered Jun 1, 2018 in Java by v.liyyah
• 1,320 points
166,944 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,600 points
280 views