Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Limit memory

First off, Jetty 8 is very end of life, we just released Jetty 9.4 a week or two ago.  Jetty 9.2 if you are stuck on Java 7 which you really shouldn't at this point, it too is EOL.

Second, Jetty is very rarely the cause of a memory leak, more likely the application you are running inside of Jetty is misbehaving in some way.  There is little Jetty can do to force an application to behave in this way, you are pretty limited in what your options are there.  Your best bet is to limit the memory of the JVM you are starting through the command line arguments of java.  AFAIK those limits to the jvm are not fungible to any great degree so if you see growth beyond it would be a factor of the OS/JVM interactions, etc.


jesse mcconnell

On Fri, Dec 30, 2016 at 6:32 AM, Per Qvindesland <perqvind@xxxxxxxxx> wrote:
Hi All

I am a bit of a newbie with jetty so please excuse if this is a n00b question.

I am using jetty 8 on a debian box.

On this machine every second day or so it seems hog to much memory and we're getting alerts of to much memory usage, restarting jetty takes care of the issue, but it's less then a good workaround.

Is there any way of limiting jetty's memory usage? I ps -ef | grep jetty8 gives /usr/lib/jvm/default-java/bin/java -Xmx768m which suggests that there is already a memory limit in use but as I mentioned jetty every now and so often starts using memory way to much so I don't think it's using the limitation.

Any ideas or suggestions is greatly appreciated.


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

Back to the top