Reputation: 385
we develop the webapp with Grails. In productio the webapp runs on Jetty. We used JMeter to run performance-test and yourkit to analyse the memory consumtion of jetty.
We started Jetty with params -Xms1500m -Xmx1500m, so in yourkit we can also see the allocated memory is about 1,5gb. But Jetty does not use it all, all time always about 300 - 500m and delivers bad performance. can serve only few requests/s.
so how can we force jetty to use all allocated memory for better performance?
Thx you very much!
Upvotes: 2
Views: 1013
Reputation: 24159
The problem is probably not the memory, it looks like you have enough.
You have probably other points of contention, for example exclusive-locks.
I suggest you take several snapshots of your threads, to examine where they are stuck. You should find the contention.
Upvotes: 2