How to use Arthas in Docker container
What can Arthas do for you?
Arthas is an open source Java diagnostic tool of Alibaba, which is deeply loved by developers.
When you encounter the following similar problems and are helpless, Arthas can help you solve them:
Which jar package is this class loaded from? Why are all kinds of related exceptions reported?
Why didn't the code I chan ...
Posted by oakld on Thu, 02 Dec 2021 05:29:25 +0100
Zabbix enterprise class open source monitoring solution
1, Zabbix
1. Necessity of monitoring system
As an O & M, you need to be able to use the monitoring system to view the server status and website traffic indicators, and use the data of the monitoring system to understand the results published online and the health status of the website.
2. Function of monitoring software
With an ex ...
Posted by kokomo310 on Wed, 01 Dec 2021 14:24:13 +0100
Cross compilation and configuration of perp from scratch
summary
perp is an excellent and low resource consuming open source multi process management framework, which is mostly used in embedded system environment. Since there are few resources on the Internet other than those on the official website, I'll record my previous experience and share it with you.
Compared with restart D, perp has mor ...
Posted by Fly on Wed, 01 Dec 2021 05:13:37 +0100
Linux new character device driver
1, Assign and release equipment numbers
Using register_ The chrdev function only needs to give a master device number when registering a character device, but this will cause two problems:
① . it is necessary to determine which main equipment numbers are not used in advance.② . all secondary equipment numbers under a primary equipment number ...
Posted by phpwizard01 on Wed, 01 Dec 2021 03:59:08 +0100
mysql manual installation
1. Download the installation package and prepare the environment
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.30-linux-glibc2.12-x86_64.tar.gz# Create the following directory (directory location customized, no mandatory)
Software path: /opt/mysql/
Data Path: /data/mysql/data/
Binary Path:/data/mysql/binlog/
Communication path: ...
Posted by mikeq on Tue, 30 Nov 2021 22:29:44 +0100
View Stack Information for gdb Debugging
outline
backtrace (abbreviated as bt)
Prints all information about the current function call stack.
backtrace
n is a positive integer that only prints stack information at the top of the stack.
backtrace <-n>
The -n table is a negative integer indicating that only the stack information at the bottom of the stack is printed.
frame ...
Posted by BIOSTALL on Tue, 30 Nov 2021 19:27:03 +0100
Linux signal learning notes
Linux signal learning notes (1)
Program running
there are several ways to abort this program when the following code is running.
#include<unistd.h>
#include<stdio.h>
using namespace std;
int main()
{
for(int i=1;i<=100;i++)
{
printf("time of programe running:%ds\n",i);
sleep(1);
}
}
1. &ems ...
Posted by jokerfool on Tue, 30 Nov 2021 17:14:29 +0100
IPTables table, chain, rule basis
Iptables firewall is used to manage packet filtering and NAT rules. Iptables comes with all Linux distributions. Understanding how to set up and configure iptables will help you manage your Linux firewall effectively.
Iptables tool is used to manage Linux firewall rules. At first glance, iptables can look complex (or even confusing). However, ...
Posted by nemiux on Mon, 29 Nov 2021 15:38:30 +0100
Summary of 40 commands necessary for Linux operation and maintenance
1. Delete 0 byte file
find -type f -size 0 -exec rm -rf {} \;
2. View process
Sort by memory size
PS -e -o "%C : %p : %z : %a"|sort -k5 -nr
3. Sorted by CPU utilization from large to small
ps -e -o "%C : %p : %z : %a"|sort -nr
4. Print the URL in the cache
grep -r -a jpg /data/cache/* | strings | grep "http:" | awk -F'http:' '{print "ht ...
Posted by $Three3 on Mon, 29 Nov 2021 04:53:23 +0100
Thread synchronization and mutex
The concept of thread synchronization
Thread synchronization means that when a thread makes a function call, the call will not return until the result is obtained. At the same time, other threads cannot call this function to ensure data consistency.
Examples of thread synchronization
Create two threads, let the two threads share a glo ...
Posted by scross on Mon, 29 Nov 2021 00:54:03 +0100