Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty9 heap bigger than -Xmx

Hi Otis,

On top of the heap (what's configured with -Xmx), java can consume a little more memory for non-Heap. Typically, that's not a lot though. 

Am I right that the page that you link displays memory usage of the entire OS, not just the Java process? That might skew your observations.

Are you familiar with the "jmap" executable that ships with Java? It allows you to review the memory usage of just your Java process from the command line. An invocation like this should give you interesting data:

jmap -heap YOUR-PROCESS-ID



On 20 August 2015 at 14:08, Otis Gospodnetić <otis.gospodnetic@xxxxxxxxx> wrote:

We are using default Jetty 9 (v20150730) and Tomcat (v8) setup with the same war file behind the same ELB and see that memory consumption is very different.
Jetty uses much more memory than what's specified in -Xmx.

Any idea why that is and whether it can be changed?
This is on Java8.

For example, have a look at this:

spm-reports1 machine is running Tomcat
spm-reports2 is running Jetty9 (v20150730)

Is there anything we should look into to lower the Jetty 9 memory footprint?

Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support *

jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top