Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)

I am using Apache Tomcat and Java wicket framework, but whenever I start the Tomcat it pops out as :

Could not create the Java Virtual Machine

After that, it shows an error as:

Error occurred during initialization of VM.

Could not reserve enough space for object heap.

Can anyone help me with this?

1 Answer

0 votes
by (26.7k points)

You can use the below code, which will rectify this error:

sony@sony-VPCEH25EN:~$ java -version

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 

java version "1.8.0_101"

Java(TM) SE Runtime Environment (build 1.8.0_101-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

I hope this will help.

Want to become a Java expert? join Java Training now!!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...