Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Liferay 6.x Portal Enterprise Intranets Cookbook
  • Table Of Contents Toc
Liferay 6.x Portal Enterprise Intranets Cookbook

Liferay 6.x Portal Enterprise Intranets Cookbook

By : Filipowicz
4.8 (4)
close
close
Liferay 6.x Portal Enterprise Intranets Cookbook

Liferay 6.x Portal Enterprise Intranets Cookbook

4.8 (4)
By: Filipowicz

Overview of this book

If you are a Java developer or administrator with a technical background and want to install and configure Liferay Portal as an enterprise intranet, this is the book for you. In short, reusable recipes help you realize business goals as working features in Liferay. This book will also give you useful hints on how to easily improve the default functionality of the system and its performance.
Table of Contents (14 chapters)
close
close
13
Index

JVM tuning


JVM tuning is an operation that should be done after performance tests or during production. JVM configuration affects the Java application's performance. There are two necessary configurations:

  • Memory settings (such as heap configuration)

  • Garbage collector settings

There are a lot of publications about JVM tuning. Thus, in this recipe, we will only mention the main aspects.

How to do it…

Every JVM setting can be set in JAVA_OPTS (Java Environment Options). A great place to do it is in the ${TOMCAT_HOME}/bin/setenv.sh file.

First, let's set a proper garbage collector. The best option for portal systems is Concurrent Collector or G1 (in Java 8). These garbage collectors perform most of their work concurrently with only a small period of stop-the-world time. These garbage collectors give the best performance. The typical setting is as follows:

JAVA_OPTS = "$JAVA_OPTS -XX:+UseParNewGC -XX:+UseConcMarkSweepGC 
-XX+CMSParallelRemarkEnabled -XX:ParallelGCThreads=8 
-XX:+CMSScavengeBeforeRemark...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Liferay 6.x Portal Enterprise Intranets Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon