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 24, 2018 in Java by 93.lynn
• 1,600 points
55 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 24, 2018 by geek.erkami
• 2,660 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 18, 2018 in Java by 93.lynn
• 1,600 points
273 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,080 points
88 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
932 views
0 votes
2 answers

How do I get the current date and time using Java?

If you require a time stamp in ...READ MORE

answered Aug 23, 2019 in Java by Sirajul
• 48,520 points
155 views
+1 vote
1 answer

Maximum memory usage for JVM

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

answered Nov 13, 2018 in Java by 93.lynn
• 1,600 points
97 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,072 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,953 views
+8 votes
11 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
162,715 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,660 points
137 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 8, 2018 in Java by geek.erkami
• 2,660 points
534 views