Unable to allocate KB card tables for parallel garbage collection for the requested KB heap. Error: Could not create the Java Virtual Machine


Contents of page :
  • 2) Now, we will pass VM parameters to java program to produce - Unable to allocate KB card tables for parallel garbage collection for the requested KB heap. Error: Could not create the Java Virtual Machine
  • 3) Solution of problem - Unable to allocate KB card tables for parallel garbage collection for the requested KB heap. Error: Could not create the Java Virtual Machine>



2) Now, we will pass VM parameters to java program to produce - Unable to allocate KB card tables for parallel garbage collection for the requested KB heap. Error: Could not create the Java Virtual Machine>

Pass VM/JVM parameters -Xmx

E:\>java -Xmx604g MyJavaProgram
Error occurred during initialization of VM
Unable to allocate 1236992KB card tables for parallel garbage collection for the requested 633339904KB heap.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

E:\>



Xmx is the maximum heap size that JVM can use.

Xmx is too high.

Currently Xmx (maximum heap size) is set to 604 gigabyte.


3) Solution of problem - Unable to allocate KB card tables for parallel garbage collection for the requested KB heap. Error: Could not create the Java Virtual Machine>

Decrease Xmx size.

My system can allow to set the maximum heap size of JVM to 602 gigabyte.

This value may depend on your system configuration, so adjust accordingly.

E:\>java -Xmx602g MyJavaProgram
This is my Java Program

E:\>





Learn how to pass vmargs (VM parameters) to java program in eclipse?





SUMMARY>
So in this core java tutorial we learned how to solve Unable to allocate KB card tables for parallel garbage collection for the requested KB heap. Error: Could not create the Java Virtual Machine.


Having any doubt? or you liked the tutorial! Please comment in below section.
Please express your love by liking JavaMadeSoEasy.com (JMSE) on facebook, following on google+ or Twitter.


RELATED LINKS>

What is eclipse.ini file? How to pass vmargs to java program in eclipse? Changing the eclipse setting, What are best eclipse setting?


Concurrent Mark Sweep (CMS) collector / concurrent low pause garbage collector in java

G1 garbage collector / Garbage first collector in java


Difference between Serial GC vs Throughput GC (Garbage collector) in java



No comments:

Post a Comment