Giter Site home page Giter Site logo

High RAM usage about powertunnel HOT 5 CLOSED

krlvm avatar krlvm commented on September 13, 2024
High RAM usage

from powertunnel.

Comments (5)

krlvm avatar krlvm commented on September 13, 2024

Hello.

We need to clarify a few things at the first, JDK (Java Development Kit) is a regular JRE (Java Runtime Environment, the virtual machine, that interprets the bytecode and runs the application) plus the stuff that is need to develop and build Java applications.
So, this doesn't matter what you have installed - JRE or JDK.
If you do not develop Java apps, you can uninstall JDK and install a regular JRE to save disk space.

When I use PowerTunnel on Windows, the average RAM usage is 100-150 MB. The main source of the memory consumption is the underlying proxy server (LittleProxy), that is highly optimized though.

Can you share your PowerTunnel settings (screenshot of the options window or settings.ini)?
What operating system do you use (Windows/Linux/macOS)? Windows.
Are you seeing this issue on Android?

I have a few suggestions at this point:

  • You can try to launch PowerTunnel in console mode, so you can try economy the memory (and CPU usage) by disabling the User Interface: javaw -jar PowerTunnel.jar -console;
  • Remove the asterisk (*) from government-blocklist.txt and put there all hosts that is blocked in your country, you can find this list in the Internet, so the resources of your PC will be saved thanks to applying trick only to necessary sites;
  • I developed another solution that should solve that problem a month ago, but haven't published it yet. The solution is to use PAC (proxy auto configuration) to use the proxy only for necessary sites, this will economy even more resources than the previous method.

Waiting for your reply.

from powertunnel.

tosunkaya avatar tosunkaya commented on September 13, 2024

I runned via cmd javaw -jar PowerTunnel.jar -console, when it's enabled, total usage is 90mb (increases-now 98mb). which is better than 400mb.
but goodbyedpi just uses 6mb. My settings are default (not used any blacklist). OS: Windows 10 latest.
image
image

from powertunnel.

krlvm avatar krlvm commented on September 13, 2024

The difference is that GoodbyeDPI injects into the Windows network stack, when PowerTunnel is a proxy server that should intercept, deconstruct and analyze the traffic. Unfortunately LittleProxy is not as optimized as we would like it to be.

I have a plan to move to a native and optimized proxy server written in C/C++, but haven't find a good replacement yet (in addition to that, the replacement should support MITM attacks with certificate sniffing to maintain the SNI tricks).
The problem can be partially fixed for now by using blacklists in combination with PAC, which I will release within a few hours.

from powertunnel.

krlvm avatar krlvm commented on September 13, 2024

The temporary fix is available in version 1.13, you can use PAC in combination with government blocklist to reduce RAM usage by reducing the count of connections to the proxy

from powertunnel.

krlvm avatar krlvm commented on September 13, 2024

I found a solution.
The actual RAM usage is actually low, the problem is that memory never returns from heap to operating system.
Launch PowerTunnel with JVM argument -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC.

from powertunnel.

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.