Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Vasu K
Performance is very bad with our setup - help required
18 luglio 2013 11.52
Risposta

Vasu K

Punteggio: Junior Member

Messaggi: 34

Data di Iscrizione: 5 ottobre 2009

Messaggi recenti



Hi Team,

We have two tomcats connected to apache, we have developed 20 portlet applications and 6 hooks. Every portlet is a different war file, lot of jars are very common for all these applications. Tomcats are hosted on Linux servers each with 4 GB memory, apache is also installed in the same box. The performance is very bad, each page take very longtime after sometime.

1. Do you really see an issue as these many applications are deployed as individual war files?

2. All applications have bundled with almost same jar files and common spring configuration files, each application (web context) loads these jars separately ? Spring beans will be created separately for each web context this would also an issue?

Please share your suggetions and advices....

Thanks
Vasu


David H Nebinger
RE: Performance is very bad with our setup - help required
22 luglio 2013 6.13
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11295

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

There is nothing inherently wrong w/ this configuration that would cause bad performance. I'd start by trying to tune your own code as that is going to be the most likely cause of the problem.

That said, there are a number of ways to tune tomcat/liferay. One of the biggest will be moving jars out of the individual webapps and into the global jar folder (lib/ext). Not all of the jars can go there, but many of them can. You can also disable some of the filters Liferay enables by default that you won't ever use (i.e. the CAS filter, LDAP, etc.). There are plenty of other tuning recommendations floating around here at liferay.com and on the net.

But again, these tuneups will not help with your problem. I think you're going to find most of your delays are in your code, and these tuneups will only marginally affect the performance you're seeing.
Ankit Srivastava
RE: Performance is very bad with our setup - help required
22 luglio 2013 8.40
Risposta

Ankit Srivastava

Punteggio: Regular Member

Messaggi: 196

Data di Iscrizione: 15 aprile 2011

Messaggi recenti

Hi Vasu,

Please use profile to find out the problem area.

Thanks:
Tonu
Henry K
RE: Performance is very bad with our setup - help required
22 luglio 2013 9.17
Risposta

Henry K

Punteggio: Junior Member

Messaggi: 40

Data di Iscrizione: 27 gennaio 2010

Messaggi recenti

Hi Vasu--

Try using the javamelody hook for Liferay to see what's going on in the jvm. It's been very useful for me.

http://code.google.com/p/javamelody/

http://code.google.com/p/javamelody/downloads/list

Also, do you have any plugins using Security Manager? Security Manager will cripple the Site Pages portlet, making it run very, very slowly. It may affect other portlets as well.

--Henry
Vasu K
RE: Performance is very bad with our setup - help required
25 luglio 2013 8.31
Risposta

Vasu K

Punteggio: Junior Member

Messaggi: 34

Data di Iscrizione: 5 ottobre 2009

Messaggi recenti

Thank you very much for your response.

Here is the problem senario.

Simple portlet with hellow world is also taking to much time (20 sec to 40 sec). Initially after server restart this works fine for a while but after sometime it loads any page very slow. All portlets are spring portlets.


Thanks