Forums

Home » Liferay Portal » Español » 3. Desarrollo

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
devaraj s
Liferay Memory Usage !
June 5, 2013 1:32 AM
Answer

devaraj s

Rank: Regular Member

Posts: 206

Join Date: May 21, 2012

Recent Posts

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.
Mika Koivisto
RE: Liferay Memory Usage !
June 5, 2013 12:25 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1498

Join Date: August 7, 2006

Recent Posts

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.
devaraj s
RE: Liferay Memory Usage !
June 5, 2013 11:37 PM
Answer

devaraj s

Rank: Regular Member

Posts: 206

Join Date: May 21, 2012

Recent Posts

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.
Manish Yadav
RE: Liferay Memory Usage !
June 6, 2013 4:02 AM
Answer

Manish Yadav

Rank: Expert

Posts: 384

Join Date: May 26, 2012

Recent Posts

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();
devaraj s
RE: Liferay Memory Usage !
June 7, 2013 2:05 AM
Answer

devaraj s

Rank: Regular Member

Posts: 206

Join Date: May 21, 2012

Recent Posts

manish,
yes we have custom portlet, but i am sure here infinite objects are not creating.