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

Webserver slow in startup and in UI #3046

Open
PartTheSeas opened this issue Dec 12, 2024 · 2 comments
Open

Webserver slow in startup and in UI #3046

PartTheSeas opened this issue Dec 12, 2024 · 2 comments

Comments

@PartTheSeas
Copy link

Describe the bug
I don't know how I would verify or or print this behavior, but the web server is super slow in startup (20 secs+) and if I refresh the tab in my browser it takes another 20+ secs to reload

To Reproduce
Steps to reproduce the behavior:
No idea if it's just me, let me know what you need and how I can retreive it

Expected behavior
Startup time should be a few seconds and refreshing the UI as well at max

Environement (please complete the following information)

  • Windows 11
  • Glances & psutil versions:
    Glances version: 4.2.1
    Glances API version: 4
    PsUtil version: 6.1.0
    Log file: C:\Users\Donatus\AppData\Local\Temp\glances-Donatus.log
  • How do you install Glances (Pypi package, script, package manager, source): pip install glances[all]
  • Glances test: Curses module not found. Glances cannot start in standalone mode.
@PartTheSeas
Copy link
Author

An update on this.

After doing some research I found out that the windows-curses package seems not to work with python3.9 or above, so I downgraded python to 3.9 and was able to install the windows-curses package.

Glances seems much more responsive now, even though not blazingly fast, but way faster.

Could this have been the culprit? Is there anything else I can do to improve the performance on Windows?

Kind regards ❤️

@nicolargo
Copy link
Owner

Hi @PartTheSeas

On his Pypi page, Windows-curses seems to be compliant with Python 3.6 to 3.12. Did you try to install the latest version (2.4) ?

Perhaps slow start issue came from another think.

Can you also send us the result of the following command:

glances --issue

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

No branches or pull requests

2 participants