Limit memory for Safari?

Is there a way to limit the use of the memory of Safari?

This morning I found my system is not responding because a process of Safari had used all available memory and disk space (for the swap). The screen is locked, mouse movements began to record after a minute and the keyboard was unresponsive as well. I waited for several minutes without success.

I have connected remotely via ssh on the ipad and noted that a process of Safari used about 40 gigabytes of memory; which is about all the 8 GB internal memory and the about 35 GB of free space on the disk, I normally. In the end, I had to hard reboot the machine as same sudo shutdown - r now does not stop him...

To the point, it was a crazy amount of memory used and realistic anything over 2 GB would be a sign of a problem on a page already. Can I somehow limit the process of Safari to, say, 2 GB of memory?

PS: I tried to kill the process of Safari with the kill, with and without the sudo command, but the process remained. Is there another method to kill the command line?

PS2: Apparently, there is some javascript-clock world out there that is included in some pages that I visit that causes this. I was not able to identify the exact source of the problem.

All the web, even on Windows browsers I find leak memory like the proverbial sieve. Most of windows or tabs that you have open and the longer you run more memory is used and "leaked".

I'm not aware of a way to set a limit for a specific individual programme in terms of memory usage.

To kill the Safari via a Terminal session by using the kill command, you must first find its PID (process ID), it would be running the ps command, to help out you, I've included a grep command to filter the unique process you are looking for.

ch - x | grep "Safari.app".

In fact lists two results, one the actual process of Safari, the other the command above itself that naturally contains Safari.app in command. You should then be able to

sudo kill 1234-9

by replacing the correct number of PID.

However, there is another solution might be easier, who wants not to use kill command but rather use the command killall related as follows.

sudo killall - c Safari.

Tags: Mac OS & System Software

Similar Questions

  • How can I sync the playlist of Safari on my iPhone for Safari on my windows machine?

    First of all, I must say that I was really happy to see Safari for windows! Thank you!!! Chrome and IE were all two overclocking my machine and the cooling fan will not turn off. I did the same 'stress test' with Safari and the memory usage is less than 25% of the other two.

    On the question: How can I sync the playlist of Safari on my iPhone for Safari on my windows machine? I downloaded the iCloud (iCloud desktop application) Control Panel and updated all my information.

    When I go in the Favorites section of the Control Panel, there is no option for Safari. The only options that are present are: Internet Explorer, Firefox (not installed), and Chrome. I did a lot of research, but can't seem to find a solution...

    Thank you!

    What version of Safari installed on Windows? What version of Windows are you using?

  • resources memory for VM - limits

    Hello

    I want to ensure that I understand - if a virtual machine is configured with 8 GB of RAM (right click - & gt; Change settings - & gt; Tab hardware - & gt; Memory for this virtual machine) and later, go you to the tab "resources" (for this virtual machine) limit memory to 4096, then it means that this particural VM will use a maximum of 4 GB of ram (instead of 8 GB), is this correct?

    You'll change on the tab "resources" (for this virtual machine) limit memory to 4096, then it means that this particural VM will use a maximum of 4 GB of ram (instead of 8 GB), is this correct?

    Yes. Is the same or of setting the memory to 4 GB (in the first tab)

    Could be useful in the resource pool.

    André

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • Maximum physical memory for ESXi?

    Hello.

    I have two xSeries 336 servers where I intend to install ESXi. One of them is a single processor with 2 GB of RAM, the other is dual processor with 1 GB of RAM. They are all Intel 32-bit processors.

    Now, I plan to purchase more memory for them. My question is if ESXi will have a limit of 4 GB in 32-bit platforms or if I can use up to 8 GB on each server (as I could do if I was running Windows 2003 with the pae option).

    Kind regards. Sergio.

    Have a read of the document Setting Maximums for the Max RAM Oh and you can check the VMware systems compatibility matrix for your x 336 servers...

    Thank you

    Neil

  • Hyperion Planning setting memory for web forms large

    I've seen some previous post Hyperion Planning that may have errors of memory for large web forms. Any recommendation of the size limit of web form?

    If we use 64-bit Windows, Hyperion Planning supports larger sized web form although it seems that Hyperion Planning application itself is still 32-bit software.

    Thanks a lot for your help!

    Hello

    It is definitely a cache where many objects in the planning are cached in their current state and which is held in the JVM, this has probably been implemented to speed up the response time. I'm not sure on this 2 GB limit you keep tapes even if, as it has always been my belief that it is down to the size of the JAVA virtual machine.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • What is reasonable memory for Firefox use?

    Title says it all-

    What is reasonable memory for Firefox use?

    The normal use, I am an average of 1.2 G or about memory (of 16 G total); is this normal? Don't not maxing out at all but I was wondering.

    How to define and measure the use of memory for Firefox? Activity monitor? I use Firefox to write this. In the activity monitor, I see Firefox to 347 MB and Firefox Web Content to 259 MB.

  • Should I have Norton Security for Safari?

    Should I have Norton Security for Safari?

    Your Mac that it either has no need of Norton or Symantec. All the software does is cause trouble.

  • My iMac was delivered on 10 May 2007 number of series W8 * WISHES. with Safari 5.1.10 who no longer supports Youtube.  Need an update for Safari 6?

    My iMac was delivered on 10 May 2007, serial number W8 * VUW with Safari 5.1.10 that seems to no longer work with Youtube, or I feel, iTunes.  Need an update of Safari for Safari 6?

    < personal information under the direction of the host >

    Your iMac can be upgraded to 10.7.5 but first of all, you must pass to 10.6 buy buy here http://www.apple.com/shop/product/MC573Z/A/mac-os-x-106-snow-leopard?fnode=bd9df ffc279ae7442f708bc58e670bfa2fb10c38ba693... Then update 10.6.8 by running this download Mac OS X 10.6.8 Update v.1.1 update and finally to have bought 10.7 here http://www.apple.com/shop/product/D6106Z/A/os-x-lion?fnode=2ce01640fd3544d1bd83c f25d33042ed17a15e8a4bcc1844c8cc312339603...

    Is that you can go. As always, make sure that you have a working backup before starting the upgrade.

  • What is recommend this anti virus for safari?

    WHAT IS RECOMMENDED ANTI VIRIUS FOR SAFARI?

    None.

    Avoid shady sites and download applications only from the developer or the Mac App Store.

  • How can I activate CV for safari in OS El Capitan?

    How can I activate CV for safari in OS El Capitan?

    Don't turn off Safari before you when stop you the mac, and When you stop, check the "reopen windows when you connect in '.

  • Adjustable memory for NB550D resources

    So after upgrading the memory in my NB550D to a module of 4 GB (3 GB usable) steals the netbook, but I noticed the HD 6250 graphics uses 1 GB of memory for himself, obviously such a graphic of a budget entry has not even need half of this sum, especially that the screen is only 1024 x 600 , so if an admin is to check this, I wondered if in a future BIOS, an option could be added to adjust the amount of GPU memory?

    I'd rather have the GPU using approximately 256MB and rest in the direction of memory system, it does not require as much memory.

    Hey,.

    Who knows if Toshiba released a BIOS where you can adjust the graphics memory but such a function isn't known to me and I doubt it will happen.
    The memory of the graphics card will always be controlled automatically and there is no value that you can change.

    I mean that even 3 GB of RAM is really enough for performance netbook and I doubt you need more RAM and even some programs need more RAM you can use the virtual memory on the HARD drive.

  • Question about the upgrade memory for my Satellite M40-307

    Sorry for the newbie question. But if I have 512 MB of memory for the time being, what are my upgrade options?

    Do I have to buy pairs of memory? So I can or buy 2 x 1 GB = 2 GB, or 2 x 512 MB = 1 GB + 512 existing. Or can I say just buy a single 512 MB or 1 GB chip?

    Since no one wants to answer:
    1. check if your laptop supports Dual Channel Ram (it should be, but just see the manual to be sure)
    2. knowledge of what type of RAM you have. This will add or remove a possibility of upgrade

    The thing with Dual Channel is, that you have the best performance if you use 2 RAM of the same type (really of the same type: company, size...)
    you could:
    3. Add a 512 MB of RAM of the same type you have
    3 b. buy 2 pieces of new RAM of the same type (1 GB + 1 GB, or 2 + 2 GB) and do not forget that your laptop supports this quantity (once again: manual to check)

    You will also find in the manual, if your computer supports DDR or same DDR2 RAM (faster)

    If you have lost your manual, you can download it here on the toshiba Web page

    I hope I could help a little.

  • Is there a higher trend now for Safari to be affected by the admalware and ransomware?

    Now that I've updated for Safari 9.1, I meet a lot of frozen with MacKeeper.com Windows ads or other malware, whenever I use Safari.  I recently downloaded and benefit from Malwareabytes AntiMalwarsoftware, but why are now experience us this problem?  We can avoid it? e

    It's not because Safari is now more vulnerable to these intrusions.

    There is a to increase I injection adware developers and sellers.

    Some publications depends on advertising revenues to support their operations.

    'Free' content delivery is supported by advertising revenue.

    There is no way to prevent this, other than to not visit these sites.

    Once infected, you can remove it, but you can't prevent that from ever happening.

  • Upgrade memory for Satellite 2800 400

    I am trying to upgrade my ram to 128 on the laptop. After following the instructions for the instillation, that I turned the laptop on to find that it was slower than before and that the new ram had not registered as 128, and always thought it was 64 in someone can help me solve this ir is there anything I can do?

    Hi Ben

    Maybe you used the memory modules bad.
    As far as I know that you can upgrade memory for max 192 MB
    The 64 MB has been installed in an internal memory and cannot be deleted.

    I found these compatible modules:
    PA3003U - 1 M 03 32 MB
    PS3004U - 1 M 06 64 MB
    PS3005U - 1 M 12 128 MB

  • Pavilion p6608f: upgrade memory for p6608f

    Hello, my Pavilion p6608f came with 4 GB of RAM. I want to upgrade. By HP features, the motherboard is a MSI ms-7613 and it should support up to 16 GB of RAM (4 x 4 GB DIMMS). I bought 4 DIMM which seem to fit specifications, but the computer wouldn't POST after installation. I tried reseating the DIMMs, but no luck. My hypothesis is that the memory is not compatible.  I'm unable to find good information on the compatible memory for this computer on the site of Kingston, MSI site, or the site of HP. (Any ideas on one) why the memory I bought is not compatible and b) how to find compatible memory?

    Thank you.

    Saw that Crucial guarantees their recommendations, I'd go with it.  You may contact their Customer Service to see what they have to say if you are still skeptical.  I have recommended Crucial memory for years without reports of incorrect memory being received.

    Please click on the button + Thumbs up if I helped you and click on accept as Solution If your problem is resolved.

Maybe you are looking for