• fastjson 调用JSONObject.toJSON(),如果是解析泛型对象会报OutOfMemoryError错误


    fastjson 调用JSONObject.toJSON(),如果是解析泛型对象会报OutOfMemoryError错误

    2020-01-09 17:03:49.831 [http-nio-8062-exec-5] ERROR [org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:181)] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.OutOfMemoryError: GC overhead limit exceeded] with root cause
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    at java.lang.reflect.Field.copy(Field.java:150) ~[?:1.8.0_121]
    at java.lang.reflect.ReflectAccess.copyField(ReflectAccess.java:144) ~[?:1.8.0_121]
    at sun.reflect.ReflectionFactory.copyField(ReflectionFactory.java:323) ~[?:1.8.0_121]
    at java.lang.Class.copyFields(Class.java:3115) ~[?:1.8.0_121]
    at java.lang.Class.getDeclaredFields(Class.java:1916) ~[?:1.8.0_121]
    at com.alibaba.fastjson.parser.ParserConfig.getField0(ParserConfig.java:562) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.parser.ParserConfig.getField(ParserConfig.java:551) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.util.TypeUtils.computeGetters(TypeUtils.java:988) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.util.TypeUtils.computeGetters(TypeUtils.java:900) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:684) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:672) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:690) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:690) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:690) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:672) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:690) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:690) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:690) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:672) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:690) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:618) ~[fastjson-1.1.41.jar!/:?]
    at com.alibaba.fastjson.JSON.toJSON(JSON.java:690) ~[fastjson-1.1.41.jar!/:?]
    2020-01-09 17:09:23.075 [DiscoveryClient-2] ERROR [com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:67)] task supervisor timed out
    java.util.concurrent.TimeoutException: null
    at java.util.concurrent.FutureTask.get(FutureTask.java:205) ~[?:1.8.0_121]
    at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:63) [eureka-client-1.6.2.jar!/:1.6.2]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_121]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_121]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]

  • 相关阅读:
    如何使用pgpool failover_stream.sh自己控制选择指定的master节点
    使用pgpool管理数据库集群故障的问题
    pgpool中定义的数据库节点及pgpool支持的复制模式
    pgpool中的配置参数的定义
    pgpool-II在故障切换过程中是如何选举新主节点的
    nginx的proxy_pass路径转发规则浅析(末尾/问题)
    elasticsearch 安装配置详解
    查看ElasticSearch服务状态和结果的URL
    Elastic数据迁移方法及注意事项
    Kafka安装及部署
  • 原文地址:https://www.cnblogs.com/junge8618/p/12172724.html
Copyright © 2020-2023  润新知