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

i have some questions about performance #24

Open
aijingsun6 opened this issue Dec 3, 2018 · 2 comments
Open

i have some questions about performance #24

aijingsun6 opened this issue Dec 3, 2018 · 2 comments

Comments

@aijingsun6
Copy link

  1. in log_manager.erl function notify_logger use gen_event:sync_notify(...) it was blocked util message ahead was handled,why not use method gen_event:notify(...)

  2. when so many messages send to defalut_logger ,the memory was cost a lot,why not use another form of message queue,like ets cache?

@ahmednawras
Copy link
Owner

ahmednawras commented Dec 3, 2018 via email

@aijingsun6
Copy link
Author

aijingsun6 commented Dec 3, 2018

Hi,ahmednawras

for problem 1, I understand your design now, but on my experience,at most situation,log system is a base component, i don't use the result of logger and don't care about the result.

for problem 2, in my production application, when use etop profiling my application ,the largest message queue size of processes is default_logger i think it is a problem and bottleneck.
when a gen_event process called default_logger with many event handler , the message consumption is very slow.

thanks for your answer.

alking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants