GithubHelp home page GithubHelp logo

[BUG] Very high CPU usage about zoraxy HOT 6 CLOSED

tobychui avatar tobychui commented on June 6, 2024
[BUG] Very high CPU usage

from zoraxy.

Comments (6)

tobychui avatar tobychui commented on June 6, 2024 1

@AdmiralAwesome

The whitelist involving the use of country code will force Zoraxy to resolve the request original of each of the incoming request by its IP address, which is a really CPU intensive task if it is done via low memory geoip resolving mode where it needs to iterate through the whole IPv4 (or v6) table before it can respond to the request.

I am not sure about your hardware specs and visitor counts, but if your server's CPU load is unpleasantly high, I would recommend you to enable fastgeoip mode to save some CPU cycles by space-time-tradeoff country code resolving algorithm.

from zoraxy.

tobychui avatar tobychui commented on June 6, 2024 1

I am not sure about your hardware specs

Hardware is not a problem. I can just simply assign more CPU and that's that.

visitor counts

What is the visitor traffic (based on your experience) to have this kind of load?

I never have such high traffic to even utilize 50% of my D525 Intel atom server. Again, without knowing the spec and how many people are visiting your site, I cannot identify if this is a bug from Zoraxy or it is just your machine is too low power to handle the traffics with all the features Zoraxy offer. I guess you need to figure it out yourself.

from zoraxy.

AdmiralAwesome avatar AdmiralAwesome commented on June 6, 2024 1

Sure thing. Thank you for your input anyway. It doesn't look like it's Zoraxy bug.

from zoraxy.

tobychui avatar tobychui commented on June 6, 2024

Hi @AdmiralAwesome,
Might I know the version of Zoraxy you are using and did you enabled the -fastgeoip mode to reduce CPU usage (in exchange for using more RAM)?
As I got a few private instances of Zoraxy running on my Windows (7) and Linux (debian 11) server without using container. Seems there are no such issues regarding high CPU usage.

圖片

圖片

from zoraxy.

AdmiralAwesome avatar AdmiralAwesome commented on June 6, 2024

Well, well, well - could it be that I got barrage of visitors from China/Russia/whatever - as the CPU is fine right now.
zoraxy2

It looks like it got a lot of traffic (my timezone is GMT+2)
image

image

I don't have -fastgeoip enabled, but I do have Whitelist enabled just for my Country and the rest of the World is denied.

from zoraxy.

AdmiralAwesome avatar AdmiralAwesome commented on June 6, 2024

I am not sure about your hardware specs

Hardware is not a problem. I can just simply assign more CPU and that's that.

visitor counts

What is the visitor traffic (based on your experience) to have this kind of load?

from zoraxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.