You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by "Wright, Omari" <Om...@solers.com> on 2012/12/20 22:01:45 UTC
[Apache SSHD] Memory leak
Apache SSHD 0.8.0 is leaking memory on me when used in embedded or standalone form. Is there some configuration setting I am missing? The servers are under small load...
RE: [Apache SSHD] Memory leak
Posted by "Wright, Omari" <Om...@solers.com>.
It looks as if the GC isn't releasing resources. Where should I send this hprof file?
-----Original Message-----
From: Wright, Omari [mailto:Omari.Wright@solers.com]
Sent: Thursday, December 20, 2012 5:52 PM
To: users@mina.apache.org
Cc: elecharny@apache.org
Subject: RE: [Apache SSHD] Memory leak
The standalone application was run with sftpsubsystem and scpcommand active. At first I didn't change anything as far as java configuration then I tried adding java opts inside the default java opts block to enable gc and set the max allocation for ram to 2gb. Tomorrow when I get in I will work on getting those hprof files.
-----Original Message-----
From: Niklas Gustavsson [mailto:niklas@protocol7.com]
Sent: Thursday, December 20, 2012 4:48 PM
To: users@mina.apache.org
Cc: elecharny@apache.org
Subject: Re: [Apache SSHD] Memory leak
On Thu, Dec 20, 2012 at 10:37 PM, Wright, Omari <Om...@solers.com>wrote:
> Yes, apache ftpserver and apache sshd are behaving the same way. They
> both exceed the max heap size set for them until all of the VMs RAM is consumed.
> A ps fauxwww shows the apache sshd process at 3GB Ram while it was
> only allocated 2. Apache ftpserver is at 5GB even though it was only
> allocated 3. This maxes out the 8G ram the VM had allocated to it and
> produces terribly slow interactions with both servers.
>
Could you possibly profile the JVMs (using for example VisualVM) in order to better track down what's actually uses up your memory? Do you see any GC runs and are the able to reclaim any memory? The behavior you're describing is atypical an thus we need more clues into what could be causing it. I'm assuming your running the standalone servers without any customizations?
You you also provide your configuration and JVM settings?
/niklas
RE: [Apache SSHD] Memory leak
Posted by "Wright, Omari" <Om...@solers.com>.
The standalone application was run with sftpsubsystem and scpcommand active. At first I didn't change anything as far as java configuration then I tried adding java opts inside the default java opts block to enable gc and set the max allocation for ram to 2gb. Tomorrow when I get in I will work on getting those hprof files.
-----Original Message-----
From: Niklas Gustavsson [mailto:niklas@protocol7.com]
Sent: Thursday, December 20, 2012 4:48 PM
To: users@mina.apache.org
Cc: elecharny@apache.org
Subject: Re: [Apache SSHD] Memory leak
On Thu, Dec 20, 2012 at 10:37 PM, Wright, Omari <Om...@solers.com>wrote:
> Yes, apache ftpserver and apache sshd are behaving the same way. They
> both exceed the max heap size set for them until all of the VMs RAM is consumed.
> A ps fauxwww shows the apache sshd process at 3GB Ram while it was
> only allocated 2. Apache ftpserver is at 5GB even though it was only
> allocated 3. This maxes out the 8G ram the VM had allocated to it and
> produces terribly slow interactions with both servers.
>
Could you possibly profile the JVMs (using for example VisualVM) in order to better track down what's actually uses up your memory? Do you see any GC runs and are the able to reclaim any memory? The behavior you're describing is atypical an thus we need more clues into what could be causing it. I'm assuming your running the standalone servers without any customizations?
You you also provide your configuration and JVM settings?
/niklas
Re: [Apache SSHD] Memory leak
Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Thu, Dec 20, 2012 at 10:37 PM, Wright, Omari <Om...@solers.com>wrote:
> Yes, apache ftpserver and apache sshd are behaving the same way. They both
> exceed the max heap size set for them until all of the VMs RAM is consumed.
> A ps fauxwww shows the apache sshd process at 3GB Ram while it was only
> allocated 2. Apache ftpserver is at 5GB even though it was only allocated
> 3. This maxes out the 8G ram the VM had allocated to it and produces
> terribly slow interactions with both servers.
>
Could you possibly profile the JVMs (using for example VisualVM) in order
to better track down what's actually uses up your memory? Do you see any GC
runs and are the able to reclaim any memory? The behavior you're describing
is atypical an thus we need more clues into what could be causing it. I'm
assuming your running the standalone servers without any customizations?
You you also provide your configuration and JVM settings?
/niklas
RE: [Apache SSHD] Memory leak
Posted by "Wright, Omari" <Om...@solers.com>.
Are they storing the incoming files in RAM or something? If so, that could be a big problem since these servers will see heavy traffic of varying file sizes...
-----Original Message-----
From: Wright, Omari [mailto:Omari.Wright@solers.com]
Sent: Thursday, December 20, 2012 4:37 PM
To: users@mina.apache.org; 'elecharny@apache.org'
Subject: RE: [Apache SSHD] Memory leak
Yes, apache ftpserver and apache sshd are behaving the same way. They both exceed the max heap size set for them until all of the VMs RAM is consumed. A ps fauxwww shows the apache sshd process at 3GB Ram while it was only allocated 2. Apache ftpserver is at 5GB even though it was only allocated 3. This maxes out the 8G ram the VM had allocated to it and produces terribly slow interactions with both servers.
-----Original Message-----
From: Emmanuel Lécharny [mailto:elecharny@gmail.com]
Sent: Thursday, December 20, 2012 4:12 PM
To: users@mina.apache.org
Subject: Re: [Apache SSHD] Memory leak
Le 12/20/12 10:01 PM, Wright, Omari a écrit :
> Apache SSHD 0.8.0 is leaking memory on me when used in embedded or standalone form.
Have you and data to back your claim ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
RE: [Apache SSHD] Memory leak
Posted by "Wright, Omari" <Om...@solers.com>.
Yes, apache ftpserver and apache sshd are behaving the same way. They both exceed the max heap size set for them until all of the VMs RAM is consumed. A ps fauxwww shows the apache sshd process at 3GB Ram while it was only allocated 2. Apache ftpserver is at 5GB even though it was only allocated 3. This maxes out the 8G ram the VM had allocated to it and produces terribly slow interactions with both servers.
-----Original Message-----
From: Emmanuel Lécharny [mailto:elecharny@gmail.com]
Sent: Thursday, December 20, 2012 4:12 PM
To: users@mina.apache.org
Subject: Re: [Apache SSHD] Memory leak
Le 12/20/12 10:01 PM, Wright, Omari a écrit :
> Apache SSHD 0.8.0 is leaking memory on me when used in embedded or standalone form.
Have you and data to back your claim ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: [Apache SSHD] Memory leak
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/20/12 10:01 PM, Wright, Omari a écrit :
> Apache SSHD 0.8.0 is leaking memory on me when used in embedded or standalone form.
Have you and data to back your claim ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com