Comments (5)
Updated and it works awesome now! thanks a lot !
from log-viewer.
Hey @centerdevs , thanks for the kind words!
- How big are your log files? Is it possible to get a screenshot of the file list on the left?
- It's hard to tell when exactly this memory exception occurs. Can you explain a bit what actions are you taking before this exception occurs? Does it happen when first opening up the log viewer? Does it happen when navigating to a big file? Does it happen when searching? etc etc. Exact steps, so I can reproduce it.
Thanks!
from log-viewer.
Hello @arukompas
-
I have logs/laravel.log that is always lightweight ( up to 1mb ). And i have larger logs files stored in subfolders, ex. logs/*/big.log - some of big are 150-200mb in size, and my total log folder size is 8 GB.
-
When i open log-viewer, by default no one file selected, and the error almost instantly occurs by itself, like i see it - it indexing the whole log folder and because of total logs/* size there some problem. What is important, when i open any of "big" 100-200MB logs file - it's absolutelly fine i can explore them without any problem, this happening just with "background" indexing proccess.
-
BTW, an error occurrs 3-4 times ( 1 error per one log-viewer page refresh in browser ) and after it stops to occurring. It feels like indexing proccess was finished and it will be repated after some time, it's not triggered anymore. After 5 min when i open log-viewer - the error is already triggered :)
from log-viewer.
I've temporary commented out the code in the the following files - IsScanRequiredController, ScanFilesController.
So now i'll have no errors triggered by the files scanner and the most important - i'll have no scanning of 8GB logs, that i don't really need to scan. It's "cold" logs with some important historical information.
- also, the error is always triggered when i'm trying to clear all indices, so here the problematic action on the screenshot
from log-viewer.
Hey @centerdevs , thanks for helping debug the issue!
I've tagged a new release, v1.8.0
which allows you to disable this eager scanning done at the beginning. I understand not everyone needs this, so this setting makes perfect sense.
Just added some info about it in the docs as well - https://log-viewer.opcodes.io/docs/configuration/managing-indices
Let me know if resolves the issue!
from log-viewer.
Related Issues (20)
- All records do not appear and when downloading the file they appear HOT 11
- UI issue HOT 4
- Download file not sending additional headers HOT 13
- Layout issues with more than 4 columns defined
- Log with name access-*.log showing "No results" HOT 1
- Malformed UTF-8 characters, possibly incorrectly encoded Error HOT 3
- Custom theme not working as advertised HOT 2
- Problem downloading logfiles from log viewer page HOT 2
- log-viewer visible by public, unauthorized users HOT 11
- Lots of raw HTML tags inside Stacktrace HOT 4
- Search is case sensitive for non English text HOT 2
- Bug HOT 5
- RuntimeException: A facade root has not been set. (related to log facade) HOT 2
- Blank Display HOT 2
- Error 500 | Undefined variable $selectedFileIdentifier HOT 1
- it doesn't support arabic language HOT 11
- unserialize(): Error at offset 0 of 81 bytes HOT 3
- Arrays with numeric keys are not correctly displayed HOT 1
- Request failed with status code 500: Undefined array key 1 error when searching HOT 5
- Result not showing (Redis connection error) HOT 1
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 log-viewer.