Message Boards

deploy war file to liferay server too slow!

wely cery, modified 6 Years ago.

deploy war file to liferay server too slow!

Junior Member Posts: 38 Join Date: 3/6/17 Recent Posts
hi

i am creating some jsf liferay portlets.in my portlet i use a lot of dependencies that i create before.so the project size is more then a basic porlet.
when i try to deploy it to liferay server it takes like 6 min to deploy and the logs outputs are like this:

05:53:37,984 WARN [elasticsearch[Caber][scheduler][T#1]][jvm:173] [Caber] [gc][young][60341][205] duration [1.2s], collections [1]/[1.2s], total [1.2s]/[55.9s], memory [3.1gb]->[1.3gb]/[7.1gb], all_pools {[young] [2.1gb]->[4.1kb]/[2.1gb]}{[survivor] [90.9mb]->[235.4mb]/[235.5mb]}{[old] [862.1mb]->[1gb]/[5.3gb]}
05:54:22,611 WARN [elasticsearch[Caber][scheduler][T#1]][jvm:173] [Caber] [gc][young][60376][206] duration [1.2s], collections [1]/[10.5s], total [1.2s]/[57.1s], memory [3.5gb]->[877.5mb]/[7.1gb], all_pools {[young] [2.1gb]->[31.8mb]/[2gb]}{[survivor] [235.4mb]->[0b]/[244mb]}{[old] [1gb]->[845.7mb]/[5.3gb]}
05:54:22,615 INFO [elasticsearch[Caber][scheduler][T#1]][jvm:176] [Caber] [gc][old][60376][31] duration [9.2s], collections [1]/[10.5s], total [9.2s]/[44.4s], memory [3.5gb]->[877.5mb]/[7.1gb], all_pools {[young] [2.1gb]->[31.8mb]/[2gb]}{[survivor] [235.4mb]->[0b]/[244mb]}{[old] [1gb]->[845.7mb]/[5.3gb]}
05:55:23,378 WARN [elasticsearch[Caber][scheduler][T#1]][jvm:173] [Caber] [gc][young][60436][207] duration [1s], collections [1]/[1.7s], total [1s]/[58.1s], memory [2.7gb]->[1.2gb]/[7.1gb], all_pools {[young] [1.8gb]->[8.8kb]/[1.8gb]}{[survivor] [0b]->[390.1mb]/[390.5mb]}{[old] [845.7mb]->[845.7mb]/[5.3gb]}
05:56:18,941 INFO [elasticsearch[Caber][scheduler][T#1]][jvm:176] [Caber] [gc][young][60491][208] duration [891ms], collections [1]/[1.5s], total [891ms]/[59s], memory [3gb]->[1.2gb]/[7.1gb], all_pools {[young] [1.8gb]->[332.5kb]/[1.7gb]}{[survivor] [390.1mb]->[394.4mb]/[394.5mb]}{[old] [845.7mb]->[880.4mb]/[5.3gb]}
05:57:08,182 INFO [elasticsearch[Caber][scheduler][T#1]][jvm:176] [Caber] [gc][young][60540][209] duration [761ms], collections [1]/[1.2s], total [761ms]/[59.7s], memory [2.8gb]->[1.2gb]/[7.1gb], all_pools {[young] [1.6gb]->[30.9mb]/[1.7gb]}{[survivor] [394.4mb]->[362.4mb]/[362.5mb]}{[old] [880.4mb]->[889.2mb]/[5.3gb]}

so is there a way to deploy my big size project faster.its very hard to develope it because i have to wait so long for seeing the result...
thumbnail
David H Nebinger, modified 6 Years ago.

RE: deploy war file to liferay server too slow!

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
wely cery:
05:53:37,984 WARN [elasticsearch[Caber][scheduler][T#1]][jvm:173] [Caber] [gc][young][60341][205] duration [1.2s], collections [1]/[1.2s], total [1.2s]/[55.9s], memory [3.1gb]->[1.3gb]/[7.1gb], all_pools {[young] [2.1gb]->[4.1kb]/[2.1gb]}{[survivor] [90.9mb]->[235.4mb]/[235.5mb]}{[old] [862.1mb]->[1gb]/[5.3gb]}


This has nothing to do with deployment, it is merely the internal elasticsearch reporting its status.

My guess is that a) you're on a very constrained system with little free memory available for elasticsearch to do its thing. Elasticsearch itself has a memory allocation that it uses (in embedded mode it uses the memory allocation given to the app server), but it also uses unallocated system memory for storing index data.

You're likely well above the available resources on your system so the system is now super busy swapping memory in & out of disk, bringing your performance to a standstill.








Come meet me at the 2017 LSNA!