Posts

Showing posts from November, 2013

JVM Garbage Collection and Optimizations

Image
Overview When troubleshooting systems for performance-related issues, memory optimizations are a place that needs a deep analysis of what each system stores in the memory, how long those are stored, and access patterns. This post is to keep a note on the background information and valuable points to note in such an effort, specific to Java-based implementations as a deep understanding of the JVM behaviors is very beneficial in the process.

Java language provides much convenience to the developers by taking care of the memory management to a great extent letting the focus be on the rest of the logic. Still having a good understanding of how Java does this underneath, rationalize several best practices we follow in Java implementations and help design the programs better and think seriously on some aspects that can later lead to memory leaks and system stability in the long run. Java Garbage Collector has a big role in this been responsible for freeing up memory by removing memory gar…

Install Liferay over a MySQL Database

Image
With this post I will share how to get started with Liferay Portal including initial configurations and login.

Environment: Linux

Pre-requisites :

MySQL installation (Refer this post for steps to install MySQL)Java 1.6 or above
Let's download the Liferay pack from here.

I got the Community Edition of bundle with Tomcat.

Extract it to a folder of your choice, let's call the extracted folder LR_HOME. Ok, the resources are ready.. Let's go..

MySQL Login to MySQL. If you just installed following command will do.

mysql -uroot -p
Enter the password (default root).

Create database to be used for Liferay.

create database lportal;
Create user for Liferay.
create user 'lr_user'@'localhost' identified by 'user123';

Give access to the created database for this user.
grant all privileges on lportal.* to 'lr_user'@'localhost' with grant option;
Mysql work is over now. Let's go to Liferay.

LifeRay Go to LR_HOME.
Inside LR_HOME create file with the …