Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/392.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring云网关内存泄漏_Java_Spring_Spring Cloud_Spring Cloud Gateway_Reactor Netty - Fatal编程技术网

Java Spring云网关内存泄漏

Java Spring云网关内存泄漏,java,spring,spring-cloud,spring-cloud-gateway,reactor-netty,Java,Spring,Spring Cloud,Spring Cloud Gateway,Reactor Netty,spring cloud gateway在生产中发现内存泄漏,导致系统停机 内存使用量不断增加,直到内存耗尽,导致以下异常: 2019-05-21 09:18:24.793 WARN The connection observed an error io.netty.handler.codec.DecoderException: javax.net.ssl.SSLException: Tag mismatch! at io.netty.handler.codec.ByteToMessa

spring cloud gateway在生产中发现内存泄漏,导致系统停机

内存使用量不断增加,直到内存耗尽,导致以下异常:

2019-05-21 09:18:24.793 WARN The connection observed an error

io.netty.handler.codec.DecoderException: javax.net.ssl.SSLException: Tag mismatch!
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:472)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1408)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:677)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:612)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:529)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:491)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
    at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Tag mismatch!
    at sun.security.ssl.Alerts.getSSLException(Unknown Source)
    at sun.security.ssl.SSLEngineImpl.fatal(Unknown Source)
    at sun.security.ssl.SSLEngineImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLEngineImpl.readNetRecord(Unknown Source)
    at sun.security.ssl.SSLEngineImpl.unwrap(Unknown Source)
    at javax.net.ssl.SSLEngine.unwrap(Unknown Source)
    at io.netty.handler.ssl.SslHandler$SslEngineType$3.unwrap(SslHandler.java:295)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1301)
    at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1203)
    at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1247)
    at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502)
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441)
    ... 15 common frames omitted
Caused by: javax.crypto.AEADBadTagException: Tag mismatch!
    at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:578)
    at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1049)
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:985)
    at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:491)
    at javax.crypto.CipherSpi.bufferCrypt(CipherSpi.java:830)
    at javax.crypto.CipherSpi.engineDoFinal(CipherSpi.java:730)
    at javax.crypto.Cipher.doFinal(Cipher.java:2459)
    at sun.security.ssl.CipherBox.decrypt(Unknown Source)
    at sun.security.ssl.EngineInputRecord.decrypt(Unknown Source)
    ... 25 common frames omitted

2019-05-21 09:18:24.792 WARN An exception 'io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 2046820359, max: 2058354688)' [enable DEBUG level for full stacktrace] was thrown by a user handler's exceptionCaught() method while handling the following exception:

io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 2046820359, max: 2058354688)
    at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:655)
    at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:610)
    at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:769)
    at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:745)
    at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:244)
    at io.netty.buffer.PoolArena.allocate(PoolArena.java:226)
    at io.netty.buffer.PoolArena.reallocate(PoolArena.java:397)
    at io.netty.buffer.PooledByteBuf.capacity(PooledByteBuf.java:120)
    at io.netty.buffer.AbstractByteBuf.ensureWritable0(AbstractByteBuf.java:299)
    at io.netty.buffer.AbstractByteBuf.ensureWritable(AbstractByteBuf.java:278)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1103)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1096)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1087)
    at io.netty.handler.codec.ByteToMessageDecoder$1.cumulate(ByteToMessageDecoder.java:93)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1408)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:677)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:612)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:529)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:491)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
    at java.lang.Thread.run(Unknown Source)
spring启动版本:2.1.3.发行版

春季云版本:Greenwich.SR1

反应堆净值:0.8.5.释放

是否有人知道此问题的根本原因或是否有任何修复方法


标记不匹配错误是什么意思?

我投票关闭这个问题,因为这应该是给Spring Cloud团队的错误报告。@m.Deinum我投票不关闭这个问题。虽然我同意这是一个bug报告,但让我问以下问题:到目前为止,您读过多少“bug报告”解决方案?我认为这是一个向社区而不是开发团队询问现有问题的好地方。我建议您尝试可用的最新版本。我投票关闭此问题,因为这应该是向Spring Cloud团队提交的错误报告。@m.Deinum我投票不关闭此问题。虽然我同意这是一个bug报告,但让我问以下问题:到目前为止,您读过多少“bug报告”解决方案?我认为这是一个向社区而不是开发团队询问现有问题的好地方。我建议您尝试可用的最新版本。