What is conntrack and how can I check how many sessions I am using?

Conntrack is a table that stores information about all connections to/from a VPS. Here is a good explanation on how it works: http://www.rigacci.org/wiki/lib/exe/fetch.php/doc/appunti/linux/sa/iptables/conntrack.html

A normal Linux OS has a maximum of 65536 conntrack sessions by default, these sessions all require memory which is used by the host node and not by the VPS so setting this limit to high can impact the whole node and allow users to use more RAM than their VPS has allocated by eating up the host's RAM. Any VPS that uses over 20000 conntrack sessions will automatically be suspended by our automated system.

A typical VPS should never use more than 10000 sessions at any given time although we do have some busy NTP servers that peak at 20000 once in a while. To check your conntrack sessions, run the following command in your VPS: cat /proc/net/nf_conntrack

Was this answer helpful?

 Print this Article

Also Read

What is vSwap?

vSwap, or Virtual Swap, is a new memory management feature in RHEL 6 (CentOS 6.0) that allows an...

How do I change my cPanel account's domain?

Unfortunately cPanel does not allow clients to change their own domain name so please open a...

What is a Layer 7 attack and how can I detect it?

A Layer 7 attack is an attack specifically against the application level (the 7th layer of the...

How do you handle DoS attacks?

We offer DDoS protection in our Los Angeles and Portland locations. All other locations will...

Why am I unable to run yum in CentOS?

The most common reason is a memory issue caused by a plugin installed by default. In order to...

Powered by WHMCompleteSolution