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

-cpus <num> doesn’t seem to set the number of cores #420

Open
shivaraj-bh opened this issue Jan 1, 2024 · 1 comment
Open

-cpus <num> doesn’t seem to set the number of cores #420

shivaraj-bh opened this issue Jan 1, 2024 · 1 comment

Comments

@shivaraj-bh
Copy link

Here’s the command used to start the server:

imaginary -a=localhost -p=8088 -cpus=1

And this is what I get when I call the health endpoint:

$ curl 127.0.0.1:8088/health
{"uptime":18,"allocatedMemory":0.6,"totalAllocatedMemory":0.6,"goroutines":6,"completedGCCycles":0,"cpus":4,"maxHeapUsage":3.69,"heapInUse":0.6,"objectsInUse":1217,"OSMemoryObtained":7.35}

As you can see in the output, the number of cpus is still 4.

@shivaraj-bh
Copy link
Author

$ imaginary -v
1.2.4

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

No branches or pull requests

1 participant