aspose file tools*
The moose likes Java in General and the fly likes java.lang.OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.lang.OutOfMemoryError" Watch "java.lang.OutOfMemoryError" New topic
Author

java.lang.OutOfMemoryError

Sana Ali
Greenhorn

Joined: Oct 08, 2004
Posts: 14
Hi I am getting this error from a recently fully functional file.

Could it be due to my code?

Or is it a server side error?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

The JVM is out of memory. Please increase the heap size.


Groovy
Sana Ali
Greenhorn

Joined: Oct 08, 2004
Posts: 14
Thanks Pardeep...

i figured out the problem...

actually 1 of my integers was set to 999999 and then it was converted to string...

thats why this error was occuring.

Thanks again.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by Sana Ali:
Thanks Pardeep...

i figured out the problem...

actually 1 of my integers was set to 999999 and then it was converted to string...

thats why this error was occuring.

Thanks again.



What is your error in convert int to String?


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
Hi
How do you change the heap size?
Thanks,
Murat
Krishnan Loganathan
Greenhorn

Joined: Apr 24, 2004
Posts: 23
Hi,
u can set the initial and maximum memory heap size by using the following command.


java -Xms<memory size> -Xmx<memory size>

-Xms - specifies the initial heap size
-Xmx - specifies the maximum heap size


eg:-

java -Xms128 -Xmx512 ...


Regards,
Loga
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.OutOfMemoryError