Bug 106507

Summary: Limit resources offered to flash applications
Product: [Applications] konqueror Reporter: Marcin Kasperski <Marcin.Kasperski>
Component: nspluginviewerAssignee: George Staikos <staikos>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 3.3.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marcin Kasperski 2005-05-30 16:34:23 UTC
Version:           3.3.2 (using KDE 3.3.2,%20%20(3.1))
Compiler:          gcc%20version%203.3.5%20(Debian%201%3A3.3.5-8)
OS:                Linux%20(i686)%20release%202.6.8

For a few times I happened to have such situation:
- I view some webpages in konqueror 
- I find my computer to be heavily swapping, while examining the situation I find that I have all of my RAM and swap in use and that XFree86 process takes enormous memory (up to 1GB)
- I kill nspluginviewer process (which also takes large memory - like 50 MB) to find that after it is killed, XFree reduces its memory to typical numbers (so, I guess, this terrible amount was allocated by nspluginviewer in terms of X resources)

The problem itself can lie outside of KDE but maybe KDE could help limit its impact. It would be nice if one could place some limits of the amount of CPU and RAM executed plugin takes - both in terms of its own resources, and in terms of X resources.
Comment 1 Dik Takken 2005-05-30 16:41:50 UTC
KDE 3.4 should already have an option to give Flash a low process priority.

I don't think KDE should try to 'solve' memory leaks in external plugins.
Comment 2 Marcin Kasperski 2005-05-30 17:00:20 UTC
I do not want KDE to solve memory leaks in external plugins. But I would like KDE to place ulimits on those plugins and - say - just kill this flash plugin when it goes over some reasonable limit.
Comment 3 George Staikos 2005-05-31 01:20:44 UTC
There is already "nice" support.  Memory limit is already requested.

*** This bug has been marked as a duplicate of 104338 ***