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
35 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,550 points

Related Questions In Java

0 votes
1 answer

Setting Proxy for JVM usage

To set an HTTP/HTTPS and/or SOCKS proxy ...READ MORE

answered Jun 26, 2018 in Java by Rishabh
• 3,540 points
171 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
398 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 in Java by Sushmita
• 6,840 points
47 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 in Java by Priyaj
• 56,160 points
118 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,540 points
40 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,320 points
28 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 parth295
• 4,600 points
99 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,380 points
926 views
+6 votes
11 answers

Default parameters of XMS and XMX in JVM

You use these Java command-line parameters to ...READ MORE

answered Nov 13, 2018 in Java by Murali
67,210 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,550 points
142 views