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

[Bug]: Performance problem on the server/devtool. #574

Open
jonas-martinez opened this issue Dec 4, 2023 · 3 comments
Open

[Bug]: Performance problem on the server/devtool. #574

jonas-martinez opened this issue Dec 4, 2023 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jonas-martinez
Copy link
Collaborator

jonas-martinez commented Dec 4, 2023

What happened?

It seems that when running a lot of requests to the server api on a lenra application, in my case a couple thousand requests, the server starts rebuilding the UI at each request and it also seems that either it reloads the UI MUCH more than at each request but more like 100 times per request or either the logging system is duplicating the logs.

In fact, my log file is 1.5 million lines long for the mere couple thousand requests, it seems quite high for that.

To reproduce this weird behavior, you can run the https://github.com/jonas-martinez/achiever app and enter your steamid + the appid that you can find in the technical.md file.

I can't upload the log file as it is literally 1 Gigabyte. I'm uploading the first thousand lines.

What browsers are you seeing the problem on?

No response

Version

No response

Relevant log output

log.txt

No response

@jonas-martinez jonas-martinez added bug Something isn't working help wanted Extra attention is needed labels Dec 4, 2023
@taorepoara
Copy link
Member

@jonas-martinez Is this resolved by the insertMany ?

@jonas-martinez
Copy link
Collaborator Author

@taorepoara I will need to test this on my application (Achiever). I expect to do it very soon.

@jonas-martinez
Copy link
Collaborator Author

@taorepoara This problem is still here even with the insertMany and pagination system.

I don't know why but when I run my requests for getting my steam games and achievements, even though my UI is not supposed to be reloaded, the server tries to do it (and does not send the result on the websocket). So I think that there is a problem somewhere in the UI rebuild system that triggers everytime any entry in the Mongo database is updated/created.

You can see this behaviour in the log file attached to the description of this issue.

@taorepoara taorepoara transferred this issue from lenra-io/lenra_cli May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

2 participants