Foros de discusión

Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Virat sen, modificado hace 9 años.

Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Junior Member Mensajes: 57 Fecha de incorporación: 21/07/13 Mensajes recientes
Hi Friends,

Hope all is well.

Small request to all of you :

Can you please share your most valuable thoughts / Experience / Suggestion / inputs on different Memory Leak Scenarios in Liferay
including configuaration details in different ENV ,bulk upload using Liferay Scheduler etc.

Experts please share valuable thoughts as you know it is one of the most impotant /typical challenges for us

Thanks !!
thumbnail
David H Nebinger, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
99.999% of the time memory leaks are caused by custom code introduced into Liferay. If you have bad developers, bad things will happen as a result.
Virat sen, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Junior Member Mensajes: 57 Fecha de incorporación: 21/07/13 Mensajes recientes
David H Nebinger:
99.999% of the time memory leaks are caused by custom code introduced into Liferay. If you have bad developers, bad things will happen as a result.



Hey David,

I was just expecting you ...emoticon man.

Fully Agree with you.

Besides, if you please guide us from the LR configuration perspective to reduce Memory Leak,Just like a few days back your nice post was there on Best Configuration for LR installation

As well as in our current project , the LiferayFacesBridgeCacheIpml class was growing larger.

Do you have any idea when /why this class is getting larger.

Note : we are using LR 6.1.20 EE + JSF

Waiting to hear you again man !!

Thanks !!

Thans
thumbnail
David H Nebinger, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Virat sen:
As well as in our current project , the LiferayFacesBridgeCacheIpml class was growing larger.

Do you have any idea when /why this class is getting larger.


No idea, but if you post to the liferay faces category, you might hear from Neil Griffin if he knows of anything.
Virat sen, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Junior Member Mensajes: 57 Fecha de incorporación: 21/07/13 Mensajes recientes
David H Nebinger:
Virat sen:
As well as in our current project , the LiferayFacesBridgeCacheIpml class was growing larger.

Do you have any idea when /why this class is getting larger.


No idea, but if you post to the liferay faces category, you might hear from Neil Griffin if he knows of anything.



Thanks David !!
Team ,

Thanks a lot for moving the Thread to the right place.

Neil / Any Friends : Do we have any pointer for the same.


Thanks !!
thumbnail
Vernon Singleton, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
Hi Virat,

Virat sen:
As well as in our current project , the LiferayFacesBridgeCacheIpml class was growing larger.

Do you have any idea when /why this class is getting larger.

Could you post your web.xml file?

We have a parameter in the web.xml file called:
com.liferay.faces.bridge.bridgeRequestScopePreserved

and it should be false by default. Is yours set to true?

- Vernon
Virat sen, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Junior Member Mensajes: 57 Fecha de incorporación: 21/07/13 Mensajes recientes
Vernon Singleton:
Hi Virat,

Virat sen:
As well as in our current project , the LiferayFacesBridgeCacheIpml class was growing larger.

Do you have any idea when /why this class is getting larger.

Could you post your web.xml file?

We have a parameter in the web.xml file called:
com.liferay.faces.bridge.bridgeRequestScopePreserved

and it should be false by default. Is yours set to true?

- Vernon


Hi Vernon

Thanks for your reply.

Which web.xml you want to refer : inside tomcat/conf or any project's web.xml

Thanks !!
thumbnail
Vernon Singleton, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
Hi Virat,

Virat sen:
Which web.xml you want to refer : inside tomcat/conf or any project's web.xml

Are you using the Liferay Faces Bridge for any of your portlets?
Have you deployed any portlets that use JSF as a controller on the instance of Liferay where you see this issue?
Virat sen, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Junior Member Mensajes: 57 Fecha de incorporación: 21/07/13 Mensajes recientes
Vernon Singleton:
Hi Virat,

Virat sen:
As well as in our current project , the LiferayFacesBridgeCacheIpml class was growing larger.

Do you have any idea when /why this class is getting larger.

Could you post your web.xml file?

We have a parameter in the web.xml file called:
com.liferay.faces.bridge.bridgeRequestScopePreserved

and it should be false by default. Is yours set to true?

- Vernon



Hi Veron,

No.We are not using this "com.liferay.faces.bridge.bridgeRequestScopePreserved" in our web.xml.
thumbnail
Vernon Singleton, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
Virat sen:
As well as in our current project , the LiferayFacesBridgeCacheIpml class was growing larger.
... No.We are not using this "com.liferay.faces.bridge.bridgeRequestScopePreserved" in our web.xml.


Thank you.
What version of the Liferay Faces Bridge are you using in this portlet?
What version of Liferay is it deployed to?
Virat sen, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Junior Member Mensajes: 57 Fecha de incorporación: 21/07/13 Mensajes recientes
Vernon Singleton:
Virat sen:
As well as in our current project , the LiferayFacesBridgeCacheIpml class was growing larger.
... No.We are not using this "com.liferay.faces.bridge.bridgeRequestScopePreserved" in our web.xml.


Thank you.
What version of the Liferay Faces Bridge are you using in this portlet?
What version of Liferay is it deployed to?



Hi Vernon,

Your requirement details as follows :

Liferay Faces Bridge : 3.1.4
Liferay : 6.1.20 EE GA2


Thanks !!
thumbnail
Vernon Singleton, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Expert Mensajes: 315 Fecha de incorporación: 14/01/13 Mensajes recientes
Hi Virat,

Thanks for all of the info.

Virat sen:
As well as in our current project , the LiferayFacesBridgeCacheIpml class was growing larger.
... No.We are not using this "com.liferay.faces.bridge.bridgeRequestScopePreserved" in our web.xml.


I have just checked all of our 3.1.x commits, and there is no class called "LiferayFacesBridgeCacheIpml" or "LiferayFacesBridgeCacheImpl".

Just curious ... what tool were you using to see that "LiferayFacesBridgeCacheIpml class was growing larger"?
Maybe you are referring to another class called "BridgeRequestScopeCacheImpl" ???
Could that be the case?

BridgeRequestScopeCacheImpl should be getting cleaned up every time a user does a full page postback to the same view from an action request, or their session expires, or the user logs out.

- Vernon
Virat sen, modificado hace 9 años.

RE: Problem ,Solution and Best practices for Memory Leak in Liferay 6.x

Junior Member Mensajes: 57 Fecha de incorporación: 21/07/13 Mensajes recientes
Hi Vernon,

Thanks a lot ...

Actually i am from core LR dev team.

And we are having one more team for JSF who are actually doing the needful for JSF.
I will convey the message to team and will get back to you.

Thanks !!
thumbnail
Neil Griffin, modificado hace 9 años.

Moved to Liferay Faces - English sub-category.

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Moved to Liferay Faces - English sub-category.

A member of the Liferay Faces team will reply to this thread as soon as we can. Thanks for your patience.