Posts

Showing posts from 2014

make: o: Command not found in Sysstat

Image
Today, I was trying to update my sysstat package to latest version i.e. 11.0. I have downloaded and start compiling the package. Now, during compilation process, when I fire make command, I got some errors like "make: o: Command not found". Errors : gcc -o cifsiostat -g -O2 -Wall -Wstrict-prototypes -pipe -O2 cifsiostat.o librdstats_light.a libsyscom.a -s o nls/af.gmo nls/af.po make: o: Command not found make: [nls/af.gmo] Error 127 (ignored) o nls/cs.gmo nls/cs.po make: o: Command not found make: [nls/cs.gmo] Error 127 (ignored) o nls/da.gmo nls/da.po make: o: Command not found make: [nls/da.gmo] Error 127 (ignored) o nls/de.gmo nls/de.po make: o: Command not found make: [nls/de.gmo] Error 127 (ignored) o nls/eo.gmo nls/eo.po make: o: Command not found make: [nls/eo.gmo] Error 127 (ignored) o nls/es.gmo nls/es.po make: o: Command not found make: [nls/es.gmo] Error 127 (ignored) o nls/eu.gmo nls/eu.po make: o: Command not found make: [nls/eu.gmo] Error 127 (ig...

Check Important information like Product-name, Version, codename etc in Jboss EAP 6 or Wildfly 8 using CLI.

Image
Sometimes, we need some information about the product we are using. Suppose, we want to know about the product version, name, codename or running mode in Jboss AS 7, Jboss EAP 6 or Wildfly-8.[0-1]. We can do all this easily using built in CLI utility. Below are the steps : 1.) Start your Application Server Instance in any mode(standalone/domain). Here, we are doing all this in standalone mode. root@lubuntu1:/data/wildfly-8.1.0.Final/bin# ./standalone.sh =========================================================================   JBoss Bootstrap Environment   JBOSS_HOME: /data/wildfly-8.1.0.Final   JAVA: java   JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true ========================================================================= 12:32:02,587 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final 12:32:06,242 IN...

Install monitoring Utilities like "sar" and "iostat" in Debian Based Distros

Image
Today, I was looking for "sar" (Report System and CPU performance) and "iostat" (Report Disk and IO Performance) on Debian Based Distro i.e. lubuntu. But didn't find the command, infact it gives me hint that which package contain this command. root@lubuntu1:~# iostat The program 'iostat' is currently not installed. You can install it by typing: apt-get install sysstat root@lubuntu1:~# Another, option if you want to know about that which package may contain specific command, just make use of "apt-cache". Just run below command to find out the related packages. Here, I am looking for "iostat". root@lubuntu1:~# apt-cache search iostat sysstat - system performance tools for Linux dstat - versatile resource statistics tool ganglia-modules-linux - Ganglia extra modules for Linux (IO, filesystems, multicpu) ifstat - InterFace STATistics Monitoring nicstat - print network traffic statistics pcp-import-iostat2pcp - Tool for import...

How to take JVM Heap Dump using jmap

We have different options for taking a heap dump of running JAVA process and then analyze those dump for any kind for memory leak. Today, We are going to do the same using " jmap " in-built utility provided with JDK. Using this you will get an advantage that you don't need to wait untill our JVM got crashed by using passing " -XX:+HeapDumpOnOutOfMemoryError " parameter to JVM process. We can capture current status using jmap as below: 1.) Find out the jmap location(only if your JAVA_HOME variable not defined)       #locate jmap 2.) After finding jmap location, move to that directory and run jmap to get live thread dump.       #./jmap -dump:live,format=b,file=[file location] [pid] For more details and options run the command with help option as below : # ./jmap -help Usage:     jmap [option] <pid>         (to connect to running process)     jmap [option] ...

View Information about installed packages in Debian Based Dostro(Ubuntu/Lubuntu).

Image
Some times we come to situations where we want to get information e.g. check if package is installed or not, if installed then all information related to that one. Today, we are going to discuss the same on Lubuntu 14.04.There can be number of ways as in linux we have flexibility use number of commands and combined one to get desired results. Here, we will discuss about two most common methods i.e. 1.) Using dpkg to get list of all installed packages. 2.) View all information about installed package. 1.) Using dpkg to get list of all installed packages.                dpkg(Debian Package Management System) is a package manager for all debian based systems. It is used to install, remove and list all the information about .deb packages. Mostly, dpkg package gets installed by default during installation time.       a.) View All installed Software using dpkg -l :   ...

Ubuntu 14.04 Installation

Image
Ubuntu 14.04 (Trusty Tahr) Released – Download Links and Installation Guide                                  So, Finally Ubuntu has launched its veriosn 14.04 code named “Trust Tahr” with Long Term Support. Ubuntu release its LTS version within every two years and get 5 years support. With its LTS release it get wider apoption from business side as compared to its less stable Server and Desktop releases which got released every six months. Ubuntu 14.04 Features There are some noticeable changes which are highlighted below. Kernel 3.13.x   stable version which have lots of updates in many technologies supports more devices, better power management and performance. For all changes have a look on Linux 3.13 GNOME Version: 3.10.4-0ubuntu5   based on Unity Firefox 28   default web browser LibreOffice 4.2.3.3   for office suite Thunderbird 2...