Why does nuvola takes so much memory? Can something be done about it?

Asked by Olivier Bilodeau

I noticed that nuvola eats a lot of memory on my system:

$ ps auxw | egrep "RSS|nuvola"
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
olivier 5641 8.5 15.8 4285064 1250872 ? Sl 10:45 1:50 /usr/lib/nuvolaplayer/nuvolaplayer
olivier 5670 4.0 3.6 451428 283756 ? Sl 10:45 0:52 /usr/lib/nspluginwrapper/i386/linux/npviewer.bin --plugin /opt/nuvolaplayer/flash/orig/libflashplayer.so --connection /org/wrapper/NSPlugins/libflashplayer.so/5641-2/2004914966

1.2Gb + 200Mb of RSS to play music seems to me like a lot of memory for this task.

Can something be done to reduce that?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Nuvola Apps Runtime (Nuvola Player) Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Bilodeau
Solved:
Last query:
Last reply:
Revision history for this message
Jiří Janoušek (fenryxo) said :
#1

It's interesting. I've never noticed such a huge memory usage. In my experience, Nuvola Player takes about 230 MB of RAM after one day of Google Music playback. (WebKitGtk window with the Google Music web interface consumes about 190 MB.)

$ ps auxw | egrep "RSS|nuvola"
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
fenryxo 25253 7.0 1.2 2187348 193172 ? Sl 00:09 0:27 /usr/lib/nuvolaplayer/nuvolaplayer
fenryxo 25280 0.0 0.0 41888 8080 ? S 00:10 0:00 /usr/lib/nspluginwrapper/i386/linux/npviewer.bin

Whiche services and which distribution do you use?

Revision history for this message
Olivier Bilodeau (plaxx) said :
#2

Thanks for the quick reply! Really appreciated.

I use Google Music and I am running 64 bit Ubuntu 13.10 using Gnome 3 (w/ bleeding edge PPAs).

The memory usage is high right after startup. No need to wait for it to build up.

Using Google Music through chrome and looking at memory consumption with chrome's task manager I get about 192Mb usage.

I don't know if its relevant but my playlist holds several DJ sets which are 1 to 2 hours songs.

Revision history for this message
Jiří Janoušek (fenryxo) said :
#3

I've installed Nuvola Player on Ubuntu 13.10 with GNOME 3 and memory usage is a bit higher than on Debian (not sure why). However, it is still far less than 1.2 GB. Is your issue reproducible if you switch to stable packages instead of packages from bleeding edge PPAs?

fenryxo@virt:~$ ps auxw | egrep "RSS|nuvola"
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
fenryxo 5423 10.2 24.9 2514284 254328 pts/0 Sl+ 21:43 0:23 /usr/lib/nuvolaplayer/nuvolaplayer
fenryxo 5454 3.0 3.5 170400 36340 pts/0 Sl+ 21:43 0:06 /usr/lib/nspluginwrapper/i386/linux/npviewer.bin

Revision history for this message
Keerthan Jaic (jckeerthan) said :
#4

I'm having the same problem with google play music on archlinux.

~600 MB on starup and ~1.4GB when I play songs.

Revision history for this message
Matthew Gabeler-Lee (fastcat) said :
#5

Same/similar issue on Debian jessie x86_64, Gnome 3.8:

After loading Google Music, but before starting playback:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
matthew 11761 29.3 10.0 4062564 822908 ? Sl 15:48 0:11 /usr/lib/nuvolaplayer/nuvolaplayer
matthew 11819 0.8 0.5 143392 48408 ? Sl 15:49 0:00 /usr/lib/nspluginwrapper/i386/linux/npviewer.bin --plugin /opt/nuvolaplayer/flash/orig/libflashplayer.so --connection /org/wrapper/NSPlugins/libflashplayer.so/11761-2/1804729404

After starting "I'm Feeling Lucky Radio":

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
matthew 11761 15.6 16.6 4616776 1357556 ? Sl 15:48 0:17 /usr/lib/nuvolaplayer/nuvolaplayer
matthew 11819 1.2 0.6 237392 55960 ? Sl 15:49 0:01 /usr/lib/nspluginwrapper/i386/linux/npviewer.bin --plugin /opt/nuvolaplayer/flash/orig/libflashplayer.so --connection /org/wrapper/NSPlugins/libflashplayer.so/11761-2/1804729404

$ apt-show-versions -r -p nuvolaplayer
nuvolaplayer:amd64/sid 2.3.0-0.1~sid uptodate
nuvolaplayer-flashplugin:amd64/sid 0.6-0fenryxo1~sid1 uptodate
nuvolaplayer-flashplugin-multiarch:i386/sid 0.6-0fenryxo1~sid1 uptodate

In case it matters...
$ apt-show-versions -r -p libwebkitgtk
libwebkitgtk-3.0-0:amd64/testing 2.2.3-1 uptodate
libwebkitgtk-3.0-common:all/testing 2.2.3-1 uptodate
$ apt-show-versions -r -p libjavascript
libjavascriptcoregtk-3.0-0:amd64/testing 2.2.3-1 uptodate

I have gobs of excess RAM in this machine, so I'd never noticed this until I saw it mentioned in the blog entry.

If capturing info from a debug build would be of help, I'm willing to give it a shot. I'm giving dpkg-buildpkg on nuvolaplayer a whirl now to make sure I really can build from source here.

Revision history for this message
Jiří Janoušek (fenryxo) said :
#6

 Keerthan Jaic, do you also use GNOME?

Olivier Bilodeau, Keerthan Jaic and Matthew Gabeler-Lee, could you temporarily install another desktop environment (e.g. XFCE, LXDE) and try run Nuvola Player without GNOME?

Revision history for this message
Keerthan Jaic (jckeerthan) said :
#7

No, I use kde 4.12.
On Jan 30, 2014 2:16 AM, "Jiří Janoušek" <
<email address hidden>> wrote:

> Question #242020 on Nuvola Player changed:
> https://answers.launchpad.net/nuvola-player/+question/242020
>
> Jiří Janoušek requested more information:
> Keerthan Jaic, do you also use GNOME?
>
> Olivier Bilodeau, Keerthan Jaic and Matthew Gabeler-Lee, could you
> temporarily install another desktop environment (e.g. XFCE, LXDE) and
> try run Nuvola Player without GNOME?
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Jiří Janoušek (fenryxo) said :
#8

I've just finished synchronization of development data for my home convalescence after a release from hospital and will take look at this issue closer during the weekend. I have a few ideas about the cause of this issue.

Revision history for this message
Jiří Janoušek (fenryxo) said :
#9

I've created a bug report #1275002 for this issue. Please continue further discussion there.

https://bugs.launchpad.net/nuvola-player/+bug/1275002

Revision history for this message
Olivier Bilodeau (plaxx) said :
#10

Problem resolved with the release of 2.3.2. Thanks Jiri!

Everyone should consider financially supporting his work: https://www.gittip.com/NuvolaPlayer/