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

Log search function is very slow, sometimes causing system crash. #122

Open
dangokuson opened this issue Apr 12, 2022 · 7 comments
Open

Comments

@dangokuson
Copy link

Hi there! I am using log viewer to view log, log viewer will read all log files in /default/logs folder of the system. The system works stably except for the search function. The log file size can be up to 100MB, I'm not sure if this is the main cause of the error. However, when I use the log search function, the system may crash, sometimes.

Can someone tell me what is the problem?

@sevdokimov
Copy link
Owner

100MB is not too big a file, it should work fast. Do you have java.lang.OutOfMemoryError?

@dangokuson
Copy link
Author

@sevdokimov No, I don't. But, there are a lot of file logs under /default/logs folder. It is around 700 files, and a sub-folder, that sub-folder also contains 700 log files. However, those files were compressed files. The crash application error occur only when I use the search log function.

Are there any suggestions?

@sevdokimov
Copy link
Owner

Do you open files one by one? or all files at the same time in one view?

@dangokuson
Copy link
Author

@sevdokimov I did open several files at the same time, but the maximum is 10 files. I used the below function for search:

image

@sevdokimov
Copy link
Owner

Are there any errors in the browser console or log-viewer output?

@dangokuson
Copy link
Author

Nope, there is no error and the application has been frozen for a few minutes before crash

@sevdokimov
Copy link
Owner

What exactly crashes, a page in Brauser or the java application (backend)?

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