Questions tagged [memory-usage]

Questions related to memory usage related to RAM, swap; issues expansion, in Ubuntu.

Filter by
Sorted by
Tagged with
470 votes
3 answers
904k views

How do I configure swappiness?

I need a step-by-step, simple and easy way to configure swappiness.
One Zero's user avatar
  • 27.2k
304 votes
6 answers
316k views

Why is swap being used even though I have plenty of free RAM?

I thought the whole essence of swap was to act as a temporary storage safety net when RAM was full but my swap partition is constantly being used even though I sometimes have as much as 3GB free RAM. ...
Mysterio's user avatar
  • 12k
15 votes
2 answers
7k views

What is the difference between the memory usage report in System Monitor and the one by free?

I am using System Monitor 2.28.0. When I look in the Resources tab, I see a nice graph with for memory and swap. Memory is about 60% 2.3 GiB of 3.8. When I type the command free, I got : ...
Guillaume Coté's user avatar
73 votes
6 answers
118k views

How do you find out which program is using too much memory?

Ubuntu has been crashing on me recently. I think its because it runs out of memory so I ran the free -m command and found that my memory usage was really high. So then, i ran top to find the culprit, ...
shxfee's user avatar
  • 1,017
36 votes
2 answers
30k views

Memory limiting solutions for greedy applications that can crash OS?

I use my computer for scientific programming. It has a healthy 8GB of RAM and 12GB of swap space. Often, as my problems have gotten larger, I exceed all of the available RAM. Rather than crashing (...
Hooked's user avatar
  • 2,363
347 votes
13 answers
770k views

How can I monitor the memory usage?

I have used top to see the memory usage at the moment. But I would like to monitor the memory usage over a period of time. E.g start monitoring and then execute a few commands, and final stop the ...
Jonas's user avatar
  • 8,237
6 votes
1 answer
14k views

bash fork: retry: Resource temporarily unavailable

I am trying to run a shell script which will create process using a shell script. I get Resource temporarily unavailable error. how to identify which limit (memory/process/filecount) is creating this ...
Viswanath's user avatar
13 votes
1 answer
6k views

How to limit resource usage for a given process?

I have a process for an application which needs to run, but ends up using far too much IO usage for what it does. And really crashes my computer, making it impossible to do anything else whilst it is ...
user avatar
25 votes
4 answers
25k views

Google Chrome will take up my memory to the point where it causes my computer to freeze to a near halt. What can I do to prevent this?

It gets so horrible that I can not even switch to TTY1 to force a reboot. I have to hard reset, and I lose work. Ideally, I would like to be able to use the chrome browser on Ubuntu without having to ...
Anon's user avatar
  • 12.1k
12 votes
1 answer
13k views

How to set a memory limit for a specific process?

I tried to execute mpiexec -16 ... on a 384 GB RAM server, but it induced OOM Killer and was aborted. How can I set a memory limit for mpiexec execution? I know ulimit, but it might affect other ...
Benben's user avatar
  • 225
4 votes
5 answers
13k views

How to configure ubuntu for lightweight low-memory usage?

I just upgraded an old, secondary computer to the latest Kubuntu (10.10). It seems the effort was a bit too much for the hardware and one 512MB memory module died. I tried to take it away, clean the ...
augustin's user avatar
  • 511
63 votes
4 answers
88k views

How to interpret output of "free -m" command?

The output of free -m is: total used free shared buffers cached Mem: 595 482 112 0 63 324 -/+ buffers/cache: ...
amoooc's user avatar
  • 1,001
20 votes
1 answer
23k views

Is it still bad to use swap on a modern SSD?

I have a Samsung 960 Pro SSD with Ubuntu 18.04 is it safe to put the swap file on there or would it hurt it in the long run, I heard some people saying that new SSDs don't suffer from that issue ...
H D's user avatar
  • 323
17 votes
6 answers
20k views

How to test oom-killer from command line

The OOM Killer or Out Of Memory Killer is a process that the linux kernel employs when the system is critically low on memory. ... This maximises the use of system memory by ensuring that the ...
WinEunuuchs2Unix's user avatar
36 votes
6 answers
57k views

How do I show memory usage information in top bar or as notification?

I have 4GB RAM. When I open Firefox, IntelliJ IDEA or VS Code and some other application my memory is about used up thus my machine hangs and I can't do anything. I can't even close any applications. ...
alhelal's user avatar
  • 2,621
34 votes
2 answers
8k views

Can a vanilla Ubuntu 16.04 LTS Server run without snapd?

I've been running out of memory on some of my small-footprint Ubuntu appliances. I noticed that snapd was running and using lots and lots of RAM. I took a chance and stopped the snapd service and ...
Peter Turner's user avatar
34 votes
1 answer
14k views

What do the changes in `free` output from 14.04 to 16.04 mean?

I noticed that the free command reporting has changed somewhere between Trusty and Xenial. Here is what `free -m' shows on one of my Trusty computers: $ free -m total used ...
otus's user avatar
  • 873
21 votes
7 answers
14k views

Warning when available RAM approaches zero

This is a follow-up to Memory limiting solutions for greedy applications that can crash OS?: ulimit and cgroups are not user friendly, and besides, wouldn't work with applications that spawn separate ...
Dan Dascalescu's user avatar
10 votes
2 answers
66k views

How to increase JAVA Heap Size?

I need to increase the default java heap size to get OpenNMS Linkd service running smoothly, and fortunately I have 4/5 of my total installed memory free at any given time even when their is maximum ...
Hrish's user avatar
  • 2,353
32 votes
3 answers
19k views

Should the snap-store be using >300Mb of memory?

The snap-store process is intermittently using hundreds of megabytes of RAM. Is this normal? Is there a solution?
James's user avatar
  • 942
10 votes
1 answer
3k views

Ubuntu 17.10 gnome-software process using large amounts of memory

I've been running Ubuntu 17.10 for a good while. Starting yesterday (April 9) the process gnome-software started using large amounts of memory. I don't know if it is related to the update that I took ...
rkeaing's user avatar
  • 1,584
6 votes
1 answer
6k views

High SHMem memory usage!

I have tried everything I could think of so here I am asking this question here... I have a computer that has 8 GB of RAM. After booting the computer, logging in, not opening any applications and ...
nulldev's user avatar
  • 163
3 votes
3 answers
11k views

Ubuntu on 256MB RAM [duplicate]

Possible Duplicate: How to configure ubuntu for lightweight low-memory usage? How can I reduce Ubuntu install size to the minimum, with GUI? I was wondering if I can use Ubuntu (scale down ...
Ashfame's user avatar
  • 3,214
10 votes
2 answers
21k views

What is process "/usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none"?

I am experiencing some serious performance issues with my Ubuntu 12.04 setup and thus looking for the culprit by running htop alongside my usual tasks. Aside from the usual suspects like chromium, ...
FuzzyQ's user avatar
  • 2,338
6 votes
3 answers
14k views

Why does memory usage shown in System Monitor differ from that in ps_mem?

I came to Ubuntu 16.04 from Mint 17.3 (and Ubuntu Mate 15.10), and I'm shocked with the memory usage of Ubuntu 16.04. With a clean install, 16.04 used about 650+ Mb RAM, and after 1 or 2 days, after ...
dnt294's user avatar
  • 61
1 vote
1 answer
2k views

Move WUBI installation of Ubuntu to a different partition in Windows

I don't have a lot of space on my D: drive and Ubuntu is taking 15 gigs of it so I wonder, is there a way of moving Ubuntu from D: to C: while keeping the files that exists on Ubuntu? Thanks
Yehonatan Tsirolnik's user avatar
38 votes
3 answers
26k views

Lowering Compiz memory usage

I have been following the updates that appear every week in how they affect the performance and resource usage of Compiz since I installed 11.10 (Right now I am testing 12.04 and 14.04). For what I ...
Luis Alvarado's user avatar
33 votes
4 answers
253k views

Why am I frequently getting this "Cannot allocate memory" error?

I'm using Ubuntu 12.10 with Gnome-Classic. I am getting this error frequently and with almost all programs, big and small. When I try to open them, they don't start, and instead I get an error message ...
Questioner's user avatar
  • 6,849
25 votes
4 answers
179k views

Running any command returns "Cannot allocate memory" on Ubuntu Server

I’m using Ubuntu 14.04. Recently, when I login via SSH with my user with sudo privileges, every command I run results in a “Cannot allocate memory” error. Here are a few I tried at my console ...
Dave's user avatar
  • 2,095
21 votes
4 answers
46k views

How to log memory and cpu usage of an application?

Similar to question How to log CPU load?, I would like to log memory of a process. The process I want to log, is killed on a remote server, and I want to find out the CPU load and the memory usage ...
Framester's user avatar
  • 455
19 votes
4 answers
139k views

How to clean up dev/sda1 as it's full

I've been doing jmeter tests and have had a few OutOfMemoryExceptions, so I've bumped up the heap memory in JMeter. But now it seems I can't run anymore tests as it says I'm using 94.9% of 14Gb. When ...
B. V's user avatar
  • 311
16 votes
6 answers
2k views

Check memory usage of process which exits immediately

I have built an application which takes less than 1 sec to execute. I want to check the memory usage of this application. What are the tools which can be used in this scenario?
doptimusprime's user avatar
12 votes
1 answer
26k views

Why does ubuntu not seem to release memory?

I am working with apache2+php and other web server apps. I have monitor as session connecting to a web server. RAM memory is full. But when disconnecting a session, it does not free the RAM memory. ...
Tejaskumar Tank's user avatar
11 votes
4 answers
57k views

Is there any application or command that cleans the memory like CCleaner in Windows?

After the system has been running for 8 hours continuously, it becomes slow. When I faced the same situation on Windows, I used CCleaner to clean memory, which used to give me a little boost. Is ...
mateen's user avatar
  • 657
11 votes
4 answers
92k views

Why is my /dev/loop0 showing full?

I have sufficent memory , but somehow I get my /dev/loop0 showing usage of 9 GB here's my df-h. Filesystem Size Used Avail Use% Mounted on /dev/loop0 12G 10G 1.4G 88% / udev ...
seeker's user avatar
  • 1,707
9 votes
4 answers
962 views

Where has all the RAM gone?

I have 1GB of RAM, and when I run NetBeans and Firefox, they get about 300MB of RAM. At some point, the system becomes very slow, probably 100 times slower than normal, switching windows (Alt+Tab) ...
umpirsky's user avatar
  • 4,060
9 votes
1 answer
8k views

General way to monitor ALL memory usages

I have Kubuntu 16.04 and am using ZFS. As you can see on superuser, I just had a long journey in tracking down where my memory was vanishing to. It turned out to be the ARC of ZFS that was eating it ...
Torge's user avatar
  • 251
7 votes
2 answers
3k views

How to restore/change Alt+Tab behaviour/ram usage and a few other things after Ubuntu upgrade from 11.04 to 11.10? [closed]

I use Ubuntu for programming. I recently updated it from 11.04 to 11.10. There are some things I don't like in the new version of Unity desktop interface. I don't actually know if it is hard to ...
fiktor's user avatar
  • 307
7 votes
4 answers
12k views

what is the nm-applet and why does it take so much memory?

I was wondering why my memory useage was so high, what is this thing that take a whopping 1.2GB of memory. Please and thank you.
myusuf3's user avatar
  • 34.2k
7 votes
2 answers
6k views

Why are memory statistics in top and htop different?

Whenever I use top and htop commands to see memory stats, they are always different as shown in figures. Which should I trust?
Goforseeking's user avatar
5 votes
2 answers
3k views

Changing to another distro: can the -home partition be kept?

I want to change from Ubuntu 11.04 to another distro and I have /home on a different partition than the other folders. I want to ask if it's possible to keep the same /home partion with another distro ...
vasiauvi's user avatar
  • 173
5 votes
2 answers
7k views

How do I get the actual used memory including RAM disks?

free -m does not seems to include memory used by RAM disks (tmpfs filesystems). Maybe because it's something in the kernel space? How do I get the real memory usage (or it's opposite, free memory) ...
Lekensteyn's user avatar
  • 174k
4 votes
2 answers
2k views

Can I use all my RAM for application data?

I have yet another question about "where is my Linux memory" Question goes: can I use cache for application data? On my laptop I have 1GB ram. Situation after some time of work: browser takes 400MB ...
gsedej's user avatar
  • 4,914
2 votes
1 answer
173 views

Why low swappiness (10) leads to system crashes? [duplicate]

As I have 128 GB of RAM, I wanted to minimize swap usage by setting vm.swappiness to 10. I ran a bath (snakemake -j 1) of memory-heavy operations in Python: subtracting two arrays up to 15 GB each, ...
abukaj's user avatar
  • 465
2 votes
4 answers
20k views

Freeing page cache using echo 3 > /proc/sys/vm/drop_caches doesn't work?

free -m total used free shared buffers cached Mem: 24055 22439 1615 8969 16 9096 -/+ buffers/cache: 13326 10728 ...
MikePatel's user avatar
  • 121
2 votes
5 answers
6k views

How to log memory usage per minute on Ubuntu Server?

I checked few programs such as htop or top command but couldn't find any features for logging per minute. Is there a way to do that for tracking memory issues ? edit: I was using linode and decided ...
mirza's user avatar
  • 121
1 vote
2 answers
36k views

What swapfile size to make? I have 4GB RAM [duplicate]

Very often I am out of memory. I noticed that I don't have a swapfile. What size should I choose? I have 4GB RAM. Programs I use are: Firefox, Thunderbird, Grive, Android Studio, that's it, still my ...
Kirill's user avatar
  • 113
0 votes
2 answers
372 views

Why does memory-heavy processes lead to system crashes when swap is available?

I run a bath (snakemake -j 1) of memory-heavy operations in Python: subtracting two arrays up to 15 GB each, then calculating norms of the difference. Surprisingly my system started to misbehave: ...
abukaj's user avatar
  • 465
27 votes
3 answers
81k views

How can I find the memory usage on my GPU?

Previously I was checking the memory usage on my GPU with the following command: nvidia-settings -q all | grep Memory I am processing some scientific data on my GPU with numpy and theano. I was ...
Nathan's user avatar
  • 813
18 votes
3 answers
7k views

How to prevent so many instances of apt-check running?

I have an Ubuntu 12.04 server that just crashed because of a very obvious cause: 30+ of apt-check processes consuming all memory, the OOM killer kicking in, killing vital services. I'm not sure where ...
gertvdijk's user avatar
  • 68k