Clear Linux Buffer/Cache For 3Proxy

Job ID: 30774335

Budget: $30 – $250 USD

Hello,
I need to clear the Linux buffer for 3proxy without restarting (close and open it).
I tried a lot of solutions here and there like:

#!/bin/bash
# Note, we are using "echo 3", but it is not recommended in production instead use "echo 1"
sudo sh -c 'echo 1 >/proc/sys/vm/drop_caches'
sudo sh -c 'echo 2 >/proc/sys/vm/drop_caches'
sudo sh -c 'echo 3 >/proc/sys/vm/drop_caches'
su -c "echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared'" root
sudo sh -c 'swapoff -a'
sudo sh -c 'swapon -a'

But it's not clear the system buffer for 3proxy.

All the best
Related categories: C Programming Linux Shell Script C++ Programming UNIX