manifoldcf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bisonti Mario <>
Subject R: Memory problem on Agent ?
Date Mon, 05 Oct 2020 06:21:36 GMT
I think that you refer to options.env.unix ?

sudo nano options.env.unix

Da: Karl Wright <>
Inviato: venerdì 2 ottobre 2020 17:31
Oggetto: Re: Memory problem on Agent ?

Please check your -Xmx switch.

Memory will not be released because that is not how Java works.  It allocates the memory it
needs and periodically garbage collects within that.  You have given it too much memory and
you should not expect Java to release it ever.  The solution is to give it less.  A rule of
thumb is to leave 10gb free for system usage and divide the remainder among your Java processes.


On Fri, Oct 2, 2020 at 11:21 AM Bisonti Mario <<>>
Yes, buti t seems that, when the indexing finished, the memory is not released

Da: Karl Wright <<>>
Inviato: venerdì 2 ottobre 2020 17:14
Oggetto: Re: Memory problem on Agent ?

Hi Mario,

Java processes only use the memory you hand them.

It looks like you are handing Java more memory than your machine has.

This will not work.


On Fri, Oct 2, 2020 at 10:45 AM Bisonti Mario <<>>


When I scan the content of Repository , I note that memory used is very high and it isn’t

i.e. 60GB on 70GB available

I tried to free shutting down tjhe agent but I am not able:

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f4d58000000, 34359738368,
0) failed; error='Not enough space' (errno=12)
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 34359738368 bytes for committing reserved
# An error report file with more information is saved as:
# /opt/manifoldcf/multiprocess-zk-example-proprietary/hs_err_pid2796.log

So, to free memory, I have to restart the server
How could I solve this?

Thanks a lot

View raw message