-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 usage when using SOCKS proxy #2602
Comments
Might be related to |
Can you please try running it without the socks proxy? |
Will do, and will let you know. Although the only two sources I have in jackett require a proxy due to ISP blocking, so if this works it may not be just down to the proxy, but something else handling/parsing the requests. |
9 hours with no problems. I put the proxy settings back and set my IPT address to a defunct url, tested the connection and instantly Jackett's CPU is now permanently ~ 50%. Maybe this problem occurs whenever the connection to an URL is dropped when using a proxy? |
Following. Continuing to have CPU issues with Jackett still. Tried running on both Windows and Ubuntu and still the same high CPU. I haven't tried disabling the SOCKS5, so going to try that, now that my Linux has permanent VPN connection running... |
Also having this issue. |
Removing the SOCKS5 tremendously helped and has lowered the CPU usage. Still spiking every few days, but I am taking care of it with monit and simply calling a restart if it's over 40% for 5 cycles (min). I know it's a bandaid, but I'm not willing to give up on Jackett, I love it too much. |
Having same issue as well (Docker, SOCKS enabled, auto update disabled), restarting usually solves the problem for a while so I'm hoping a cron job to restart it every 24 hours or so should do the job |
Having the same issue (Docker on Synology, SOCKS disabled, auto update disabled) Restarting the docker image solves it for a certain period 6h-2days. My Jackett Version is 0.8.737.0 |
Also having this issue. Sonarr does the same thing probably for the same reason. |
For everyone having this problem (especially in combination with socks). |
I have added this option and removed my auto-restarting of Jackett. The problem typically manifests itself at least once a day so we shouldn't have to wait long. |
Well that did not take long to test. Jackett is consuming all my CPU at this moment. Even with |
I've been having this issue as well for a while. Today I noticed not just high CPU but also very high memory. 200% CPU usage and 4.2G memory usage. Jackett Version 0.8.770.0 Just gonna have Jackett auto-restart for now. |
Jackett Version 0.8.994.0 Using SOCKS5 proxy. ... and still doing it. |
It's confirmed that using a socks proxy causes high CPU load. This is most likely caused by some problem or misuse of the https://github.com/postworthy/SocksWebProxy/ library. |
Seeing the same behavior disabled for now. |
I wrote a very simple Perl script to watch Use at your own risk and peril, although at least it's simple enough for you to easily determine if it will be harmful or not. In my own testing, I've found that it's not. About all I can say for it is that it does the job. Well. I can also say that it doesn't rely on It just logs to Hope someone else finds it useful. |
For me jackett service can't start automatically (after restart PC) then i use socks5 (he try to running but after 10 second stopped). With http proxy no problem. |
I confirm I also have this issue. I'm not using socks and I have auto-update disabled. |
I'm also having the same issue with jackett sometimes hitting 100% cpu until restarted... It seems to be fine for a day or so then the same thing happens again - I'm also using SOCKS and jackett is running as a docker container... Thanks for the script above which restarts the jackett service but does anyone have a similar script that checks for the jackett docker container CPU usage being high and, if above a threshold, restarts the container? I'm thinking the script needs to do something like: Run Any good bash scripters out there that could point me in the right direction for this? Thanks! |
Sorry for the rudimentary script with no docs. Try something like:
Let me know how it works for you. Working on a more general version with a config file so the threshold can be configured, etc. |
This would be great! Thanks! There seems to be an issue with the script currently in that it appears to be reading the output MEM USAGE column from "docker stats" command currently rather than the actual "CPU %" column for CPU usage??
|
Well, that's odd... I tested that on my Ubuntu system and there it appears
in the third column. I'll look closer at it later.
bick-ubtu3 ~$ docker stats --no-stream test-web
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
984400e3ae97 test-web 0.00% 0B / 0B 0.00% 0B / 0B 0B / 0B 0
bick-ubtu3 ~$ docker --version
Docker version 18.06.1-ce, build e68fc7a
bick-ubtu3 ~$
On Tue, Sep 18, 2018, 20:49 n1nj4888 ***@***.***> wrote:
Try this branch
<https://github.com/fbicknel/watchdog/tree/feature/docker-support>
Sorry for the rudimentary script with no docs.
Try something like:
$ ./watchdog.pl --docker <name of docker container>
Let me know how it works for you.
Working on a more general version with a config file so the threshold can
be configured, etc.
This would be great! Thanks!
There seems to be an issue with the script currently in that it appears to
be reading the output MEM USAGE column from "docker stats" command
currently rather than the actual "CPU %" column for CPU usage??
docker stats --no-stream linuxserver-jackett
CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
linuxserver-jackett 0.06% 102MiB / 512MiB 19.92% 37.2kB / 162B 0B / 0B 0
./watchdog.pl --docker linuxserver-jackett
Wed Sep 19 08:48:01 +08 2018
Argument "100.6MiB" isn't numeric in numeric gt (>) at ./watchdog.pl line 44.
DockerID: ad2c47cfe66f (linuxserver-jackett)
cpu was 100.6%
restarting service
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2602 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABmTGPNjvS8yRs1GpF750SjGY8YVmpwmks5ucZSzgaJpZM4SJRO->
.
--
…Sent from my stone tablet
- Frank
|
I’m running docker 17.05.0-ce which is the standard Synology NAS docker package. If docker have reordered the columns between versions, I think there is the ability to specify the format of the stats returned using
I’ll see if I can find out some more info on this... Usage: docker stats [OPTIONS] [CONTAINER...] Display a live stream of container(s) resource usage statistics Options: |
Ok - please try the latest push to that same branch. See if that fixes it. I feel guilty we're having this conversation in Jackett's space. :) |
Agree @WHiZSTA The Jackett team should never have accepted the PR for proxy support. It has been problematic since day one. Have added a warning to the Jackett dashboard. If no one from the community is prepared to spend time on fixing it, then proxy option will be removed from Jackett |
Hi @sv01a - Any update on this please? Actually both this and #4862. @FlightLevel indicates that if no-one will support proxy in jackett it maybe removed. I’m sure there’s a number of us that would like to prevent that happening! |
just my 2 cents. I had written very basic socks proxy code over 10yrs ago for an app, it was super simple to implement. upon an open connection, you send a binary string with the realip/port you want to connect to, and then it gives you a response code when it connects/fails and tunnels the traffic. granted I never messed with authentication stuff back then which I'm sure complicates it. that said, tech has changed since then, you can now setup proxies to auto auth/allow access from diff ips or trusted computers including localhost, etc. if the authentication is the hard part of implementing simple proxy support for jackett, just rip it out and people can reconfigure the proxy. i'd rather have that then no support at all. if the proxy code itself is as bad as some here have suggested, remove the proxy code and add in a network interface option for the network bind. that is even simpler, normally 1 line of code, and would solve the problem in a different way for many of us. aka, I had to set up a local host proxy to tunnel the traffic over a VPN interface because I can't select which interface to bind to. if I could select that, then I wouldn't need a proxy. others could use this in a similar fashion to create tunnels/proxies. |
we can try to switch from https://github.com/postworthy/SocksWebProxy to https://github.com/extremecodetv/SocksSharp . I haven't much time for digging SocksWebProxy. Especially that i have't any issues with socks5 on win10 and can't repeat it as well |
im all for that, willing to try anytjing, as i write this i just had to restart jackett again. it was eating 17% constantly on my i7 for hours. now it's at 0%. |
FYI this bug only happens with SOCKS. |
In Jackett is used very old fork of SocksWebProxy - https://github.com/lloydsparkes/SocksWebProxy . I found out that in original repo was added disposing of webproxy. in theory It's could fix this issue. I think that we could to try to update SocksWebProxy first and if it would't work - move to SocksSharp. Moving to SocksSharp requires much more time that update |
thanks for the heads up if they cant get socks working right ill setup an http proxy instead. |
Hi @sv01a, Any progress with this? I don’t mind testing out some builds if this helps? |
someone tryed to use httpclient2(-c httpclient2) except @halsafar ? to ensure that client is seted up you have to see |
Not sure what you mean @sv01a? Do you simply mean changing the proxy type from SOCKS to HTTP in the Jackett web GUI? Or running jackett with a “-c httpclient2” command line switch? Even if the HTTP proxy works, this wouldn’t fix the actual SOCKS proxy issues? Out of interest, does the HTTP proxy support both HTTP and HTTPS? |
I mean "switch jackett client in command line by passing |
httpclient2 use same library, but a little bit in different way. And it's works for me, but i need to know what it works for someone else |
Is anyone still having this issue using the standalone version of Jackett? |
Hi @FlightLevel - I’ve got a script running which checks and logs the CPU usage of the jackett container every 2mins. Since pointing it to the latest jackett container, it hasn’t triggered a restart of the container. It used to trigger a restart of the previous jackett containers on average once a couple of days... so will need to give it a few more days but, from my observations so far, this is no longer an issue... |
@n1nj4888 Did any more restarts trigger? I wonder what change could've fixed it. |
I am using @fbicknel ‘s watchdog script (docker branch) that is mentioned in this thread above. It checks if the CPU usage of the jackett docker container every 2 mins. If the jackett container uses > 30% CPU on two successive polls, it restarts the container and logs this to file - So far no restarts of the jackett container since using the new default httpclient (and socks5 proxy) in over a week |
Is that in the latest stable build or do I need to get an experimental one? |
Latest stable |
Hi @Alcedema, No response has been received for 7 days. To prevent issue tracker clutter, this issue will now be closed. To re-open the issue, please provide the information requested and the issue will automatically re-open. |
I am still having the issue (on FreeBSD, according to pkg no update available) |
I also still have the CPU issue. Latest version on Synology/Docker. |
I'm still having this issue. I'm running the standalone version on both linux (DietPi, latest stable) and Windows 10. It's happening on both machines. Uninstalling jackett and using usenet only until either this is addressed, or developers ask to test a fix. Running jackett 0.11.385.0. |
They call it |
any update on this one? are any of the proxies working for secure searching |
Since recently upgrading Jackett, the CPU load from the service ends up going through the roof; constant 60-80% which is slowing down plex transcoding.
Service restart works ok, don't know how long after starting the service, the CPU issue arises. Auto update is not on, but I had checked it on in the past but then disabled it.
I am using jackett through a socks5 proxy.
Have looked at the other issues relating to this problem, but they have been closed with no real fix apart from installing on a separate VM which isn't really a fix..
Jackett version: 0.8.676 & 0.8.692
Windows 10.0.16299
log.txt
The text was updated successfully, but these errors were encountered: