Why is Jetty not using all the allocated memory?

we are developing webapp with Grails. In products, webapp is powered by Jetty. We used JMeter to run the benchmark and yourkit to analyze the jetty memory consumption.

We started Jetty with the -Xms1500m -Xmx1500m options, so in yourkit we can also see that the allocated memory is around 1.5GB. But Jetty does not use all of this, always around 300 - 500m all the time and provides poor performance. can only serve a few requests / s.

  • CPU ist not fully loaded, all the time only about 50%
  • Jetty works with default settings, 6.1.21 is used
  • MySQL queries are simple, DB size is small and runs on the same machine as Jetty, no problem
  • R logs written to FileAppender on HDD
  • JMeter makes enough requests
  • Yourkit app shows about 60 live streams

so how can we force jetty to use all allocated memory for better performance?

thank you very much!

+2


source to share


1 answer


The problem is probably not memory, it looks like you have enough.

You probably have other disputes like exclusive locks.



I suggest you take some snapshots of your streams to check where they are stuck. You must find a statement.

+2


source







All Articles