Im trying to run my java application, but after some time it automatically stops and throws OutOfMemoryException: Java heap space. Now when i try to run it using (say) (-Xmx allocates the maximum heap memory)
java -Xmx2000m [AppName]
then it says
Error occured during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine
Anyway that I could run my app?
mayank.15
0
Newbie Poster
Recommended Answers
Jump to Postfix the bug in your application that causes it to require inordinate amounts of memory.
I can guarantee you that whatever amount you feed it with you'll run out eventually unless you fix that bug.
All 4 Replies
mayank.15
0
Newbie Poster
jwenting
1,889
duckman
Team Colleague
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
mayank.15
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.