-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Feature Request] Resource Limit #6
Comments
How many cores does your Windows machine have? |
4 cores 4 threads |
right now all spam threads are using maximum priority, we will add an option to change that in the next release, thank you for the request! |
I experience similar problems on my Windows machine, using 4 out of 6 cores. A reduction of thread usage would be nice. |
Just did some 30 minutes of testing. Using 4 out of 6 cores I can spam about 13.5 txs/min. Using only 1 core I can still spam ~12 txs/min. Using only one core does not slow down the pc at all, everything above that causes a slowdown. I suggest everyone only uses one core for spamming until this issue is resolved because the difference is negligible. |
v1.0.3 now supports configurating the thread priority (minimum/normal/maximum priority) |
somehow if i configure 1 thread with minimum priority, this jar still consumes >95% CPU most of the time. i do not understand why. my machine has 2 cores/4 processors. so 1.0.3 does not solve it for me.... |
that's interesting. i suspect that the iota.lib.java library has its own thread management. we are going to do some research on that. |
You are most definitely right: the doc of the iota.lib.java library says:
|
I checked your code. I think i found the exact cause: your NodeManager class interacts with the IOTA API. So this should run on a separate thread (as suggested in its doc). However in the main thread you create a NodeManager instance which is passed in the constructor of the first SpamThread you launch. Thus although you launch separate threads, the first SpamThread sends its spam with a NodeManager which was created on the main thread. So this explains the freezing. |
@gjeee The SpamThread instances are seperate threads calling methods in the NodeManager class - it doesn't matter in which Thread the NodeManager object was created, but rather from which one its methods are called. |
Fixed in v1.0.4 |
An option in config.ini to limit CPU use would be nice.
When i run 2 threads on my Windows machine the OS freezes constantly.
The text was updated successfully, but these errors were encountered: