Databases Reference
In-Depth Information
Change the IP, username, and password with the appropriate
IP, username, and password of the MySQL database server
with which the lportal database is accessible.
5.
Apply the same changes on node-02 and then restart both the Liferay
Portal nodes.
We changed the database connection properties in the Liferay Portal coniguration
to use the JNDI-based data source. We deined the data source in ROOT.xml . We
used the c3p0 type connection pool. It internally uses the c3p0 connection pool
library. We can also use other types of connection pools like DBCP or Tomcat. As
per the given coniguration, we deined the maximum connections to 75 and
minimum connections to 10. Connections will be created in bunches of ive. It is
recommended to start with the given connection pool coniguration and tune the
same during load testing.
JVM coniguration
The Java Virtual Machine coniguration affects the performance of any Java-based
application greatly. The key areas of JVM coniguration include:
• Heap coniguration
• Garbage Collector coniguration
Both of these areas affect JVM performance a great deal. Let's learn Garbage
Collection and Heap coniguration best practices in terms of Liferay Portal.
Garbage Collection
Garbage Collection is a process which runs frequently within the JVM and destroys
objects which are unused. Java provides different types of Garbage Collectors.
We can choose one of them by providing the JVM arguments. Java 6 provides the
following three types of Garbage Collectors:
Serial Collector : This runs a single thread to perform the whole Garbage
Collection activity
Parallel Collector : This performs minor Garbage Collections in parallel and
provides better performance
Concurrent Collector : This garbage collector performs most of the stuff
in parallel and so will have very little pause in the application because of
Garbage Collection
 
Search WWH ::




Custom Search