MySQL-Master-Master-Replication

Master-Master replication, or “Multi-Master” replication has two or more hosts that are both master and slave to each other. We use Master-Master replication for high availability. If we make changes to one MySQL host, then the changes are replicated to the other host, and vice versa. We can also layer on top an IP virtual… Continue reading MySQL-Master-Master-Replication

Published
Categorized as blogging Tagged

Java process monitoring with visual VM

Start up Jstatd on the server /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64-debug/bin/jstatd -J-Djava.security.policy=/home/admin/.jstatd.all.policy& cat /home/admin/.jstatd.all.policy grant codebase “file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64-debug/lib/tools.jar” { permission java.security.AllPermission; }; Install and start visualvm on your local https://visualvm.github.io/download.html Start the tunnel to the remote server ssh -v -D 9696 @ Setup SOCKS proxy on the VISUALVM app. localhost 9696 Add remote host using the remote IP.

Published
Categorized as blogging

jvmtop

How do you monitor memory usage of java threads. It helps you track the internal memory usage running java processes Use opensource jvmtop – https://github.com/patric-r/jvmtop Installation is simple Download https://github.com/patric-r/jvmtop/releases/download/0.8.0/jvmtop-0.8.0.tar.gz Untar tar -xvz jvmtop-0.8.0.tar.gz set JAVA_HOME in the script – tip: Look for tools.jar in the lib folder export JAVA_HOME=/home/admin/java/jdk1.6.0_31/ Start sh jvmtop.sh      … Continue reading jvmtop

Published
Categorized as blogging

Create a md5 hash password

Here are the steps to create an MD5 hash password To use in linux shadow file or when you want to update the password somewhere You will need “mkpasswd” If your server seem to be missing the mkpasswd command, install it using yum. yum install expect Create the password and update for the user in… Continue reading Create a md5 hash password

Published
Categorized as blogging

Grep command for windows

Here is how you do grep in windows using powershell. PS G:\> Get-ChildItem -Path G:\messages\processed | Select-String -Pattern “string pattern” | Measure-Object -Line

Published
Categorized as blogging

Intall AwsCli for amazon cloud commandline

You could very well find the well documented amazon site at the url below. But my idea is to have a quick reference document without reading all the stuff 🙂 Note: Amazon Linux AMI already include the Amazon EC2 CLI tools. curl -O https://bootstrap.pypa.io/get-pip.py python get-pip.py pip install awscli Details from the command line Get… Continue reading Intall AwsCli for amazon cloud commandline

Published
Categorized as blogging

AWS Billing access to IAM user

We can enable billing access to an IAM user account. The access is disabled by default on all aws accounts. First need to Activate IAM Access from the My Account > IAM user access to Billing informationÂť, when you are logged in as root. https://console.aws.amazon.com/billing/home?#/account If you do not do the above step, even if your… Continue reading AWS Billing access to IAM user

Published
Categorized as blogging

How to get around the annoying error: The system administrator has set policies to prevent this installation.

Are you getting the error while trying to install a particular MSI package and not while doing any other. Then I was also in the same boat. I had this error on my home laptop which is running the Windows 10 version. I have tried enabling the Administrator user by running the following command in… Continue reading How to get around the annoying error: The system administrator has set policies to prevent this installation.

Published
Categorized as blogging

Basic solaris commands cheatsheet

List all services svcs List all services including service instances that are temporarily disabled svcs -a List the process associated with a service svcs -p <service name> -bash-3.2$ svcs -p sun-apache22 STATE STIME FMRI online May_11 svc:/network/http:sun-apache22 10:33:59 17057 httpd 10:56:00 21257 httpd May_11 28952 httpd -bash-3.2$ ps -ef |grep 17057 webservd 17057 28952 0… Continue reading Basic solaris commands cheatsheet

Published
Categorized as blogging