Possible caja memory leak
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
caja (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Expected behavior:
> If no caja windows are open, caja memory usage should remain stable
> If caja windows are open, caja should use proportionally more memory based on how many windows are open, more complex folders being viewed, media files being previewed, etc.
Actual behavior:
See original discussion on https:/
Caja gradually consumes more memory. When the caja process is started (e.g. system startup, restarting the process, etc.), it uses ~100 MB. However, after process startup the RAM usage begins creeping up. It happens at different rates, but a pretty typical example is ~0.5-1 MB/min. See the attached PNG for a graph of memory usage (scripts used to generate image included below). This continues, and eventually, will occupy almost 25% of the memory on my system (1.9 GB is the highest I have seen). The only thing I have been able to find to stop this is killing the caja process.
This increasing memory usage happens regardless of whether or not there are any caja windows open (although it does seem to happen faster when there are windows), and regardless of the number or type of files in the directory if a caja window is open.
Reinstalling the caja package did not resolve the issue.
System information:
- Ubuntu 17.10 (64-bit)
- Kernel version: 4.13.0.38-generic
- MATE package version: mate-desktop 1.18.0-1
- Caja package version: caja 1.18.4-0ubuntu2
- NVIDIA binary driver 390.25
- Customizations: show desktop icons enabled in MATE tweak, Compiz window manager, Adapta Nokto Eta GTK theme, Numix Circle icon theme, rotating desktop background slideshow using Variety (change every 10 min)
- Caja plugins: Send To, Wallpaper, Engrampa, Image Converter, User Share, libgtkhash-
> Memory logging/graphing script derived from https:/
> Script used to log memory usage:
#!/bin/bash
#process_
while true; do
ps -p <caja PID> -o cmd=,%mem=,vsz= >> /tmp/mem_caja.log
gnuplot <path to gnuplot_
sleep 1
done &
> Script used to plot memory output:
#!/bin/bash
#gnuplot_
set term png small size 800,600
set output "mem-graph-
set ylabel "VSZ"
set y2label "%MEM"
set ytics nomirror
set y2tics nomirror in
set yrange [0:*]
set y2range [0:*]
plot "/tmp/mem_caja.log" using 3 with lines axes x1y1 title "VSZ", \
"/
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: caja 1.18.4-0ubuntu2
ProcVersionSign
Uname: Linux 4.13.0-38-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu3.8
Architecture: amd64
CurrentDesktop: MATE
Date: Tue Apr 17 07:44:41 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2017-01-09 (463 days ago)
InstallationMedia: Ubuntu-GNOME 16.10 "Yakkety Yak" - Release amd64 (20161012.1)
SourcePackage: caja
UpgradeStatus: Upgraded to artful on 2017-11-22 (146 days ago)
tags: | removed: artful |
tags: | added: bionic |
I've also observed this. Over ~5 to 7 hours, caja version 1.20.2 memory usage reaches 2.5 or 3GB on Ubuntu 18.04 Bionic x86_64.
Killing the process causes it to free the memory, and it caja is restarted with no side-effects.