• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Exception in thread "http-bio-8080-exec-3"

 
Greenhorn
Posts: 17
Hibernate Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting out of memory error while running the web appl.

Even though I set the java_opt= -Xms512m -Xmx1024m but still I am getting error . can any one tell me why this is happening

Exception in thread "http-bio-8080-exec-3" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515)
at java.lang.StringBuilder.append(StringBuilder.java:189)


 
Sheriff
Posts: 21919
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sandeep Bhoyar wrote:Please let me know its urgent


Please EaseUp. There is no such thing as "urgent" around here.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given the message showing the source:

at java.lang.StringBuilder.append(StringBuilder.java:189)



I would say you are trying to add more text to a StringBuilder than available memory allows.

Probably there is a conceptual / architecture error in your code which led you to this but since you don't mention what your code is supposed to do.....

hint

Bill

 
Marshal
Posts: 25430
65
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see anything Tomcat-related in this post. It's more of a general Java question. So let's move it there...
 
Sandeep Bhoyar
Greenhorn
Posts: 17
Hibernate Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ Paul : Can you please share where Generally we set Heap Memory or where we get Heap memory Error ?

@ William : Then Code is workin fine on my QA server this problem I am facing in my local System. William I can't disclose my code but you are right the code that I collect in string builder is bigger can you please share instead of stringBuilder what I can use ?
 
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
Try Free Java/.NET Libraries for Word Excel PowerPoint and PDF
htttp://www.e-iceblue.com/free-apis.html
    Bookmark Topic Watch Topic
  • New Topic