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

[Linux] Hight CPU use when running Rebol server as a service #2609

Closed
Oldes opened this issue Jul 18, 2024 · 0 comments
Closed

[Linux] Hight CPU use when running Rebol server as a service #2609

Oldes opened this issue Jul 18, 2024 · 0 comments

Comments

@Oldes
Copy link
Owner

Oldes commented Jul 18, 2024

Since version 3.11.0 starting Rebol web server as a service consumes almost all CPU... when running the same from command line is OK.
Having such a service file /etc/systemd/system/test-server.service

[Unit]
Description=Test simple Rebol server
After=network.target

[Service]
ExecStart=/usr/local/bin/rebol3 --do "import httpd serve-http [port: 8888 root: %/home/oldes/test/]"
Restart=always
User=oldes
Group=oldes

[Install]
WantedBy=multi-user.target

Running it as:

systemctl start test-server.service

Then you can notice high CPU usage.
image

While running the script from command line only:

rebol3 --do "import httpd serve-http [port: 8888 root: %/home/oldes/test/]"

is OK:
image

It appears because of this commit.

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

1 participant