F
F
fromthesecond2015-05-06 00:31:54
linux
fromthesecond, 2015-05-06 00:31:54

Why does Java on Linux consume more memory than on Windows?

Actually, I write for Android. I ran away to a light arch + xfce so that Android Studio with music would work smoothly.
As a result, it turned out that on a light linux, java itself in processes eats up twice as much memory. I had to forget about the music in spotify.
I have intel core i3, 3gb ram. It costs J DK 8 from Oracle , because the studio writes they say "everything will be even worse on open jdk." Where is it worse if 2.9 GB is actually occupied by two processes of 800 MB each and a couple of simpler ones?
Until I ran away to Windows, tell me where the problem could be.
PS immunity from thrown stones.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
Nazar Mokrinsky, 2015-05-06
@fromthesecond

Maybe Java is going crazy with x64.
As a partial solution to this and other issues with memory, I can recommend installing zram, in fact it is a swap, but compressed in memory. Due to the minimum load on the CPU, it allows you to fit more information in memory, and sometimes even speed up memory work. This thing is also often available on Android mobiles in custom firmware.

V
Vladimir Abramov, 2015-05-06
@kivsiak

3 gigabytes for an android developer is very very small. And the second question is how do you determine how much memory is occupied?

G
GavriKos, 2015-05-06
@GavriKos

The problem is primarily in Android Studio itself - it is very voracious. The alternative is Eclipse.

O
one pavel, 2015-05-06
@onepavel

The problem is 3GB ram, which is not enough by today's standards. Last year, when I bought 8GB memory in a poppy, it was cheap.
You urgently need to increase your memory =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question