File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.OutOfMemoryError

 
Sana Ali
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JVM is out of memory. Please increase the heap size.
 
Sana Ali
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Murat Balkan
Ranch Hand
Posts: 127
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
How do you change the heap size?
Thanks,
Murat
 
Krishnan Loganathan
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic