Foros de discusión

Perfomance Issue in the Liferay deployment of JBoss Cluster Eniv

thumbnail
tr nethani, modificado hace 14 años.

Perfomance Issue in the Liferay deployment of JBoss Cluster Eniv

New Member Mensajes: 19 Fecha de incorporación: 10/06/09 Mensajes recientes
Hi,

For our environment, we have to deploy the Liferay in JBoss cluster. The deployment is fine and the Liferay is started working fine. The problem that
We are facing is, it took 15 mins to start the server. It took 10 mins to start the server if it is deployed in the non cluster environment..

Kindly suggest us what should be done to improve the performance. The Server configuration that we are using is as follows

Node 1 & Node 2:

Softwares
------------
1. RedHat linux 5.0
2. JBoss 5.1.0 GA
3. Liferay 5.2.2 (We have taken the Liferay and installed in the JBoss. We don’t use the version that is bundled with JBoss.)


Hardwares
-------------
1. 2GB RAM (3 GB RAM in the client Place - He is also facing the same problem that is mentioned above.)
2. 400 Mhz Processor Speed
3. 40 GB Hard disc.

Note: MySQL Server 5.1 is installed in a separate m/c with the same H/w configuration that is mention above.

This is the instlataion that we have followed is as follows

Node1:
--------
a) Unzip the jboss-5.1.0.GA.zip in the physical box.
b) Go to home\ellisdon\liferay-jboss-5.1.0\jboss-5.1.0.GA\server\
c) Create a directory named as “node1”
d) Copy the content of the folder “home\ellisdon\liferay-jboss-5.1.0\jboss-5.1.0.GA\server\all” and paste them in the “node1” directory.
e) Go to the directory of “home\ellisdon\liferay-jboss-5.1.0\jboss-5.1.0.GA\bin” and execute the following command with the System IP


To Start the server

./run.sh-c node1 -g DocsPartition -b <<DNS_NAME>> -Djboss.messaging.ServerPeerID=1 -Djboss.service.binding.set=ports-default


Node 2:
---------
a) Unzip the jboss-5.1.0.GA.zip in the physical box.
b) Go to home\ellisdon\liferay-jboss-5.1.0\jboss-5.1.0.GA\server\
c) Create a directory named as “node2”
d) Copy the content of the folder “home\ellisdon\liferay-jboss-5.1.0\jboss-5.1.0.GA\server\all” and paste them in the “node2” directory.
e) Go to the directory of “home\ellisdon\liferay-jboss-5.1.0\jboss-5.1.0.GA\bin” and execute the following command with the System IP

Please execute the following command

./run.sh -c node2 -g DocsPartition -b << DNS_NAME>> -Djboss.messaging.ServerPeerID=2 -Djboss.service.binding.set= ports-default


Installation of Liferay
---------------------------
1. Download the Liferay.war file.
2. Download mysql-connector-java-5.1.7-bin.jar and copy to home\ellisdon\liferay-jboss-5.1.0\jboss-5.1.0.GA\server\node1\farm

3. All the Liferay's Portal Dependencies of Liferay.war files which can be download from the same url need to be placed in the

home\ellisdon\liferay-jboss-5.1.0\jboss-5.1.0.GA\server\node1\farm

4. Configure JAAS. Edit home\ellisdon\liferay-jboss-5.1.0\jboss-5.1.0.GA\server\form\conf\login-config.xml and comment out the entire XML for policy other. Please comment the following lines
<!--<application-policy name = "other">-->
...
<!--<authentication>
<login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required" />
</authentication>
</application-policy>-->

Deployment of LifeRay:
-----------------------------
As the JBoss will be installed in the cluster Node, please follow the below mentioned steps in the master node of JBoss.

Before you start the deployment, please do the following modification in the Liferay.war

1. Change context-root in jboss-web.xml which will present in liferay.war\WEB-INF

<context-root>/liferay</context-root>

2. Remove jaxen.jar, jaxrpc.jar, stax.jar, xercesImpl.jar, xml-apis.jar from liferay.war/WEB-INF/lib

3. Create a file called portal-ext.properties and place it in the Liferay Home folder, which is one folder above JBoss's install location.
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=
UTF-8&useFastDateParsing=false
jdbc.default.username=xxxxx
jdbc.default.password=xxxxx
portal.ctx=/liferay

Anticipating your reploy at the earliest. Thanks in advance

Thanks
trnethani.
thumbnail
Lisa Simpson, modificado hace 14 años.

RE: Perfomance Issue in the Liferay deployment of JBoss Cluster Eniv

Liferay Legend Mensajes: 2034 Fecha de incorporación: 5/03/09 Mensajes recientes
I'm just guessing here but that 400Mhz CPU is probably what's killing you. Java is intensive on RAM and CPU. I'm currrently running mine on some 4x 8Ghz (that's 4 CPU's at 8Ghz each) and it runs really well.
thumbnail
Victor Zorin, modificado hace 14 años.

RE: Perfomance Issue in the Liferay deployment of JBoss Cluster Eniv

Liferay Legend Mensajes: 1228 Fecha de incorporación: 14/04/08 Mensajes recientes
That's probably is the answer.
Non-standard JBoss5 + Liferay5 fully starts in about 12-15 seconds with MySql5, on virtual Linux server, running together with Mysql5. 4Gb RAM, fast hard drive.
thumbnail
Michael Saechang, modificado hace 14 años.

moved thread.

Liferay Master Mensajes: 576 Fecha de incorporación: 19/11/07 Mensajes recientes
moved to Installation / Deployment / Setup.