File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Exception in thread "http-bio-8080-exec-3"" Watch "Exception in thread "http-bio-8080-exec-3"" New topic

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

Sandeep Bhoyar

Joined: May 17, 2010
Posts: 17

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(
at java.lang.AbstractStringBuilder.expandCapacity(
at java.lang.AbstractStringBuilder.append(
at java.lang.StringBuilder.append(

Rob Spoor

Joined: Oct 27, 2005
Posts: 20184

Sandeep Bhoyar wrote:Please let me know its urgent

Please EaseUp. There is no such thing as "urgent" around here.

How To Ask Questions How To Answer Questions
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13025
Given the message showing the source:
at java.lang.StringBuilder.append(

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.....



Paul Clapham

Joined: Oct 14, 2005
Posts: 19856

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

Joined: May 17, 2010
Posts: 17

@ 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 ?
Consider Paul's rocket mass heater.
subject: Exception in thread "http-bio-8080-exec-3"
jQuery in Action, 3rd edition