Maximum memory usage for JVM

+1 vote

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

Nov 14, 2018 in Java by v.liyyah
• 1,300 points
1,420 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 14, 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
• 59,230 points
2,305 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,830 points
2,677 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,910 points
3,453 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
• 58,090 points
2,661 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, 2020 in Java by Niroj
• 82,880 points
1,077 views
0 votes
1 answer

Increasing the JVM memory using command line

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

answered Sep 25, 2018 in Java by geek.erkami
• 2,680 points
460 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 31, 2018 in Java by Parth
• 4,630 points
2,096 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,450 points
4,278 views
+10 votes
13 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
397,192 views
0 votes
1 answer

Remotely debugging JVM using Java command line

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

answered Jun 19, 2018 in Java by 93.lynn
• 1,600 points
993 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP