You are here : Home / Core Java Tutorials / Series of JVM and Garbage Collection (GC) in java - Best explanations ever
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:\>
|
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>