Comments (6)
My erlang program is deployed in a Docker environment, and the lager writes console logs to the console.log file. However, for unknown reasons, it stores the logs in memory messages instead of writing them to the file.
from lager.
When this issue occurs, the lager no longer writes logs to the console and console.log file, blocking messages in memory and unable to release them, resulting in an increasing memory usage.
The original console log level was debug, but this issue occurred. I adjusted the console log level to warning and wrote the debug level log to a file instead of the console and file. It seems that this issue has been significantly improved, and there has been no problem of excessive memory usage again.
from lager.
and you're not logging to stdout or another non-file backend at all? how many logs do you think you were generaying per second?
from lager.
and you're not logging to stdout or another non-file backend at all? how many logs do you think you were generaying per second?
I output the logs to both the program console and console.log file at the same time, and the speed of the problem depends on the frequency of the log output. When there are more than ten logs per second, this problem occurs in three or four days of college. When there are forty to fifty logs per second or even higher, this problem occurs in less than half an hour.
Perhaps I can send out the tiger configuration file to take a look, but it will need to wait until next Monday.
If I increase the console log level and lower the log level output to the console.log file, can I also solve this problem? Because the system has already been launched into the production environment, when this issue occurred, I set the console and output log levels to a high level, which prevented me from seeing some debug logs and preventing me from stopping my application.
from lager.
After this issue occurred, I changed my lager configuration file and raised the console log level, making it almost impossible for logs to be output to the console. Secondly, I will output the debug logs to a log file. The log output rate may be around 40-50 per second, and there is no memory freeze caused by the inability to output logs to the console and files, which seems to solve this problem.
from lager.
My English proficiency is not very good, and I often use translation software to translate into English, which may cause confusion. I hope you can forgive me.
from lager.
Related Issues (20)
- Here's a suggestion
- .
- new release HOT 1
- Here's a suggestion HOT 2
- when print record format by lager:pr which has binary value, need space after '='
- Lager with Erl24 HOT 1
- Resolve relative log_root to absolute on boot HOT 1
- 'line' is a tuple on OTP-24 HOT 14
- variable '__Levelfoo_app13' unsafe in 'case'
- qlc.hrl causes lager to produce "Warning: a term is constructed, but never used" HOT 3
- Upgrade to rebar3 HOT 2
- lager is stuck on lager:do_log_impl HOT 9
- Directory "test" missing in hex.pm package
- Lager process is having a huge queue length HOT 1
- How to get log level in dynamic metadata? HOT 1
- Is this project alive ? HOT 3
- Confusing behaviour with eunit tests
- How about extracting file writing to a process?
- An Invaild integer syntax tuple in lager_transform.erl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lager.