Ethereum: Guide to observe active relationships at Linux
As a user of the popular Cryptocurrency platform Ethereum, he is probably aware that he is not only limited to the purchase and sale of digital devices. It also serves as a decentralized application (DAPP) network, allowing developers to build extensive applications, from simple websites to complex games.
However, with high-performance relationships and robust scalability, users can enjoy smooth interactions between Ethereum accounts and other intelligent contracts on the network. However, one aspect that can affect performance is active relationships: how many are set on the device or server?
In this article, we examine the possibilities of monitoring and checking active relationships on the Linux systems running Ubuntu.
** What are active relationships?
Active connections apply to proven TCP/IP connections between the two devices. In a Linux system, any process that is open to incoming relationships (ie not in the background or idle) contributes to the “active number”. However, it is essential to note that this number does not necessarily mean the use of CPU or network activity.
Methods to observe active relationships at Linux
Here are two methods to check active relationships on the Linux system that runs Ubuntu:
Method 1: Using the lsof
command
The lsof
command is an effective tool for making and monitoring the file description. You can use all open files, including active relationships.
`Bash
$ Lsof -i: 80 | GREP “founded”
`
- This command lists all TCP connections to port 80 (default HTTP port) and tested connections.
- The
Grep
option ("set"
) filters out the output, highlighting the connections.
Method 2: Using the “SS” command
The “SS” command is a more traditional tool to monitor the network. You can use it to list all active TCP connections.
`Bash
$ ss -tlnp | GREP “founded”
`
- This command lists all TCP connections open in the current process tree, checking the proven connections.
- The
Grep
option ("set"
) filters out the output, highlighting the connections.
** Why observe active relationships?
Observing active relationships can help:
- Optimization of Network Power : By defining which processes cause high network activity, it can optimize resource use and improving the total power of the system.
- Troubleshooting of problems
: If a problem arises with Ethereum connection or applications on the network, monitoring of active relationships can explore traces of the problem.
Conclusion
Observing active relationships with Ubuntu running Linux systems provides valuable insight into the system’s behavior and helps optimize performance if necessary. Regardless of the use of “LSOF” or SS “, these tools provide a comprehensive picture of which processes are actively involved in the network, allowing them to make reasonable decisions on resource distribution and troubleshooting issues.
Regularly reviewing active relationships can provide smooth interactions between Ethereum accounts and other smart contracts on the network. Happy debugging!