You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Guilherme Carvalho <gc...@gmail.com> on 2020/06/09 22:09:00 UTC

Guacd using much memory with no connection

Hello guys, right now there is no user connected on my guacamole, but using
NodeQuery to verify the resources used for this server, i saw that i´m
using now 5.9Gb of memory, i received an email saying that i was using more
than 80% of memory, so i upgrade my server from 8gb to 12gb, but i´m using
almost 50% with nobody connected, what could be??

Look that. Now it´s using 6.2Gb kkkkkkkkkkkk

Current RAM usageSWAP
6.2 GB of 12 GB

2% higher than one hour ago


Top Processes by Resource Usage

Process Count CPU Memory User
guacd 2 4% 365.5 MB root
java 1 3.2% 5.41 GB tomcat
nginx 8 0.5% 56.58 MB www-data
mysqld 1 0.2% 195.5 MB mysql
snapd 1 0% 23.45 MB root
systemd-journal 1 0% 21.14 MB root
unattended-upgr 1 0% 19.62 MB root
networkd-dispat 1 0% 16.83 MB root
VGAuthService 1 0% 9.8 MB root
systemd 1 0% 8.7 MB root

What can i do to resolve this issue?

Thanks

Re: Guacd using much memory with no connection

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Jun 9, 2020 at 6:09 PM Guilherme Carvalho <gc...@gmail.com>
wrote:

> Hello guys, right now there is no user connected on my guacamole, but
> using NodeQuery to verify the resources used for this server, i saw that
> i´m using now 5.9Gb of memory, i received an email saying that i was using
> more than 80% of memory, so i upgrade my server from 8gb to 12gb, but i´m
> using almost 50% with nobody connected, what could be??
>
>
What version of guacd are you running?

-Nick

>

Re: Guacd using much memory with no connection

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Jun 10, 2020 at 11:24 AM Guilherme Carvalho <gc...@gmail.com>
wrote:

> Hello guys, how can i turn down the XMS and XMX from my java on guacamole,
> i didn´t configure it, look that. XMS and XMX is configured to use 10Gb of
> ram, the server has now 12Gb ram.
>
> tomcat    4777  1.7 17.4 16715800 2141232 ?    Ssl  Jun09  21:10
> /usr/lib/jvm/default-java/bin/java
> -Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> -Djava.awt.headless=true -XX:+UseG1GC -XX:MaxMetaspaceSize=1024m -Xms10240m
> -Xmx10240m -XX:+UseG1GC -XX:+DisableExplicitGC -XX:ParallelGCThreads=2
> -XX:ConcGCThreads=1 -Djdk.tls.ephemeralDHKeySize=2048
> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
> -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
> -Dignore.endorsed.dirs= -classpath
> /usr/share/tomcat9/bin/bootstrap.jar:/usr/share/tomcat9/bin/tomcat-juli.jar
> -Dcatalina.base=/var/lib/tomcat9 -Dcatalina.home=/usr/share/tomcat9
> -Djava.io.tmpdir=/tmp org.apache.catalina.startup.Bootstrap start
> root 17405 0.0 0.0 13136 1064 pts/0 S+ 12:21 0:00 grep --color=auto java
>
>
The most likely place is in the tomcat startup.sh file, which should
contain parameters for this.

--Nick

Re: Guacd using much memory with no connection

Posted by Guilherme Carvalho <gc...@gmail.com>.
Hello guys, how can i turn down the XMS and XMX from my java on guacamole,
i didn´t configure it, look that. XMS and XMX is configured to use 10Gb of
ram, the server has now 12Gb ram.

tomcat    4777  1.7 17.4 16715800 2141232 ?    Ssl  Jun09  21:10
/usr/lib/jvm/default-java/bin/java
-Djava.util.logging.config.file=/var/lib/tomcat9/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.awt.headless=true -XX:+UseG1GC -XX:MaxMetaspaceSize=1024m -Xms10240m
-Xmx10240m -XX:+UseG1GC -XX:+DisableExplicitGC -XX:ParallelGCThreads=2
-XX:ConcGCThreads=1 -Djdk.tls.ephemeralDHKeySize=2048
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources
-Dorg.apache.catalina.security.SecurityListener.UMASK=0027
-Dignore.endorsed.dirs= -classpath
/usr/share/tomcat9/bin/bootstrap.jar:/usr/share/tomcat9/bin/tomcat-juli.jar
-Dcatalina.base=/var/lib/tomcat9 -Dcatalina.home=/usr/share/tomcat9
-Djava.io.tmpdir=/tmp org.apache.catalina.startup.Bootstrap start
root 17405 0.0 0.0 13136 1064 pts/0 S+ 12:21 0:00 grep --color=auto java

Em ter., 9 de jun. de 2020 às 20:15, Nick Couchman <vn...@apache.org>
escreveu:

> On Tue, Jun 9, 2020 at 6:54 PM Guilherme Carvalho <gc...@gmail.com>
> wrote:
>
>> Yes you´re right, the Java that is consuming so much memory, not guacd,
>> i´m using the 1.1.0 version.
>>
>>
> Yes, and Stefan is correct - depending on what parameters you use for the
> Tomcat startup Java will go ahead and request the memory from the operating
> system to support the application(s).  You can adjust the Tomcat startup
> parameters to better control this; however, keep in mind that Java is
> considered a "virtual machine" of sorts - so, if you do not allocate
> sufficient memory to it, the Java container will run out of memory and
> you'll get errors within the Java application (Java OOM).
>
> -Nick
>

Re: Guacd using much memory with no connection

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Jun 9, 2020 at 6:54 PM Guilherme Carvalho <gc...@gmail.com>
wrote:

> Yes you´re right, the Java that is consuming so much memory, not guacd,
> i´m using the 1.1.0 version.
>
>
Yes, and Stefan is correct - depending on what parameters you use for the
Tomcat startup Java will go ahead and request the memory from the operating
system to support the application(s).  You can adjust the Tomcat startup
parameters to better control this; however, keep in mind that Java is
considered a "virtual machine" of sorts - so, if you do not allocate
sufficient memory to it, the Java container will run out of memory and
you'll get errors within the Java application (Java OOM).

-Nick

Re: Guacd using much memory with no connection

Posted by Guilherme Carvalho <gc...@gmail.com>.
Yes you´re right, the Java that is consuming so much memory, not guacd, i´m
using the 1.1.0 version.

Em ter., 9 de jun. de 2020 às 19:38, Stefan Bogdan Cimpeanu <
bogdan@cimpeanu.org> escreveu:

> Guacd is barely 365 MB, according to stats provided?
> I suspect there’s a miss-understanding between java, guacd and
> guacamole-client.
>
> On 10 Jun 2020, at 01:19, Nick Couchman <vn...@apache.org> wrote:
>
> On Tue, Jun 9, 2020 at 6:16 PM Stefan Bogdan Cimpeanu <bo...@cimpeanu.org>
> wrote:
>
>> Hi,
>> Java will prealocate the memory specified even if “its not doing
>> anything”, plus some overhead.
>> Memory monitoring on Java applications needs a different approach, simply
>> monitoring system memory will not provide too much useful insight.
>> You’d have to look at heap, GC times, etc. to evaluate a java process is
>> “healthy” or not.
>>
>>
> You're right about Java; however, guacd is not Java-based, so something
> different is going on, here...
>
> -Nick
>
>
>

Re: Guacd using much memory with no connection

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Jun 9, 2020 at 6:38 PM Stefan Bogdan Cimpeanu <bo...@cimpeanu.org>
wrote:

> Guacd is barely 365 MB, according to stats provided?
> I suspect there’s a miss-understanding between java, guacd and
> guacamole-client.
>
>
Yep, you're right!  Apologies for that misunderstanding...

-Nick

Re: Guacd using much memory with no connection

Posted by Stefan Bogdan Cimpeanu <bo...@cimpeanu.org>.
Guacd is barely 365 MB, according to stats provided?
I suspect there’s a miss-understanding between java, guacd and guacamole-client.

> On 10 Jun 2020, at 01:19, Nick Couchman <vn...@apache.org> wrote:
> 
> On Tue, Jun 9, 2020 at 6:16 PM Stefan Bogdan Cimpeanu <bogdan@cimpeanu.org <ma...@cimpeanu.org>> wrote:
> Hi,
> Java will prealocate the memory specified even if “its not doing anything”, plus some overhead.
> Memory monitoring on Java applications needs a different approach, simply monitoring system memory will not provide too much useful insight.
> You’d have to look at heap, GC times, etc. to evaluate a java process is “healthy” or not. 
> 
> 
> You're right about Java; however, guacd is not Java-based, so something different is going on, here...
> 
> -Nick


Re: Guacd using much memory with no connection

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Jun 9, 2020 at 6:16 PM Stefan Bogdan Cimpeanu <bo...@cimpeanu.org>
wrote:

> Hi,
> Java will prealocate the memory specified even if “its not doing
> anything”, plus some overhead.
> Memory monitoring on Java applications needs a different approach, simply
> monitoring system memory will not provide too much useful insight.
> You’d have to look at heap, GC times, etc. to evaluate a java process is
> “healthy” or not.
>
>
You're right about Java; however, guacd is not Java-based, so something
different is going on, here...

-Nick

Re: Guacd using much memory with no connection

Posted by Stefan Bogdan Cimpeanu <bo...@cimpeanu.org>.
Hi,
Java will prealocate the memory specified even if “its not doing anything”, plus some overhead.
Memory monitoring on Java applications needs a different approach, simply monitoring system memory will not provide too much useful insight.
You’d have to look at heap, GC times, etc. to evaluate a java process is “healthy” or not. 

> On 10 Jun 2020, at 01:09, Guilherme Carvalho <gc...@gmail.com> wrote:
> 
> Hello guys, right now there is no user connected on my guacamole, but using NodeQuery to verify the resources used for this server, i saw that i´m using now 5.9Gb of memory, i received an email saying that i was using more than 80% of memory, so i upgrade my server from 8gb to 12gb, but i´m using almost 50% with nobody connected, what could be??
> 
> Look that. Now it´s using 6.2Gb kkkkkkkkkkkk
> 
> Current RAM usageSWAP
> 6.2 GB of 12 GB
> 2% higher than one hour ago
> 
> Top Processes by Resource Usage
> 
> Process Count CPU Memory User
> guacd 2 4% 365.5 MB root
> java 1 3.2% 5.41 GB tomcat
> nginx 8 0.5% 56.58 MB www-data
> mysqld 1 0.2% 195.5 MB mysql
> snapd 1 0% 23.45 MB root
> systemd-journal 1 0% 21.14 MB root
> unattended-upgr 1 0% 19.62 MB root
> networkd-dispat 1 0% 16.83 MB root
> VGAuthService 1 0% 9.8 MB root
> systemd 1 0% 8.7 MB root
> What can i do to resolve this issue?
> Thanks