Coder Social home page Coder Social logo

Flume-问题集锦 about myexp HOT 3 OPEN

neilchenxie avatar neilchenxie commented on September 13, 2024
Flume-问题集锦

from myexp.

Comments (3)

neilChenXie avatar neilChenXie commented on September 13, 2024

Input too long

source deserializer max length

from myexp.

neilChenXie avatar neilChenXie commented on September 13, 2024

JVM Related

Tools

  • jconsole
  • free for pc

Jconsole

JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=60001"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"

http://www.linuxidc.com/Linux/2015-02/113420.htm

Flume 调优

Problem
java.lang.OutOfMemoryError: Java heap space
Solve
JAVA_OPTS="-Xms8192m -Xmx8192m -Xss256k -Xmn2g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit"

http://my.oschina.net/leejun2005/blog/288136

EXP

Based on timestamp official interceptor, 800M memory for an interceptor

// fast with Charset.UTF-8
String ns = new String(event.getBody());

JVM 参数

Xms 最小内存
Xmx 最大内存
Xmn 年轻代大小

http://unixboy.iteye.com/blog/174173/

from myexp.

neilChenXie avatar neilChenXie commented on September 13, 2024

Very Slow

Cause

  1. String new need coding infomation. String body= new String(event.getBody());
  2. com.alibaba.fastjson use too much memory

Solve

  1. String body= new String(event.getBody(), Charsets.UTF_8);
  2. change to jackson or Gson

Ref

from myexp.

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.