Skip to main content

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

Hi Jesse

Sweet many thanks for the response.

Yeah an update of Jetty is planned, but only for later in 2017.

is there any debug logging I could turn on that might shed some more lights on what's causing this?

Regards
Per




On Fri, Dec 30, 2016 at 5:37 PM, Jesse McConnell <jesse.mcconnell@xxxxxxxxx> wrote:
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.

cheers!
Jesse

--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx

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.

Regards
Per

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top