Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18774 > unrolled thread
| Started by | Magnus Warker <magnux@mailinator.com> |
|---|---|
| First post | 2012-09-14 23:01 +0200 |
| Last post | 2012-09-18 22:25 -0700 |
| Articles | 7 — 6 participants |
Back to article view | Back to comp.lang.java.programmer
Exception - Java heap space Magnus Warker <magnux@mailinator.com> - 2012-09-14 23:01 +0200
Re: Exception - Java heap space Robert Klemme <shortcutter@googlemail.com> - 2012-09-14 23:09 +0200
Re: Exception - Java heap space Lew <lewbloch@gmail.com> - 2012-09-14 14:19 -0700
Re: Exception - Java heap space Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-14 15:06 -0700
Re: Exception - Java heap space Roedy Green <see_website@mindprod.com.invalid> - 2012-09-16 08:23 -0700
Re: Exception - Java heap space Lew <lewbloch@gmail.com> - 2012-09-16 16:58 -0700
Re: Exception - Java heap space Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2012-09-18 22:25 -0700
| From | Magnus Warker <magnux@mailinator.com> |
|---|---|
| Date | 2012-09-14 23:01 +0200 |
| Subject | Exception - Java heap space |
| Message-ID | <k305t6$n8o$1@news.m-online.net> |
Hi,
below is an exception found in my tomcat log. It's a GWT app.
What is going on there?
Magnus
-----
Sep 14, 2012 10:58:14 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Exception while dispatching incoming RPC call
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2760)
at java.util.Arrays.copyOf(Arrays.java:2734)
at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
at java.util.ArrayList.add(ArrayList.java:351)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.append(ServerSerializationStreamWriter.java:583)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeInt(AbstractSerializationStreamWriter.java:100)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:116)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:539)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:709)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:748)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:621)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
at
com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:44)
at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:39)
at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java:51)
at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java:28)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:740)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:621)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:539)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:474)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:571)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[toc] | [next] | [standalone]
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Date | 2012-09-14 23:09 +0200 |
| Message-ID | <abhknrFfcjaU2@mid.individual.net> |
| In reply to | #18774 |
On 14.09.2012 23:01, Magnus Warker wrote: > Hi, > > below is an exception found in my tomcat log. It's a GWT app. > > What is going on there? > > Magnus > > ----- > Sep 14, 2012 10:58:14 PM org.apache.catalina.core.ApplicationContext log > SEVERE: Exception while dispatching incoming RPC call > java.lang.OutOfMemoryError: Java heap space > ... Well, what do you think does OutOfMemoryError mean? What does the class's JavaDoc say? Beyond that since we have almost zero information and there's nobody with a crystal ball around (AFAIK) we'll have a hard time answering the question more thoroughly. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-09-14 14:19 -0700 |
| Message-ID | <e6e09b6e-0974-48eb-b5e6-db8abf36f8ce@googlegroups.com> |
| In reply to | #18777 |
Robert Klemme wrote: > Magnus Warker wrote: >> below is an exception found in my tomcat log. It's a GWT app. > >> What is going on there? > >> ----- >> Sep 14, 2012 10:58:14 PM org.apache.catalina.core.ApplicationContext log >> SEVERE: Exception while dispatching incoming RPC call >> java.lang.OutOfMemoryError: Java heap space >> ... > > Well, what do you think does OutOfMemoryError mean? What does the Ooh! Ooh! I know! It means the JVM ran out of heap memory for new allocations. > class's JavaDoc say? Beyond that since we have almost zero information > and there's nobody with a crystal ball around (AFAIK) we'll have a hard > time answering the question more thoroughly. One common cause is failure to let go of object references. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2012-09-14 15:06 -0700 |
| Message-ID | <lTN4s.1373$vo4.1204@newsfe05.iad> |
| In reply to | #18778 |
On 9/14/12 2:19 PM, Lew wrote: > Robert Klemme wrote: >> Magnus Warker wrote: >>> below is an exception found in my tomcat log. It's a GWT app. >> >>> What is going on there? >> >>> ----- >>> Sep 14, 2012 10:58:14 PM org.apache.catalina.core.ApplicationContext log >>> SEVERE: Exception while dispatching incoming RPC call >>> java.lang.OutOfMemoryError: Java heap space >>> ... >> >> Well, what do you think does OutOfMemoryError mean? What does the > > Ooh! Ooh! I know! It means the JVM ran out of heap memory for new allocations. > >> class's JavaDoc say? Beyond that since we have almost zero information >> and there's nobody with a crystal ball around (AFAIK) we'll have a hard >> time answering the question more thoroughly. > > One common cause is failure to let go of object references. > Another (which seems as likely in this case) appending too much data to an automatically resizing buffer, such as a StringBuilder, or ArrayList. Given the stack trace, it appears the be an ArrayList. It could be the OP needs to increase the memory allowed. It also could be that too much data is being submitted (looks like a RPC<->gwt bridge, maybe they are sending the whole world).
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-09-16 08:23 -0700 |
| Message-ID | <ofrb58pjpqob6qu3lt3ub618d24p0h6jv7@4ax.com> |
| In reply to | #18774 |
On Fri, 14 Sep 2012 23:01:55 +0200, Magnus Warker <magnux@mailinator.com> wrote, quoted or indirectly quoted someone who said : >OutOfMemoryError I presume you have no problem understanding what "out of memory" means. You want to know WHY this happened. 1. perhaps your problem is too big for the amount of RAM. Change the memory assignments on the java.exe command line. See http://mindprod.com/jgloss/javaexe.html 2. Perhaps you are packratting, holding on to objects you don't really need. See http://mindprod.com/jgloss/packratting.html 3. You need a tool to figure out what is happening, letting you monitor how many objects there are of various types. see http://mindprod.com/jgloss/profiler.html -- Roedy Green Canadian Mind Products http://mindprod.com The iPhone 5 is a low end Rolex.
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-09-16 16:58 -0700 |
| Message-ID | <934afd5a-c848-4598-b503-516260d90f7e@googlegroups.com> |
| In reply to | #18791 |
Roedy Green wrote: > Magnus Warker wrote, quoted or indirectly quoted someone who said : >>OutOfMemoryError > > I presume you have no problem understanding what "out of memory" > means. You want to know WHY this happened. > > 1. perhaps your problem is too big for the amount of RAM. Change the > memory assignments on the java.exe command line. See > http://mindprod.com/jgloss/javaexe.html > > 2. Perhaps you are packratting, holding on to objects you don't really > need. See http://mindprod.com/jgloss/packratting.html > > 3. You need a tool to figure out what is happening, letting you > monitor how many objects there are of various types. see > http://mindprod.com/jgloss/profiler.html Useful standard tools for memory woes: http://docs.oracle.com/javase/7/docs/technotes/tools/index.html#monitor http://docs.oracle.com/javase/7/docs/technotes/tools/share/jstat.html http://docs.oracle.com/javase/7/docs/technotes/tools/share/jhat.html -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Kevin McMurtrie <mcmurtrie@pixelmemory.us> |
|---|---|
| Date | 2012-09-18 22:25 -0700 |
| Message-ID | <5059573d$0$65458$742ec2ed@news.sonic.net> |
| In reply to | #18774 |
It appears that the response was very large and GWT code doesn't support streaming. In article <k305t6$n8o$1@news.m-online.net>, Magnus Warker <magnux@mailinator.com> wrote: > Hi, > > below is an exception found in my tomcat log. It's a GWT app. > > What is going on there? > > Magnus > > ----- > Sep 14, 2012 10:58:14 PM org.apache.catalina.core.ApplicationContext log > SEVERE: Exception while dispatching incoming RPC call > java.lang.OutOfMemoryError: Java heap space > at java.util.Arrays.copyOf(Arrays.java:2760) > at java.util.Arrays.copyOf(Arrays.java:2734) > at java.util.ArrayList.ensureCapacity(ArrayList.java:167) > at java.util.ArrayList.add(ArrayList.java:351) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.append(Ser > verSerializationStreamWriter.java:583) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeInt > (AbstractSerializationStreamWriter.java:100) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObj > ect(AbstractSerializationStreamWriter.java:116) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWrite > r$8.write(ServerSerializationStreamWriter.java:153) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeV > alue(ServerSerializationStreamWriter.java:539) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeC > lass(ServerSerializationStreamWriter.java:709) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeI > mpl(ServerSerializationStreamWriter.java:748) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize( > ServerSerializationStreamWriter.java:621) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObj > ect(AbstractSerializationStreamWriter.java:126) > at > com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializer > Base.serialize(Collection_CustomFieldSerializerBase.java:44) > at > com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer. > serialize(ArrayList_CustomFieldSerializer.java:39) > at > com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer. > serializeInstance(ArrayList_CustomFieldSerializer.java:51) > at > com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer. > serializeInstance(ArrayList_CustomFieldSerializer.java:28) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeI > mpl(ServerSerializationStreamWriter.java:740) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize( > ServerSerializationStreamWriter.java:621) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObj > ect(AbstractSerializationStreamWriter.java:126) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWrite > r$8.write(ServerSerializationStreamWriter.java:153) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeV > alue(ServerSerializationStreamWriter.java:539) > at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616) > at > com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:474) > at > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:571) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceS > ervlet.java:208) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceS > ervlet.java:248) > at > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRem > oteServiceServlet.java:62) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi > lterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai > n.java:206) -- I will not see posts from Google because I must filter them as spam
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web