<p>Have you ever thought of looking through your host's Acceptable Use Policy regarding CPU usage? You're breaking their terms so it's no big surprise that your process keeps getting killed. I'm honestly surprised that you haven't been suspended yet for it. To quote:</p>

<p>CPU Usage
Every vps comes with a number of CPU cores that client has access to. The said CPU cores are not dedicated to any vps. Client may not use more than 85% of one CPU core per process thread for more than 10 minutes. Client may not use 100% of one CPU core for more than 2 minutes. When CPU abuse is detected by our automatic programs, process will be killed and/or vps stopped/suspended, and the above Resource Abuse policy will be enforced. </p>

<p>Find a host that allows cryptocurrency mining, or even better- rent a dedicated server.</p>

CC BY-SA 3.0
2013-12-02T22:52:10.833Z
2013-12-02T22:52:10.833Z
Erika
<p>Indeed you can limit CPU number to use with -t option. You can get your allowed CPU core number by the command</p>

<pre><code>$ cat /proc/cpuinfo
</code></pre>

<p>You will see core0, core1, core2 ... So with max number core n it means you have n+1 cores dedicated to you. On the other hand you can take the command in an infinite while loop for start over and over again even if you are offline. The command is:</p>

<pre><code>$ while(:); do ./minerd &lt;options_here&gt;; done
</code></pre>

<p>But as Erica stated (and I stopped mining in my VPS immediately after I read her comment) it's really not a good idea. Up to now I had one VPS reboot and services shut down but I thought it was because of some other reason. I hope they won't punish me after I stopped running the miner.</p>

<p>So thank you Erica for your warning. You saved my server and possibly a lot of others.</p>

CC BY-SA 3.0
2014-12-02T10:57:06.873Z
2014-12-02T15:50:51.227Z
2014-12-02T15:50:51.227Z
Bedri Özgür Güler
<p>On my vps I decided to start mining litecoin because I wasn't really using the server for anything. I thought, why not?</p>

<p>I ran the cpuminer script with the correct command line arguments and it connects to the mining proxy fine. It mines like normal for a few minutes.
<img src="https://i.sstatic.net/Hk2ui.jpg" alt="enter image description here"></p>

<p>It works pretty well and then the script just says Killed and gives me the command line. I can run the same command again and mine litecoin for a few minutes and the same thing happens. I think this is the work of my vps hoster (vpscheap.com if it helps). What could be causing this and is there any way to get the script to automatically restart when it is killed? Any help is appreciated.</p>

<p>p.s the server is ubuntu 13.04-x86-64  </p>

<litecoin><server><linux><ubuntu><scrypt>
Scrypt server mining process killed
markd
# Scrypt server mining process killed

(Asked by: username_0 on 2013-11-29)

On my vps I decided to start mining litecoin because I wasn't really using the server for anything. I thought, why not?

I ran the cpuminer script with the correct command line arguments and it connects to the mining proxy fine. It mines like normal for a few minutes.
![enter image description here](https://i.sstatic.net/Hk2ui.jpg)

It works pretty well and then the script just says Killed and gives me the command line. I can run the same command again and mine litecoin for a few minutes and the same thing happens. I think this is the work of my vps hoster (vpscheap.com if it helps). What could be causing this and is there any way to get the script to automatically restart when it is killed? Any help is appreciated.

p.s the server is ubuntu 13.04-x86-64

**Tags:** litecoin, server, linux, ubuntu, scrypt


---

## 2 answers

### Answer by username_1 on 2013-12-02. Score: 1

Have you ever thought of looking through your host's Acceptable Use Policy regarding CPU usage? You're breaking their terms so it's no big surprise that your process keeps getting killed. I'm honestly surprised that you haven't been suspended yet for it. To quote:

CPU Usage
Every vps comes with a number of CPU cores that client has access to. The said CPU cores are not dedicated to any vps. Client may not use more than 85% of one CPU core per process thread for more than 10 minutes. Client may not use 100% of one CPU core for more than 2 minutes. When CPU abuse is detected by our automatic programs, process will be killed and/or vps stopped/suspended, and the above Resource Abuse policy will be enforced.

Find a host that allows cryptocurrency mining, or even better- rent a dedicated server.


---

### Answer by username_2 on 2014-12-02. Score: 0

Indeed you can limit CPU number to use with -t option. You can get your allowed CPU core number by the command

```
$ cat /proc/cpuinfo

```

You will see core0, core1, core2 ... So with max number core n it means you have n+1 cores dedicated to you. On the other hand you can take the command in an infinite while loop for start over and over again even if you are offline. The command is:

```
$ while(:); do ./minerd <options_here>; done

```

But as Erica stated (and I stopped mining in my VPS immediately after I read her comment) it's really not a good idea. Up to now I had one VPS reboot and services shut down but I thought it was because of some other reason. I hope they won't punish me after I stopped running the miner.

So thank you Erica for your warning. You saved my server and possibly a lot of others.


---

