BOSS
BOSS

Reputation: 2951

Struts2 performance issue

I am using Struts2 in my application .it's working fine when there is less number of users. But in real time there are around 3000 requests hiting to the application.And after some time my JVM get crashed.I checked the thread dump it seems to be lot of thread blocked while executing the OGNL expression.

And the CPu utilization is always around 130% in the pick times.Please suggest me what will be the best approach to run stuts2 application in highly scalable enviroment.

Upvotes: 1

Views: 3504

Answers (2)

lschin
lschin

Reputation: 6811

  • Let's see this, the default setting for struts.ognl.enableExpressionCache

### Caches parsed OGNL expressions, but can lead to memory leaks

### if the application generates a lot of different expressions

struts.ognl.enableExpressionCache=true

  • Or try optimize your Struts2 application by instructions in Performance Tuning.
  • Or monitoring your Struts2 application with Java Melody, Struts2 action can be monitored by add an interceptor.

Upvotes: 4

Umesh Awasthi
Umesh Awasthi

Reputation: 23587

Which version of Struuts2 you are using? there were some known issue with OGNL expression language.

follow this thread on struts2 mailing list it might help u OGNL Discussion

lately there has been a lot of performance improvement with OGNL so just specify the Struts2 version

Upvotes: 0

Related Questions