[Solved] Mint overloaded

Archived topics about LMDE 1 and LMDE 2
Locked
Albertin79

[Solved] Mint overloaded

Post by Albertin79 »

Hi,

I've a problem with mint. I play Kingdoms of Camelot, a game of Kabam over internet and i've 2 acounts at same time. Mi PC don't sleep and in the mornings when I see the game, my pc is overloaded and the solution is restart it. I don't know if there are any problem or I need to add some cron tasks to solve it to maintain my pc like is recently turned on. I check memory status and processes running and I think all is ok... Any solution for this?

Thanks

Alberto
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
grimdestripador
Level 6
Level 6
Posts: 1051
Joined: Fri Feb 16, 2007 2:26 am

Re: Mint overloaded

Post by grimdestripador »

Please describe overloaded. Perhaps you are overheating?
Albertin79

Re: [Solved] Mint overloaded

Post by Albertin79 »

Hi!

Sorry, I was on hollydays. No, I want to say overloaded because when I start to play with the game on the mornings Mint started to work a lot with hard drive and other tasks went slowly. I solved it making a script that stops firefox every 2 hours, clean memory and restart it, perhaps is a stone-hammer method but it works fine. Here is the script:
----------------------------------------------------------------------

#!/bin/bash

for (( i = 7200; i >= 0; i = i - 1 ))
do
clear
echo "Closing Firefox 1.... $i"
sleep 1
done
DISPLAY=:0.0 wmctrl -c "firefox"
for (( i = 10; i >= 0; i = i - 1 ))
do
clear
echo "Closing Firefox 1.... $i"
sleep 1
done
DISPLAY=:0.0 wmctrl -c "firefox"
for (( i = 15; i >= 0; i = i - 1 ))
do
clear
echo "Cleaning RAM en $i"
sleep 1
done

echo "type your su password here" | sudo -S sync && sudo -S sysctl -w vm.drop_caches=3
sync ; echo 2 > /proc/sys/vm/drop_caches

for (( i = 10; i >= 0; i = i - 1 ))
do
clear
echo "Starting Firefox 1... $i"
sleep 1
done

nohup firefox -no-remote -P 1 &

for (( i = 40; i >= 0; i = i - 1 ))
do
clear
echo "Starting Firefox 2... $i"
sleep 1
done
nohup firefox -no-remote -P 2 &
rm /home/qko/Escritorio/nohup.out
cd /home/qko/Escritorio/
./Firefox.sh
-----------------------------------------------------------------

Thanks!
Locked

Return to “LMDE Archive”