[gview file=”http://rmohan.com/wp-content/uploads/2014/06/SHARE-Anaheim-2014-v3.pdf”]
|
||||||
[gview file=”http://rmohan.com/wp-content/uploads/2014/06/SHARE-Anaheim-2014-v3.pdf”] TOTAL/USED/AVAILABLE memory in AIX #!/usr/bin/ksh #memory calculator um=`svmon -G | head -2|tail -1| awk {‘print $3’}` um=`expr $um / 256` tm=`lsattr -El sys0 -a realmem | awk {‘print $2’}` tm=`expr $tm / 1000` fm=`expr $tm – $um` echo “\n\n———————–“; echo “System : (`hostname`)”; echo “———————–\n\n”; echo “Memory Information\n\n”; echo “total memory = $tm MB” […] Before I get into details here is the bottom line. If you start MySQL on Solaris as a non-root (ie, mysql) user and for some reason you need to adjust the […] cat /proc/sys/fs/file-max 589420 The output tells us it is set to 589420. The vendor asked for this to be increased to 1639200. We can add change the value immediately by executing: # sysctl -w fs.file-max=1639200 To make this a permanent setting applied everytime the system reboots an edit of /etc/sysctl.conf file is required. Add: fs.file-max […] mkdir tcserver cd tcserver/ wget -q -O – http://repo.vmware.com/pub/rhel6/vfabric/5.2/vfabric-5.2-suite-installer | sh yum search vfabric [root@cluster1 vfabric-web-server]# yum search vfabric Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: centos.ipserverone.com * extras: centos.ipserverone.com * updates: centos.ipserverone.com ========================================================= N/S Matched: vfabric ========================================================= vfabric-5.2-repo.noarch : vFabric 5.2 repository configuration vfabric-administration-server.noarch : VMware vFabric Administration […] #!/bin/sh LOGFILE=/tmp/apache.log SCRIPT_DIR=~/bin logmsg () { echo $(date): $1 >> $LOGFILE } while read instance do if [ -x “${SCRIPT_DIR}/$instance” ] ; then logmsg “Recycle $instance…” “${SCRIPT_DIR}/$instance” start >> $LOGFILE 2>&1 else logmsg “Cannot find recycle script for $instance – not starting” fi done < “${SCRIPT_DIR}/active-servers” logmsg “Start script execution complete” #!/bin/ksh BASENAME=`basename $0` WAZZZ_HOME=/usr/WebSphere/AppServer JVVVM_BIN_DIR=$WAZZZ_HOME/profiles/node01/bin die_usage() { echo “usage: $BASENAME: <jvm name> <timeout> <hard retries>” exit $1 } [[ $# -eq 3 ]] || die_usage 111 JVVVM_NAME=$1 TIMEOUT=$2 HARD_RETRIES=$3 JVVVM_LOG_DIR=$WAZZZ_HOME/profiles/node01/logs/$JVVVM_NAME JVVVM_PID= $JVVVM_BIN_DIR/serverStatus.sh -all | grep ” $JVVVM_NAME” | grep -v grep | grep -v $BASENAME > /dev/null 2>&1 if [[ $? -ne 0 ]] then […] |
||||||
Copyright © 2024 - All Rights Reserved Powered by WordPress & Atahualpa |
Recent Comments