Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
java.lang.OutOfMemoryError with java vector
08-03-2007, 06:49 PM
Post: #1
java.lang.OutOfMemoryError with java vector
I am using Java Vector. when I give big file to input, there is an exception occurred "java.lang.OutOfMemoryError" . How can solve this problem
Find all posts by this user
Quote this message in a reply
08-03-2007, 06:52 PM
Post: #2
RE: java.lang.OutOfMemoryError with java vector
http://forum.javaorigin.com/showthread.php?tid=2

OurJava Program is running under theJVM, jvm is heart of the java,jvm is control the whole java program. jvm is allocating the memory space for every java instance . the default memory size is 64 mb . if any java instance exceed this size then Java.OutOfMemoryException will occurs .But we can change the default jvm size in runtime .

if you want allocate 250 mb then

Syntax java -Xmx250m ClassFileName

ex : java -Xmx500m -jar soundtracker.jar
java -Xmx200m HelloWorld
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: