Code Monkey home page Code Monkey logo

Comments (1)

waterWang avatar waterWang commented on June 9, 2024

问题原因:
1.datax在运行时将异常数据打印到 log中导致log很大
2.netty在响应时候会读取log文件,导致Response entity too large

解决方法:
第一种:.构建datax.json 时候添加 errorLimit阈值,如果大于阈值任务自动失败
具体操作 json中添加

"errorLimit": {
        "record": 10,  //脏数据行数
        "percentage": 0.05 // 脏数据百分比
      }

第二种:将log日志格式修改,减小log体积

原来  2020-03-13 18:45:51 [com.wugui.datatx.core.thread.JobThread#run]-[130]-[Thread-18] <br>----------- datax-web job execute start -----------<br>----------- Param:
现在  2020-03-13 18:56:41 [JobThread.run-130] <br>----------- datax-web job execute start -----------<br>----------- Param:

具体操作:修改JobLogger中logDetail方法

第三种:增大netty response阈值(原来是5x1024x1024=5M),现在修改为20M
具体操作 修改NettyHttpConnectClient和NettyHttpServer中HttpObjectAggregator值

from datax-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.