崩溃前的栈
webapp-startStop-2
at java.lang.OutOfMemoryError.<init>()V (OutOfMemoryError.java:48)
at java.util.Arrays.copyOf([CI)[C (Arrays.java:3332)
at java.lang.AbstractStringBuilder.expandCapacity(I)V (AbstractStringBuilder.java:137)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(I)V (AbstractStringBuilder.java:121)
at java.lang.AbstractStringBuilder.append(C)Ljava/lang/AbstractStringBuilder; (AbstractStringBuilder.java:622)
at java.lang.StringBuilder.append(C)Ljava/lang/StringBuilder; (StringBuilder.java:202)
at org.nutz.lang.stream.StringWriter.write([CII)V (StringWriter.java:23)
at java.io.Writer.write(Ljava/lang/String;II)V (Writer.java:192)
at java.io.Writer.write(Ljava/lang/String;)V (Writer.java:157)
at org.nutz.json.impl.JsonRenderImpl.doIntent()V (JsonRenderImpl.java:276)
at org.nutz.json.impl.JsonRenderImpl.appendPairBegin()V (JsonRenderImpl.java:115)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:126)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.impl.JsonRenderImpl.map2Json(Ljava/util/Map;)V (JsonRenderImpl.java:175)
at org.nutz.json.handler.JsonMapHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonMapHandler.java:28)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.handler.JsonIterableHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonIterableHandler.java:34)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.handler.JsonArrayHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonArrayHandler.java:42)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.impl.JsonRenderImpl.map2Json(Ljava/util/Map;)V (JsonRenderImpl.java:175)
at org.nutz.json.handler.JsonMapHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonMapHandler.java:28)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.impl.JsonRenderImpl.map2Json(Ljava/util/Map;)V (JsonRenderImpl.java:175)
at org.nutz.json.handler.JsonMapHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonMapHandler.java:28)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.handler.JsonArrayHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonArrayHandler.java:42)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.handler.JsonPojoHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonPojoHandler.java:125)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.impl.JsonRenderImpl.appendPair(ZLjava/lang/String;Ljava/lang/Object;)V (JsonRenderImpl.java:129)
at org.nutz.json.impl.JsonRenderImpl.writeItem(Ljava/util/List;)V (JsonRenderImpl.java:183)
at org.nutz.json.impl.JsonRenderImpl.map2Json(Ljava/util/Map;)V (JsonRenderImpl.java:175)
at org.nutz.json.handler.JsonMapHandler.toJson(Lorg/nutz/lang/Mirror;Ljava/lang/Object;Lorg/nutz/json/JsonRender;Lorg/nutz/json/JsonFormat;)V (JsonMapHandler.java:28)
at org.nutz.json.impl.JsonRenderImpl.render(Ljava/lang/Object;)V (JsonRenderImpl.java:82)
at org.nutz.json.Json.toJson(Ljava/io/Writer;Ljava/lang/Object;Lorg/nutz/json/JsonFormat;)V (Json.java:254)
at org.nutz.json.Json.toJson(Ljava/lang/Object;Lorg/nutz/json/JsonFormat;)Ljava/lang/String; (Json.java:216)
at org.nutz.lang.util.SimpleContext.toString()Ljava/lang/String; (SimpleContext.java:64)
at org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks(Ljava/lang/Object;Ljava/lang/reflect/Field;)V (WebappClassLoaderBase.java:2769)
at org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalsForLeaks()V (WebappClassLoaderBase.java:2702)
at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences()V (WebappClassLoaderBase.java:2207)
at org.apache.catalina.loader.WebappClassLoaderBase.stop()V (WebappClassLoaderBase.java:2101)
at org.apache.catalina.loader.WebappLoader.stopInternal()V (WebappLoader.java:663)
at org.apache.catalina.util.LifecycleBase.stop()V (LifecycleBase.java:224)
at org.apache.catalina.core.StandardContext.stopInternal()V (StandardContext.java:5853)
at org.apache.catalina.util.LifecycleBase.stop()V (LifecycleBase.java:224)
at org.apache.catalina.core.ContainerBase$StopChild.call()Ljava/lang/Void; (ContainerBase.java:1587)
at org.apache.catalina.core.ContainerBase$StopChild.call()Ljava/lang/Object; (ContainerBase.java:1576)
at java.util.concurrent.FutureTask.run()V (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V (ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run()V (ThreadPoolExecutor.java:617)
at java.lang.Thread.run()V (Thread.java:745)
超大对象也怀疑就是SimpleContext的子类
![](https://wx1.sinaimg.cn/mw1024/62894229gy1fzm41ju17gj21yp0u0do0.jpg)
问题描述
tomcat正常运行好好的,突然不知道被什么触发了,然后就OutOfMemoryError就tomcat就死掉了。
新上线的功能代码反复review没有发现可疑点,开发和运维多方努力保存现场的一些信息。
我们这边也在努力复现这个bug,但也希望社区能提供些线索哈。