Foros de discusión

Liferay Memory Usage !

thumbnail
devaraj s, modificado hace 10 años.

Liferay Memory Usage !

Regular Member Mensajes: 228 Fecha de incorporación: 21/05/12 Mensajes recientes
Hi,
We are running liferay and another GWT application in Jboss 7 server. We have installed liferay in root folder (www.xyz.com) and other application in subdirectory (www.xyz.com/abc). We are recently facing out of memory issue in a server.

As I searched in forum , for this particular type of out of memory issue we need to tune jvm memory parameters. According to system configuration we already tuned maximum jvm memory parameter. So we cant handle this issue by tuning memory parameters.

If this outof memory occurs liferay as well as our other GWT application also become unresponsive. I tried to monitor memory usage in liferay control panel server administration part. But the memory value showing in memory meter its totally out of concept .

Right now we dont have not more than 20 users in liferay portal. Even if it a case why liferay throwing out of memory error.? but we have running other GWT application in the same jboss server , this application is more active.

Here my question is how memory will distribute from liferay portal. When we are using other GWT application whether liferay release unused memory or not ? And also in liferay itself when user get logout whether leferay release the memory?

These below things are configured for memory in our server,

System memory: 4 GB
server Os : windows server 2008
adjustem memory parameter in jboss server : set "JAVA_OPTS=%JAVA_OPTS% -Xms512M -Xmx1024M -XX: PermSize=256M -XX:MaxPermSize=512M"


Please can one tell me how i can get it resolve this type of particular issue. Or if someone give me the input ,how memory will distribute through liferay it will be more helpful.
thumbnail
Mika Koivisto, modificado hace 10 años.

RE: Liferay Memory Usage !

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
That is just too little memory for the application server. You can probably decrease your MaxPermSize a bit but you need to increase -Xmx more. 1024M just isn't enough for it to be stable especially if you have other apps running on the same server. My own server has pretty stable memory usage with -Xms1280m -Xmx1280m but it doesn't have any GWT or JSF apps that can eat up all the memory.
thumbnail
devaraj s, modificado hace 10 años.

RE: Liferay Memory Usage !

Regular Member Mensajes: 228 Fecha de incorporación: 21/05/12 Mensajes recientes
Thanks for response,
Here in our application server we have less activity in liferay, We have only public sites running and dont have users in liferay portal as of now. even in this case liferay throwing outof memory error.

My own server has pretty stable memory usage with -Xms1280m -Xmx1280m but it doesn't have any GWT or JSF apps that can eat up all the memory.


So ultimately your point here is even we have less activity in liferay, its need some reserved memory rite? please correct me if I am wrong.
thumbnail
Manish Yadav, modificado hace 10 años.

RE: Liferay Memory Usage !

Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
devaraj s:
Thanks for response,
Here in our application server we have less activity in liferay, We have only public sites running and dont have users in liferay portal as of now. even in this case liferay throwing outof memory error.

My own server has pretty stable memory usage with -Xms1280m -Xmx1280m but it doesn't have any GWT or JSF apps that can eat up all the memory.


So ultimately your point here is even we have less activity in liferay, its need some reserved memory rite? please correct me if I am wrong.


Hi Devraj,
Are you using any custom portlet if yes try with below code in your application.Might be some place infinite objects are creating

Runtime.getRuntime().maxMemory();
Runtime.getRuntime().totalMemory();
Runtime.getRuntime().freeMemory();
thumbnail
devaraj s, modificado hace 10 años.

RE: Liferay Memory Usage !

Regular Member Mensajes: 228 Fecha de incorporación: 21/05/12 Mensajes recientes
manish,
yes we have custom portlet, but i am sure here infinite objects are not creating.