java heap space flex_Flex与java交互,BlazeDS出现内存溢出

我java端查到数据后,并且把所有的图片加载成流的形式,返回到Flex端,报出了以下错误,实在不懂怎么着手解决;[BlazeDS]Javaheapspacejava.lang.OutOfMemoryError:Javaheapspaceatja...

我java端查到数据后,并且把所有的图片加载成流的形式,返回到Flex端,报出了以下错误,实在不懂怎么着手解决;

[BlazeDS]Java heap space

java.lang.OutOfMemoryError: Java heap space

at java.util.Arrays.copyOf(Unknown Source)

at java.io.ByteArrayOutputStream.grow(Unknown Source)

at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)

at java.io.ByteArrayOutputStream.write(Unknown Source)

at java.io.DataOutputStream.write(Unknown Source)

at flex.messaging.io.amf.Amf3Output.writeAMFByteArray(Amf3Output.java:786)

at flex.messaging.io.amf.Amf3Output.writePrimitiveArray(Amf3Output.java:659)

at flex.messaging.io.amf.Amf3Output.writeAMFArray(Amf3Output.java:460)

at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:217)

at flex.messaging.io.amf.Amf3Output.writeObjectProperty(Amf3Output.java:283)

at flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:629)

at flex.messaging.io.amf.Amf3Output.writeCustomObject(Amf3Output.java:559)

at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:231)

at flex.messaging.io.amf.Amf3Output.writeObjectArray(Amf3Output.java:881)

at flex.messaging.io.amf.Amf3Output.writeAMFArray(Amf3Output.java:472)

at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:217)

at flex.messaging.io.ArrayCollection.writeExternal(ArrayCollection.java:99)

at flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:621)

at flex.messaging.io.amf.Amf3Output.writeArrayCollection(Amf3Output.java:503)

at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:213)

at flex.messaging.messages.AbstractMessage.writeExternalBody(AbstractMessage.java:727)

at flex.messaging.messages.AbstractMessage.writeExternal(AbstractMessage.java:455)

at flex.messaging.messages.AsyncMessage.writeExternal(AsyncMessage.java:143)

at flex.messaging.messages.AcknowledgeMessage.writeExternal(AcknowledgeMessage.java:97)

at flex.messaging.messages.AcknowledgeMessageExt.writeExternal(AcknowledgeMessageExt.java:57)

at flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:621)

at flex.messaging.io.amf.Amf3Output.writeCustomObject(Amf3Output.java:559)

at flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:120)

at flex.messaging.io.amf.Amf0Output.writeObject(Amf0Output.java:229)

at flex.messaging.io.amf.AmfMessageSerializer.writeObject(AmfMessageSerializer.java:200)

at flex.messaging.io.amf.AmfMessageSerializer.writeBody(AmfMessageSerializer.java:189)

at flex.messaging.io.amf.AmfMessageSerializer.writeMessage(AmfMessageSerializer.java:145)

展开

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值