Memory Management #201
Replies: 10 comments 2 replies
-
You need to identify the particular software that is a memory hog. How do you know its a memory problem since you have an apparent system freeze? |
Beta Was this translation helpful? Give feedback.
-
Simply because, I know exactly which programs are causing it,
While working with react native, and trying to install the Android app, the
Java program uses lots of memory, I frequently check how much memory is
left with "free -h" command, and exactly when my ram memory is just about
to be over, the system becomes dead, if somehow I am able kill any program
before it becomes completely unresponsive, like chrome, or sublime or
intellij Idea, or any other program, immediate system recovers some memory
and laptop gets back to it's normal state.
…On Sun, Oct 29, 2023, 6:32 PM Jeremy7701 ***@***.***> wrote:
You need to identify the particular software that is a memory hog.
Is this a new problem?
How do you know its a memory problem since you have an apparent system
freeze?
Does sudo journalctl -b -1 -p3 (for example) show anything useful when
run in the reboot following a freeze error?
—
Reply to this email directly, view it on GitHub
<#201 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHHUACIGHLPZFBWOTBS2NTYBZAW5AVCNFSM6AAAAAA6T4QVZKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJVGY4DQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Since you know the exact cause of the problem and I assume that allocating a lot of swap space doesn't help, then the only solution is a memory upgrade. Alternatively, terminate unnecessary large programs which aren't needed before trying to simultaneously "While working with react native, and trying to install the Android app, the Java program uses lots of memory" . |
Beta Was this translation helpful? Give feedback.
-
So you are basically saying to buy a better laptop with better ram support,
that much sense I have, and I would buy a better laptop when I can, but I
wanted to change a fundamental thing on next Linux mint upgrade, no matter
how much memory I put, ultimately if too much programs are open my laptop
will freeze, and this is a fundamental problem, 3-4 years of suffering, you
should not just overturn with a suggestion - "buy a better laptop" that I
already know.
…On Sun, Oct 29, 2023, 11:55 PM Jeremy7701 ***@***.***> wrote:
Since you know the exact cause of the problem and I assume that allocating
a lot of swap space doesn't help, then the only solution is a memory
upgrade.
Alternatively, terminate unnecessary large programs which aren't needed
before trying to simultaneously "While working with react native, and
trying to install the Android app, the Java program uses lots of memory" .
journalctl is basically a log of warning/error messages issued by various
components.
—
Reply to this email directly, view it on GitHub
<#201 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHHUADDLTF2IKXHU6PRBI3YB2GPJAVCNFSM6AAAAAA6T4QVZKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJXGEZDS>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Sometimes I just need a minute to kill the Java program and start again,
but since the system is completely unresponsive I can not do anything but
restarting my laptop.
…On Mon, Oct 30, 2023, 7:18 AM Sumit Garai ***@***.***> wrote:
So you are basically saying to buy a better laptop with better ram
support, that much sense I have, and I would buy a better laptop when I
can, but I wanted to change a fundamental thing on next Linux mint upgrade,
no matter how much memory I put, ultimately if too much programs are open
my laptop will freeze, and this is a fundamental problem, 3-4 years of
suffering, you should not just overturn with a suggestion - "buy a better
laptop" that I already know.
On Sun, Oct 29, 2023, 11:55 PM Jeremy7701 ***@***.***>
wrote:
> Since you know the exact cause of the problem and I assume that
> allocating a lot of swap space doesn't help, then the only solution is a
> memory upgrade.
>
> Alternatively, terminate unnecessary large programs which aren't needed
> before trying to simultaneously "While working with react native, and
> trying to install the Android app, the Java program uses lots of memory" .
> journalctl is basically a log of warning/error messages issued by
> various components.
>
> —
> Reply to this email directly, view it on GitHub
> <#201 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AEHHUADDLTF2IKXHU6PRBI3YB2GPJAVCNFSM6AAAAAA6T4QVZKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJXGEZDS>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
I appreciate the problem: but running multiple very large programs, especially Java is going to use a lot of RAM. Since you are considering killing a program, is it not possible to run a background script which can monitor free memory and perform the kill process automatically? |
Beta Was this translation helpful? Give feedback.
-
You give me such a script, I could not find any, why not incorporated such
a script in the system itself, and temporarily freeze the programs and
inform the user that system will soon run out of memory, please take some
action immediately, rather than just being completely dead, does it make
sense to you ?
…On Mon, Oct 30, 2023, 8:07 AM Jeremy7701 ***@***.***> wrote:
I appreciate the problem: but running multiple very large programs,
especially Java is going to use a lot of RAM.
Since you are considering killing a program, is it not possible to run a
background script which can monitor free memory and perform the kill
process automatically?
Obviously this isn't ideal!
—
Reply to this email directly, view it on GitHub
<#201 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHHUAAWFNM4O6ZLEER56BDYB4HG3AVCNFSM6AAAAAA6T4QVZKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJZGEZTQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Good idea - a bit like the warning you get when your approaching 100% of disk usage. My programming skills are fairly basic - so I'd run a BASH script in a terminal window. This sounds a bit like a problem I once had with a video transcoding program trying to run many threads at 100% causing the CPU to trip out due to the temperature. So I monitored the temperature and got killall to send alternate STOP/CONT signals. I copied bits of it from the internet. Here's my example - not a good one, I admit!!!
Obviously, you would need to extract the free memory perhaps using the |
Beta Was this translation helpful? Give feedback.
-
Try to install and configure ZRAM, it might help a bit with freezes |
Beta Was this translation helpful? Give feedback.
-
Agree with @anaximeno on the Also, rather than killing the machine, hit This will toss you into a TTY in which you can log in, run Once it is back under control, Using the Also, rather than turning off the machine, give it a chance to restart gracefully with REISUB issues commands directly to the kernel. REISU essentially cuts everything down, B is Boot.... ...... Editing - I thought to add this for the sake of completeness and for those following in future: https://wiki.archlinux.org/title/Keyboard_shortcuts#Kernel_(SysRq) There is also a section just below it which deals with OOM and how the use of |
Beta Was this translation helpful? Give feedback.
-
I have been using Linux mint for almost 4 to 5 years, not just for casual usage, but for hardcore software development like Android, React Native, HTML, python,c# etc., But the main problem which I have faced mostly when the system runs out of memory, and the system just freezes, I can't even move my mouse, and it is dead until I restart my laptop, and everything is lost, it is very bad user experience.
I have a suggestion, please select some softwares which are essential for the system to keep going, then always allocate some part of ram memory for those software so that system does not ever freeze, for example if I have 8 GB of ram, I am very happy to provide 2 GB all the time for system to keep running, now if a process freezes and uses up rest of 6 GB then I can easily kill the process and get back my memory.
Beta Was this translation helpful? Give feedback.
All reactions