# \[SOLVED\] rClone move script leading to heavy load

**URL:** <https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347>\
**Category:** Help and Support\
**Created:** [May 19, 2017, 3:49pm UTC](https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347 "2017-05-19T15:49:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aerya](https://forum.rclone.org/user_avatar/forum.rclone.org/aerya/32/420_2.png) [@Aerya](https://forum.rclone.org/u/Aerya)\
**Post date:** [May 19, 2017, 3:49pm UTC](https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347/1 "2017-05-19T15:49:24Z")

</div>

Hi,

I use rClone 1.36 (not BETA) on a Debian8 CT. Also tested on dedicated servers, the same.  
I wanted to test @Ajki script for the upload (thank you BTW!): [https://github.com/ajkis/scripts/blob/master/rclone/rclone-upload.sh](https://github.com/ajkis/scripts/blob/master/rclone/rclone-upload.sh)

Here’s my version:

```auto
#!/bin/bash
# RCLONE UPLOAD CRON TAB SCRIPT 
# Type crontab -e and add line below (without #)
# * * * * * /home/plex/scripts/rclone-upload.cron >/dev/null 2>&1

if pidof -o %PPID -x "rclone-upload.cron"; then
   exit 1
fi

LOG="/home/XXX/Logs/rclone-upload.log"
FROM="/home/XXX/Pre/"
TO="ACD_Enc:/"
EXC1="/PreFilms/**"
EXC2="/PreSeries/**"

# CHECK FOR FILES IN FROM FOLDER THAT ARE OLDER THAN 15 MINUTES
if find $FROM* -type f -mmin +20 | read
  then
  echo "$(date "+%d.%m.%Y %T") RCLONE UPLOAD STARTED" | tee -a $LOG

/usr/sbin/rclone move "$FROM" "$TO" -c -v --no-traverse --transfers=16 --checkers=32 --delete-after --exclude="$EXC1" --exclude="$EXC2" --min-age 20m --log-file="$LOG"
  echo "$(date "+%d.%m.%Y %T") RCLONE UPLOAD ENDED" | tee -a $LOG

```

Everything is fine for 10-15 minutes after CT/server upstart, I got about 10-12 connections to my cloud and then I got more and more processes/connections till the CT/servers load is too heavy I got to stop/reboot it.

Any idea on what’s going on? thank you

 ![](https://forum.rclone.org/uploads/default/original/1X/b1ada8025a3d028a041de746edc191d866d514cf.jpg)

 ![](https://forum.rclone.org/uploads/default/original/1X/42741ce5e63fb7d56e2c8fbd191d7e83b38216bb.jpg)

 ![](https://forum.rclone.org/uploads/default/original/1X/da9a3a512914add2d544414bbc469d1dc243c36f.jpg)

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [May 19, 2017, 3:52pm UTC](https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347/2 "2017-05-19T15:52:20Z")

</div>

Those aren’t processes, but threads in htop which is totally normal.

You are moving 16 files at a time with transfers=16. If that’s too much, make it lower or lower the bandwidth.

I posted the htop info -\> [How many rclone mount sessions should my server be running?](https://forum.rclone.org/t/how-many-rclone-mount-sessions-should-my-server-be-running/2128)

---

<div class="post-metadata">

**Author:** ![Aerya](https://forum.rclone.org/user_avatar/forum.rclone.org/aerya/32/420_2.png) [@Aerya](https://forum.rclone.org/u/Aerya)\
**Post date:** [May 19, 2017, 3:54pm UTC](https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347/3 "2017-05-19T15:54:53Z")

</div>

Thanks but I still can’t understand that load: 138 249 180. As this CT is running rClone/script only (rTorrent stopped).

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [May 19, 2017, 3:56pm UTC](https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347/4 "2017-05-19T15:56:55Z")

</div>

Because you are transferring 16 files, make that number lower. Try the default at 4 and work your way up or down.

---

<div class="post-metadata">

**Author:** ![Aerya](https://forum.rclone.org/user_avatar/forum.rclone.org/aerya/32/420_2.png) [@Aerya](https://forum.rclone.org/u/Aerya)\
**Post date:** [May 19, 2017, 3:58pm UTC](https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347/5 "2017-05-19T15:58:26Z")

</div>

I’ll go for that and get back to you.

---

<div class="post-metadata">

**Author:** ![Aerya](https://forum.rclone.org/user_avatar/forum.rclone.org/aerya/32/420_2.png) [@Aerya](https://forum.rclone.org/u/Aerya)\
**Post date:** [May 19, 2017, 11:34pm UTC](https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347/6 "2017-05-19T23:34:57Z")

</div>

Got it, the script runs too many times... this part didnt work.

> [@Aerya](#):
>
> if pidof -o %PPID -x "rclone-upload.cron"; then  
> exit 1  
> fi

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [May 20, 2017, 1:16am UTC](https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347/7 "2017-05-20T01:16:29Z")

</div>

That would do it too 🙂

Glad you found that as well.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [March 4, 2020, 12:38am UTC](https://forum.rclone.org/t/solved-rclone-move-script-leading-to-heavy-load/2347/8 "2020-03-04T00:38:48Z")

</div>

Closed on March 4, 2020, 12:38am UTC


