Increasing the JVM memory using command line

0 votes

How do I calculate the size of JVM? Can I increase the JVM memory depending on my application needs? And how can I know the size of JVM?

Sep 25, 2018 in Java by 93.lynn
• 1,600 points
658 views

1 answer to this question.

0 votes

You can adjust your JVM memory needs by using:

-Xms<size>

 This command specifies the initial Java heap size and

-Xmx<size>

This command specifies the maximum Java heap size.

answered Sep 25, 2018 by geek.erkami
• 2,680 points

Related Questions In Java

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
1,187 views
0 votes
1 answer

How to include jars in classpath using command line?

I have tried the following and it's ...READ MORE

answered Jan 3, 2019 in Java by Daisy
• 8,140 points
8,882 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,020 points
3,029 views
0 votes
1 answer

How to run a Java program from the command line on Windows?

Hello @kartik, In case your Java class is ...READ MORE

answered Apr 9, 2020 in Java by Niroj
• 82,840 points
988 views
+1 vote
1 answer

Maximum memory usage for JVM

I guess, you can try using the ...READ MORE

answered Nov 14, 2018 in Java by 93.lynn
• 1,600 points
1,656 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,640 points
2,268 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,491 views
+11 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
402,644 views
0 votes
1 answer

What are the Foreign key constraints in Android using SQLite

You can use, Foreign key constraints with ...READ MORE

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

Why the main() method in Java is always static?

As you might know, static here is ...READ MORE

answered May 9, 2018 in Java by geek.erkami
• 2,680 points
2,099 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