分类 C/C++/Java/Delphi articles

使用Correlation ID定位微服务问题

软件架构微服务化后,虽然软件间的耦合性更好了,不过在出现问题后,增加了定位问题的困难,所以就出现了 Correlation ID 来方便问题定位。首先我们看下关于 Correlation ID 在流程中的传输过程如下图:的定义描述。 The correlation identifier is a unique identifier attached to each request in architecture. The correlation ID is not an error number or code. Simply, it’s a GUID (globally unique identifier) that’s automatically generated for every request. There is no standard format for the correlation……

Continue reading

Android APK 反编译原理与工具汇总

Android APK 反编译要做两件事:一是要将apk里的dex文件转换成Jar包,再通过工具查看编译前的java源文件。二是通过工具查看apk里对应的AndroidManifest.xml、resources.arsc、res各布局文件等二进制文件。在开始反编译之前我们先看下APK文件的构成。 一……

Continue reading

比较重要的JVM参数

1. Overview In this quick tutorial, we’ll explore the most well-known options which can be used to configure the Java Virtual Machine. 2. Explicit Heap Memory – Xms and Xmx Options One of the most common performance-related practices is to initialize the heap memory as per the application requirements. That’s why we should specify minimal and maximal heap size. Below parameters can be used for achieving it: 1-Xms<heap size="">[unit] 2-Xmx<heap size="">[unit] 3</heap></heap> Here, unit denotes the unit in which the memory (indicated by heap size) is to be initialized. Units can be marked as ‘g’ for GB, ‘m’ for MB and ‘k’ for KB. For example, if we want to assign minimum 2 GB and maximum 5 GB to JVM, we need to write: 1-Xms2G……

Continue reading

Java中使用 JSON

虽然JAVA是相当流行的编程语言,但做为运维人员,基本很少用JAVA语言,不过近期因为某对接项目开发厂商使用JAVA开发的,在某些数据对接时,给提提到使用的数据类型为JSON,半天讲不明白,没办法,自己用临时学到的蹩脚JAVA写了一个处理json的demo。这里使用到的json模……

Continue reading

根据IP和掩码计算网段

一、需求 在写某个脚本时,需要用到使用该网段的任一地址,加上掩码位就可以计算出该网段所有的地址。再结合fping可以获取该网段内所有未被使用的地址。该需求实现时会涉及到各种计算,比较麻烦。所以先放G网上检索下有没有可以直接“拿来的”代码。找了几个代码,必须都是先给出第一个IP ,再加……

Continue reading

Golang的安装

做为运维人员,使用python语言足矣,理论上是无需了解golang的。不过最近发现一个新潮的监控系统都是基于golang进行开发的,如小米公司的Open-Falcon(github项目页) 、stack exchange 公司的Bosun (github项目页)。 一、Go的三种安装方式 Go有多种安装……

Continue reading

Java GC工作原理

一、GC的基本原理 GC是什么?为什么要有GC呢? GC是垃圾收集的意思(GarbageCollection),内存处理是编程人员容易出现问题的地方,忘记或者错误的内存回收会导致程序或系统的不稳定甚至崩溃,Java提供的GC功能可以自动监测对象是否超过作用域从而达到自动回收 内存的目的……

Continue reading

linux终端下的SecureCRT sshc

这个程序纯属是偶然看到的,看博客上显示的语言来看,应该是一个俄罗斯的技术大拿写的。程序非常小,适合在终端下使用,在centos/redhat平台下测试OK,不过在ubuntu下测试时有问题,也没细究,还是直接上内容吧。 一、下载安装 1[root@localhost src] wget http://cronylab.pl/codes/sshc-0.8.tar.gz 2[root@localhost src] tar zxvf sshc-0.8.tar.gz 3[root@localhost src] cd ssh_connector-0.8 4[root@localhost ssh_connector-0.8]# sh install.sh 5[#] Uncompressing iniparser-2.17.tar.gz 6[#] Iniparser compilation in progress...……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI AWS Ansible Atlassian Azure BMC Blockchain Brocade CDH5 CL210 Cobbler Confd C语言 DDOS DISTINCT DNS Duckdb EKS ELK GCP Ghost Git Glusterfs Go Godaddy Grafana HBA HCIE Hotspot HttpWatch IBM IIS IOS InfluxDB Ingress InnoDB JavaScript Jinja2 KVM Keepalived Mplayer MySQLdb Netlify OpenResty PM PostgreSQL QoS RH318 RH442 RHCA RHCE RHEV RSA SRE SecureCRT Statuscode SublimeText2 TC Telecom Tencentcloud VBA aira2 alpine android anpic apache apm apparmor appfog apr apt-get aria2 array atop audit awk awstats axel backdoor backup bamboo bash bat benchmark bigdata bin bind bitwise book bootstrap bsd c1000 cache capistrano catlog centos centos7 chatops chattr check_mk checkinstall cisco clearall clickhouse cloud-desktop cmdb cms collectd comm compress conver corosync cpu crontab crunchbang css curl date decode dell desktop devops df dhcp diff diskpart django docker dos2unix dpkg drupal etcd excel fail2ban fastcgi fdisk fiddler find firewalld flask flvtool ftp function fuser geek gin github gitlab glances golang google gooupadd graphviz gravatra grep grub2 hadoop haproxy hardware heartbeat helm hexdump hhvm history html http/html/web httplogs https huawei huaweicloud hugo icmp iconv ifconfig inotify iopp ipmitool iptables iredmail iscsi isito it-news java jdk jenkins jira join joomla k3s k8s kdump kernel kingate lamp last leetcode lib light-http linux linux高级篇 ln ls lsi lsof lvm lvs mac mail man mark markdown matplotlib maven memcached microservice mimikatz mkdocs mkpasswd mmonit mod_jk mongodb monit monitor mono moodle mosh mount mpm mrtg mtr my.cnf mysql mysqlbinlog mysqld_multi mysqldump mysqlhotcopy nagios nc nethogs nexus nfs nginx nmon nocatlog node.js nrpe ntfs ntop ntp obs ocr open-falcon openbox opencv openldap openssl openstack oracle oswatch paas pacemaker pam pandas parted pcp pcre pdf percona perl pexpect pgrep php php-fpm ping plsql develope postfix powershell prettify proc prometheus puppeteer pushd pwgen pxe pyecharts python python模块 radmin raid rdesktop read redhat redis redmine regex rh134 rhel7 rhel8 rm rman rootkit route rpm rpmforge rrdtool rsync rsyslog safe saltstack samba scapy screen sed selenium selinux seo seq session set shc sheepdog shell shopt sitemap skydns smokeping snffier snmp socket soft sort spider sql sqlserver squid ss ssh sshpass strace strings su sudo suse svn sysbench syslog-ng sysstat systemd t tar tcpcopy tcpdump tech telnet tengine test testlink threads time tmux tomcat touch tr tsar twisted ubuntu udev ulimit unix unixbench user-agent useradd varnish vbs vercel vi vim visudo vmstat vmware vnc voice vpn vscode vsftp vsftpd vue watchdog web webcam webistrano wget wiki windows wol wordpress workshop wsl x-windows xampp xcache xmllint xtrabackup yule yum zabbix zeromq zip zonetime zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 意林 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta