Foros de discusión

Liferay won't install

Piotr Sosinski, modificado hace 14 años.

Liferay won't install

New Member Mensajes: 5 Fecha de incorporación: 17/07/09 Mensajes recientes
Hi guys

I have a problem with Liferay installation. I'm trying to install bundle version of liferay and tomcat 5.5 (tried tomcat 6.0 bundle earlier) on a VPS server via ssh, but when I run ./startup.sh I get the following lines instantly coming up

Using CATALINA_BASE: /home/liferay-portal-5.2.3/tomcat-5.5.27
Using CATALINA_HOME: /home/liferay-portal-5.2.3/tomcat-5.5.27
Using CATALINA_TMPDIR: /home/liferay-portal-5.2.3/tomcat-5.5.27/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun

Then an empty command line appears

/home/liferay-portal-5.2.3/tomcat-5.5.27/bin#

and that's it. Nothing happens. Is that how it should be? No confirmation that tomact started?
Also, ssh connection slows down and keeps running very very slow after the startup, even hours afters when I try to reconnect. Must reboot server to make it work fast again

I assume it starts and works in the background or something, but I can't see anything on localhost:8080 ( permanent loading state)
thumbnail
Zsolt Balogh, modificado hace 14 años.

RE: Liferay won't install

Expert Mensajes: 463 Fecha de incorporación: 23/03/09 Mensajes recientes
Hi,

check the log files in /home/liferay-portal-5.2.3/tomcat-5.5.27/logs/catalina.out, that would help to find the solution.

I think it's a memory issue, how much memory do you have? Please copy and paste the output of this here:

ps fuaxw | grep tomcat (if it's a linux)

This would tell the memory settings for us.
Piotr Sosinski, modificado hace 14 años.

RE: Liferay won't install

New Member Mensajes: 5 Fecha de incorporación: 17/07/09 Mensajes recientes
Zsolt Balogh:
Hi,

check the log files in /home/liferay-portal-5.2.3/tomcat-5.5.27/logs/catalina.out, that would help to find the solution.

I think it's a memory issue, how much memory do you have? Please copy and paste the output of this here:

ps fuaxw | grep tomcat (if it's a linux)

This would tell the memory settings for us.


Output goes like this:

root 1979 0.0 0.1 7516 880 pts/1 S+ 16:01 0:00 \_ grep tomcat
root 1655 11.1 75.9 1725628 398244 pts/1 Sl 15:40 2:23 /usr/lib/jvm/java-6-sun/bin/java -Djava.util.logging.config.file=/home/liferay-portal-5.2.3/tomcat-5.5.27/conf/logging.properties -Xmx1024m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -Duser.timezone=GMT -Djava.security.auth.login.config=/home/liferay-portal-5.2.3/tomcat-5.5.27/conf/jaas.config -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/home/liferay-portal-5.2.3/tomcat-5.5.27/common/endorsed -classpath :/home/liferay-portal-5.2.3/tomcat-5.5.27/bin/bootstrap.jar:/home/liferay-portal-5.2.3/tomcat-5.5.27/bin/commons-logging-api.jar -Dcatalina.base=/home/liferay-portal-5.2.3/tomcat-5.5.27 -Dcatalina.home=/home/liferay-portal-5.2.3/tomcat-5.5.27 -Djava.io.tmpdir=/home/liferay-portal-5.2.3/tomcat-5.5.27/temp org.apache.catalina.startup.Bootstrap start

I figured what's going on. The server starts up (around 110,000ms) and Liferay appears on localhost:8080 (which is actually not localhost but IP address as I access it via web) but it takes 2-3 minutes for each Liferay page to load

Any idea what's wrong with the speed?
thumbnail
Zsolt Balogh, modificado hace 14 años.

RE: Liferay won't install

Expert Mensajes: 463 Fecha de incorporación: 23/03/09 Mensajes recientes
How much memory does your VPS have? I think it's the problem as VPS servers usually don't have enough for a portal. And now it's swapping.
Piotr Sosinski, modificado hace 14 años.

RE: Liferay won't install

New Member Mensajes: 5 Fecha de incorporación: 17/07/09 Mensajes recientes
Zsolt Balogh:
How much memory does your VPS have? I think it's the problem as VPS servers usually don't have enough for a portal. And now it's swapping.


It's 512mb... too low?
thumbnail
Zsolt Balogh, modificado hace 14 años.

RE: Liferay won't install

Expert Mensajes: 463 Fecha de incorporación: 23/03/09 Mensajes recientes
I think, yes, but I'm not sure, if it's the cause of the slow speed.

You can check how much memory is used by the free command.
Piotr Sosinski, modificado hace 14 años.

RE: Liferay won't install

New Member Mensajes: 5 Fecha de incorporación: 17/07/09 Mensajes recientes
total used free shared buffers cached
Mem: 524288 519852 4436 0 1588 28944
-/+ buffers/cache: 489320 34968
Swap: 524280 401952 122328


I guess I need to upgrade VPS then
thumbnail
Zsolt Balogh, modificado hace 14 años.

RE: Liferay won't install

Expert Mensajes: 463 Fecha de incorporación: 23/03/09 Mensajes recientes
You can check if the swapping makes is slow by checking the output of the vmstat 2 command output while clicking on the installed Liferay.
Piotr Sosinski, modificado hace 14 años.

RE: Liferay won't install

New Member Mensajes: 5 Fecha de incorporación: 17/07/09 Mensajes recientes
result of vmstat 2
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 408728 17504 2120 22844 8 4 9 7 66 58 0 0 98 2
0 0 408728 17504 2128 22844 0 0 0 30 158 312 0 0 99 1
0 0 408728 17504 2128 22844 0 0 0 0 149 307 0 0 100 0
0 0 408648 17496 2156 22864 118 0 150 18 223 408 1 0 97 2
0 2 407996 15140 2176 22912 1310 0 1338 0 320 545 1 0 82 17
0 1 407196 10248 2236 23168 2322 0 2462 24 396 614 1 0 51 47
0 1 406456 6100 2312 23288 1964 0 2096 0 341 511 2 0 51 47
0 1 406548 4448 2348 23108 1332 300 1360 328 233 286 3 0 51 46
0 1 406356 4448 2348 23108 940 62 940 62 186 135 0 0 50 50
0 1 406744 4424 2236 21540 1304 626 1304 678 316 236 0 0 50 50
0 2 406864 4228 2216 21404 1218 320 1218 324 300 196 0 1 50 49
0 2 405816 3164 2208 21348 2540 0 2540 6 396 389 0 0 50 50
0 1 407152 4472 2096 21372 180 844 180 852 251 99 0 0 50 50
0 3 407008 3648 2108 21404 724 112 762 130 248 177 0 0 50 50
0 1 407760 4584 1872 21208 472 574 480 588 346 428 6 0 44 49

Line where free mem drop to 6100 and then to 4448 is the moment when I refreshed Liferay page in the browser
thumbnail
Zsolt Balogh, modificado hace 14 años.

RE: Liferay won't install

Expert Mensajes: 463 Fecha de incorporación: 23/03/09 Mensajes recientes
Yes, it starts swapping, when you do it, so memory upgrade will improve the performance.