Reputation: 2951
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
Reputation: 6811
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
Upvotes: 4
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