[Solved] memory usage increasing! - ?

I2P router issues
Post Reply
imstanz
Posts: 17
Joined: 28 Jun 2019 22:44

[Solved] memory usage increasing! - ?

Post by imstanz »

Update::
code input lowered usuage for more uptime...
i2p-Router updates removes this issue! thx all ~~
Hi All,
I just noticed my RAM memory usage increasing above 50% and does not decrease.
I have 4 GiB RAM Memory, and 960 MiB Swap Partition.

I first noticed this 6 days ago. So I shutdown the router (ran for 7 days to 60%) and
ran bleachbit to clean system and then memory.
Rebooted and started router.
Memory and Swap - low usage. Right now, 6 days running...
RAM Memory: 2.2 GiB (57.1%) of 3.9 GiB
Swap: 25.5 MiB (2.7%) of 959.0 MiB (memory usage bar, reports: "RAM: 521 / 988 MiB)

Anyone else have similar usage?
Am I gonna need to shutdown and clean memory every 6-7 days?

Thx,
asta...
Last edited by imstanz on 24 Mar 2020 02:47, edited 1 time in total.
miyoisomix.i2p
echelon
Posts: 264
Joined: 10 Feb 2018 13:36

Re: memory usage increasing! - ?

Post by echelon »

hi

no need to clean memory at all, system do manage memory in a very good, effective way.
Available memory is used, no need to keep memory free on force.
I2P uses a slow memory print of 100-500 MB, depending on usage. A slight overhead of java comes upon it, but thats managed bei java and system itself, no need to interforce.
Only if system starts to swap you need to check.

echelon
jogger
Posts: 45
Joined: 19 Feb 2018 09:00

Re: memory usage increasing! - ?

Post by jogger »

256 MB for i2p are sufficient except you are running very high b/w. However older Java versions are known to allocate lots of memory outside the defined heap size over time. This has become increasingly better from Java 10 onwards. If possible run Java 11+.

On linux use

Code: Select all

export MALLOC_ARENA_MAX=2 # 32bit: 1
to make memory allocation less aggressive.

if properly configured, i2p and two instances of BiglyBT should fit into 1 GB.
imstanz
Posts: 17
Joined: 28 Jun 2019 22:44

Re: memory usage increasing! - ?

Post by imstanz »

Thank you for your replies,
I am sorry - I forgot to include my system info. :oops:
I am using fork of Debian, called Devuan (no systemd).
Linux 4.19.0-4-amd64 #1 SMP Debian 4.19.28-2 (2019-03-15) x86_64 GNU/Linux.
Intel Core 2 Quad CPU Q9400 @ 2.66GHz x 4
Like Debian9 - I think?

Thanks echelon - but I don't know what that means exactly!?
echelon wrote: 19 Sep 2019 07:06 Only if system starts to swap you need to check.
echelon
----
jogger wrote:high b/w.
Sorry, you say bandwidth?
jogger wrote:If possible run Java 11+.
Looks like I am.

Code: Select all

$ java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Enviroment (build 11.0.4+11-post-Debian-1deb10u1)
OpenJDK 64-bit Server VM (build 11.0.4+11-post-Debian-1deb10u1, mixed mode, sharing)
I do not understand java, or know if I installed proper pkgs!! (Do I need Server???) :?:
Someone needs to post 'howto' for us "java for dummies!"

jogger - shall I adjust "32bit" -to- "64bit?

Code: Select all

export MALLOC_ARENA_MAX=2 # 32bit: 1
make it like this:

Code: Select all

export MALLOC_ARENA_MAX=2 # 64bit: 1
??
jogger wrote:if properly configured, i2p and two instances of BiglyBT should fit into 1 GB.
Process: java - Memory: 945.0 MiB
Process: Web Content (1of 4 - tabs open) Memory: 182.5 Mib
Process: firefox.real - Memory: 255.7 MiB

Only "(1) i2p console - (1) webserver, (1) susimail, (1) i2psnark" tabs/instance open.
I don't change tunnels.
I adjust bandwidth - slowly..

I am only using what comes with i2p - only orchid plugin, I2PSNARK, susimail, I2P webserver...
I learn this first - before installing/using other additions.
I cannot even install eldorado!!
miyoisomix.i2p
imstanz
Posts: 17
Joined: 28 Jun 2019 22:44

Re: memory usage increasing! - ?

Post by imstanz »

I am forced to search the web for assistance -
All results are off-topic, which has nothing to do with using i2p router! :shock:
I have only increased my bandwidth sharing.
jogger wrote: 19 Sep 2019 20:17 256 MB for i2p are sufficient except you are running very high b/w.
I assume you mean bandwidth, and I'll lower that.

On linux use

Code: Select all

export MALLOC_ARENA_MAX=2 # 32bit: 1
to make memory allocation less aggressive.
I think the '#' means 'comment', for 32bit...again, I'm searching the web and finding unrelated results.
Using 'unknown' commands, to fix an 'unknown' issue...makes me uncomfortable.

if properly configured, i2p and two instances of BiglyBT should fit into 1 GB.
My running i2p router, is using original configurations...except for bandwidth. 8-)
miyoisomix.i2p
imstanz
Posts: 17
Joined: 28 Jun 2019 22:44

Re: memory usage increasing! - ?

Post by imstanz »

I just re-started the router, after running for 22 days.
Memory usage got over 70% of 3.9GiB.

After input of:

Code: Select all

export MALLOC_ARENA_MAX=2
My system memory usage hangs around 491-504MiB.
Startup the router, and it jumps to 1.3GiB (33.3%) of 3.9GiB.

Router sidebar "memory usage Bar" shows:

Code: Select all

RAM: 417 / 988 MiB
??
Using Mate System Monitor:
My RAM is 3.9 GiB (I have 4 - 1 GB sticks, on board)
My Swap Partition is 959.0 MiB (I created 1 GB, swap partition) and shows No Usage.

That "RAM" usage and amount, doesn't make sense...?
I hope my explanation...makes sense! :|

I'll just leave it running and keep an eye on it. :ugeek:
Thx...
miyoisomix.i2p
Post Reply