Configure VisualVM on Ubuntu 14.10

VisualVM is a kind of data gathering software for application which are running under the Java Virtual Machines (JVM). This retrieve information related to the Java application, like heap size, heap dumps, RAM utilization, CPU utilization, thread count and so on. There is an special interface that they use for getting information from application ends and gathered information is analyzed and displayed on the VisualVM dashboard. Remote application also can be monitored via VisualVM. Specially user can get snapshot of heat dumps also.
Follow the steps to install VisualVM on Ubuntu server.
# sudo apt-get install visualvm
# which viaualvm
# java -version
 
You can check the java is up & running up using the commands given above. And for testing purpose, I’m here using a Java testing application in the same host. Let’s open the visualVM and configure it to get the information of running applications.
# visualvm
 
if you need any help related to visualVM you can us,
# visualvm – -help

After open the VisualVM, then you will see the terms and condition that should be accepted. Please accept it and go ahead.

C-UsersmaduradPicturesVisualVm License Agreement

After you agreed to the license agreement you will be displayed the VisualVM home page. In this home page you can see the options that you are having on VisualVm. In the Left side all the options are available. The image given below shows the sample home page of VisualVM.
C-UsersmaduradPicturesVisualVM HomePage
To test an application, here I’m going to run a test application which contains a digital clock.

DemoApp

Download this file and extract, then run the testing java application on a terminal, then you will see the Digital clock on a particular application window.
# sudo unzip demo.zip
# cd src/
# javac DemoApp.java
# java DemoApp
 
After running the testing application, you will see the analytics of the application on the VisualVM dashboard. Locally running all the applications are added automatically to the VisualVM. Sample dashboard image is given below.
C-UsersmaduradPicturesVisualVM dashboard.png
In Visual VM dashboard consist of the four tabs. The descriptions for each tabs are given below.
  • Overview : Contains PID, Host name, arguments, heap dumb, so on, this provides basic idea of the running application.
  • Monitor : Processor consuming, memori consuming likewise utilisation detail.
  • Threads : List of entire threads, state of threads, running time, and so on.
  • Sampler : Sampling information, like CPU, memory.
 
Finally, I can state that VisualVM can be used to get analytics and mange Java based applications for maximum throughput.

Configure VisualVM on Ubuntu 14.10

VisualVM is a kind of data gathering software for application which are running under the Java Virtual Machines (JVM). This retrieve information related to the Java application, like heap size, heap dumps, RAM utilisation, CPU utilisation, thread count and so on. There is an special interface that they use for getting information from application ends and gathered information is analysed and displayed on the VisualVM dashboard. Remote application also can be monitored via VisualVM. Specially user can get snapshot of heat dumps also.

Follow the steps to install VisualVM on Ubuntu server.
# sudo apt-get install visualvm
# which viaualvm
# java -version

You can check the java is up & running up using the commands given above. And for testing purpose, I’m here using a Java testing application in the same host. Let’s open the visualVM and configure it to get the information of running applications. Continue reading

Tomcat Server Load-Balancing Using Multiple Tomcat Server Instances in Ubuntu

Hello, in here I’m going to describe how to configure load balancing among multiple Apache tomcat servers, before write this article I searched on web and found many solutions but nothing worked correctly, getting some errors. So then somehow I managed to set up tomcat server load balancing. So here are the steps that I followed to configure load balancing on tomcat servers.

Before configure multiple server load balancing, you have to install and configure multiple tomcat server instances correctly, that has been described on my previous blog post about “How to configure multiple tomcat server instances”
Continue reading

Configure A Upstart File In Ubuntu Server.

Hello Everyone today I’m going to show you how to create a simple upstart file in Ubuntu server for .jar file. So let’s look at the steps for achieve this.

  1. Login to the Ubuntu Machine and go to “/etc/init/” then create a file with your project name and the file extention should be .conf (In here let’s assume the project name is project-test)
    $ cd /etc/init/
    $ sudo vi project-test.conf

    Continue reading

Odoo 8 | Installing And Configuring in Ubuntu Server.

Hello All, Here, I’m going to show you how to install new version of “Odoo” ERP system on Ubuntu server. New version is “Odoo v8” , which contains more reliable features. Now it has been very easy to install and configure. Before installing the Odoo v8 let’s keep a clean installation on Ubuntu latest server version. The Ubuntu latest server version is Ubuntu Server 14.04. In here I have a clean Installation of Ubuntu Server 14.04. Continue reading

Installing and Configuring Multiple Tomcat Server Instances In Ubuntu Server.

Hello all, today I ‘m taking you through the steps to configure multiple server instances of Apache Tomcat server in a single machine. In this case I have taken Ubuntu server 12.04 version to be demonstrated. So first of all let’s look at the what are the steps for the server. Continue reading

Hosting Virtual Hosts with Nginx Server on Ubuntu

Hello, here I’m, going to show you how to install Nginx server and configure it for hosting web sites. First of all let’s see what is Nginx server. Actually it is an open-source web server with high performance, stability, low resource utilized with simple configurations.

Following steps show you how to install and configure Nginx server to hosting websites.

Installing Nginx on Ubuntu server

Continue reading

How to install and configure “Monit” management system on Ubuntu.

Hello all, Today I’m going to install and configure the “Monit” service monitoring system on Ubuntu server instance.

Monit “is an free an open source software which is a management system for monitoring and take decisions on some of critical points. Specially monit can be used to monitor customized services which are developed by developers. As an example let’s assume if a developer make a service as “service-1” that can be monitored and controlled like start, stop, restart the service by the Monit. And also every actions are notified by the e-mails and administrator can customized the alert conditions and alert notification settings.

This tutorial will help you install and configure the Monit service monitoring system on Ubuntu server. The steps are given below.first get updates on Ubuntu server, then install the “monit” on the server.
1. In first step, Monit has to be installed via Ubuntu terminal.

 $ sudo apt-get update
 $ sudo apt-get install monit

2. After installation “monit” configuration should be done using the /etc/monit/monitrc file.

$ sudo nano /etc/monit/monitrc

# set httpd port 2812 and
# use address localhost # only accept connection from localhost
# allow localhost # allow localhost to connect to the server and
# allow admin:monit # require user 'admin' with password 'monit'
# allow @monit # allow users of group 'monit' to connect (rw)
# allow @users readonly # allow users of group 'users' to connect readonly

In the above section monit administrator have to enable the port (2812) and the whatever the IP address for accessing the Monit system.

3. Then restart the service monit service. Continue reading

How to install OpenERP v8 on Ubuntu Server.

Hello all, today I’m going to describe about installing and configuring OpenERP Version 8 which is the latest version of OpenERP (for more details: https://www.odoo.com/ ). In here we need to care about the requirement of the OpenERP. The followings are the requirements.

  1. Ubuntu/Linux Server
  2. Apache Web Server.
  3. Postgre SQL Server
  4. Python

From here onward i am going to show you step by step on how to install all the requirements and configurations.

  1. In this step let’s install the necessary Python libraries for the Ubuntu server.
     sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi
  1. In here we need a specific user account for accessing openerp server because that user specific to run the OpenERP application. So we need to add the “openerp” user in to the system.
     sudo adduser --system --home=/opt/openerp --group openerp
  2. In this step I am going to install the PostgreSQL database server and configuring it.
 sudo apt-get install postgresql
 sudo su - postgres
 createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
 

In here enter a password for accessing to the Database and make sure to keep remembering.

  1. Exit from the current shell and let’s install the OpenERP v8 server on our Ubuntu server. Continue reading

How to use RSA keys for login to remote machines using SSH without Passwords on Ubuntu.

Hello Guyz… :).. Today In this tutorial I’m going to manage the remote Ubuntu/Linux machines via SSH key pairs. First of all let’s assume there are two Ubuntu servers are available, those are called QA-Server and PP-Server. (Please note, these all commands are run on QA-Server Terminal)

In order to create new user on QA-Serever the server use the following bash commands are used on QA-Serever.

$ sudo useradd -m -s/bin/bash <username>
$ sudo passwd <username>

Under the username you can add whatever the username and then add a relevant password for the created user. Continue reading