Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

采集包含ANSI颜色显示的Java日志时,CPU占用异常高 #355

Open
gtress opened this issue Sep 6, 2022 · 0 comments
Open

采集包含ANSI颜色显示的Java日志时,CPU占用异常高 #355

gtress opened this issue Sep 6, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gtress
Copy link

gtress commented Sep 6, 2022

area source

What version of Loggie?

1.2.0

Expected Behavior

Actual Behavior

CPU占用异常高

Steps to Reproduce the Problem

当日志文件中出现 ^字符时 readbuffer不起作用,导致Linux内核上下文切换频繁

样例日志文件如下:
^[[0;39m^[[31m2022-09-05 23:59:03^[[0;39m ^[[32m[XNIO-2 task-224]^[[0;39m ^[[39mDEBUG^[[0;39m ^[[1;35mc.y.e.m.s.U.selectTie^[[0;39m - ^[[36m==> Preparing: select COUNT(1) from t_tiezi tt where tt.user_id = 7201 and visble = 0$
^[[0;39m^[[31m2022-09-05 23:59:03^[[0;39m ^[[32m[XNIO-2 task-224]^[[0;39m ^[[39mDEBUG^[[0;39m ^[[1;35mc.y.e.m.s.U.selectTie^[[0;39m - ^[[36m==> Parameters: $
^[[0;39m^[[31m2022-09-05 23:59:03^[[0;39m ^[[32m[XNIO-2 task-214]^[[0;39m ^[[39mDEBUG^[[0;39m ^[[1;35mc.y.e.m.s.U.selectById^[[0;39m - ^[[36m<== Total: 1$
^[[0;39m^[[31m2022-09-05 23:59:03^[[0;39m ^[[32m[XNIO-2 task-224]^[[0;39m ^[[39mDEBUG^[[0;39m ^[[1;35mc.y.e.m.s.U.selectTie^[[0;39m - ^[[36m<== Total: 1$

@gtress gtress added the bug Something isn't working label Sep 6, 2022
@ethfoo ethfoo self-assigned this Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants