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

High CPU and memory consumption #8020

Closed
1 task done
SkonWodrich opened this issue Sep 27, 2024 · 12 comments · Fixed by #8027
Closed
1 task done

High CPU and memory consumption #8020

SkonWodrich opened this issue Sep 27, 2024 · 12 comments · Fixed by #8027
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@SkonWodrich
Copy link

SkonWodrich commented Sep 27, 2024

Expected Behavior

like in #8017

the beta is even worse now .. you closed the issue .. that i could not respond.

Actual Behavior

I tried the beta like you asked me.

the switch of branches is fast now. But CPU and esp. memory consumption is WAY WORSE!

Screenshot 2024-09-27 112452
Screenshot 2024-09-27 112739
Screenshot 2024-09-27 112819

There must be a memoryleak somewhere. it took 4 GB memory in 1 1/2 min .. then i closed insomnia.

Reproduction Steps

i tried the latest beta

switch branch, fetch, switch branch ...

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

latest beta

What operating system are you using?

Windows

Operating System Version

10 and 11

Installation method

insomnia website executable Beta!!

Last Known Working Insomnia version

No response

@SkonWodrich SkonWodrich added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Sep 27, 2024
@subnetmarco
Copy link
Member

@CurryYangxx

@subnetmarco subnetmarco changed the title issue not solved .. its getting worse High CPU and memory consumption Sep 29, 2024
@jackkav
Copy link
Contributor

jackkav commented Sep 30, 2024

@SkonWodrich could you give us some idea of how to reproduce what you are seeing? We've tried large collections but not seeing nearly 4GB of memory load. We've seen large API Specs and lots of nested folders causing performance issues in the past, curious what might be different in your case.

@SkonWodrich
Copy link
Author

SkonWodrich commented Oct 1, 2024

hello @jackkav . Thanks for the response .. i tried to get the memonry up lik ein my first test. I didnt manage to. "Only" around 2 GB and 70-80% cpu usage. But to be fair this was the the peak. I tried everythink around the git functions. I fetched (with the highest peak) i tried to switch branches from the server (250 MB selfhosted repo). we saved the insonia files in the repo. everything looks ok ...

image

Now while i write u i have the same problem again ... the memory consumptions wont stop. 9 GB and i closed insomnia. maybe some thing that is happening while insomnia is not in use an idling in the background.

image

Is there a way to have a log or something? i could provide it.

@SkonWodrich
Copy link
Author

opened it again. fetched and switched a branch and still:
image

the only thing i noticed is the efficency mode from windows. the first time i open insomnia there it wasnt in the "efficency mode" mode .. after it switched the memory went up.

@jackkav
Copy link
Contributor

jackkav commented Oct 1, 2024

https://docs.insomnia.rest/insomnia/application-data
Take a look for repeating errors or put it all in a gist, there should be a main and a render log

@SkonWodrich
Copy link
Author

hey jack, nice profile pic. can i send u the logs via mail? i already tried to anonymise it. but you never know. :) @jackkav

@SkonWodrich
Copy link
Author

Hey there, i found out, that it is strongly depending on a "larger" collection. When i am on the one collection insomnia is idleing ok. but when i chekc out the other collction it is going up .. no matter what i do. @jackkav

@jackkav
Copy link
Contributor

jackkav commented Oct 2, 2024

Sure jack at konghq dot com

High numbers of folders are a common cause of performance problems.

@SkonWodrich
Copy link
Author

i cant change the ammount of folders in the project to suit insomnia. ;) do we have another solution?

@jackkav
Copy link
Contributor

jackkav commented Oct 4, 2024

We're looking in to optimising the slow database query which causes this. Using git sync compounds it too. Are you using git or cloud sync in this collection?

@SkonWodrich
Copy link
Author

git sync with a selfhosted gitlab.

@jackkav
Copy link
Contributor

jackkav commented Oct 7, 2024

That explains it, our team is currently working on a git repo parsing optimisation to resolve this. Thanks for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants