[ https://issues.apache.org/jira/browse/CASSANDRA-5989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13918131#comment-13918131 ]
Jonathan Ellis commented on CASSANDRA-5989: ------------------------------------------- The general "I'm requesting really large resultsets" problem is fixed by CASSANDRA-4415 in any case. (Corollary: there is no way to fix this server side for Thrift, it's the client's job to exercise discretion.) > java.lang.OutOfMemoryError: Requested array size exceeds VM limit > ----------------------------------------------------------------- > > Key: CASSANDRA-5989 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5989 > Project: Cassandra > Issue Type: Bug > Environment: Cassandra 1.2.8 > Oracle Java(TM) SE Runtime Environment (build 1.7.0_25-b15) > RHEL6 > Reporter: Karl Mueller > > This occurred in one of our nodes today. I don't have any helpful information > on what is going on beforehand yet - logs don't have anything I could see > that's tied for sure to it. > A few things happened in the logs beforehand. A little bit of standard GC, a > bunch of status-logger entries 10 minutes before the crash, and a few nodes > going up and down on the gossip. > ERROR [Thrift:7495] 2013-09-03 11:01:12,486 CassandraDaemon.java (line 192) > Exception in thread Thread[Thrift:7495,5,main] > java.lang.OutOfMemoryError: Requested array size exceeds VM limit > at java.util.Arrays.copyOf(Arrays.java:2271) > at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) > at > java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) > at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) > at > org.apache.thrift.transport.TFramedTransport.write(TFramedTransport.java:146) > at > org.apache.thrift.protocol.TBinaryProtocol.writeI32(TBinaryProtocol.java:163) > at > org.apache.cassandra.thrift.TBinaryProtocol.writeBinary(TBinaryProtocol.java:69) > at org.apache.cassandra.thrift.Column.write(Column.java:579) > at org.apache.cassandra.thrift.CqlRow.write(CqlRow.java:439) > at org.apache.cassandra.thrift.CqlResult.write(CqlResult.java:602) > at > org.apache.cassandra.thrift.Cassandra$execute_cql3_query_result.write(Cassandra.java:37895) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:34) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34) > at > org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:199) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:724) -- This message was sent by Atlassian JIRA (v6.2#6252)