View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000386YaCy[All Projects] Generalpublic2014-03-07 21:502016-06-08 14:50
Assigned To 
PlatformLinuxOSUbuntuOS Version14.04 beta
Product Version 
Target VersionFixed in Version 
Summary0000386: Not working limiting the size of RAM.
DescriptionIn the settings YaCy (admin console - basic configuration - performance - memory settings) i set limit the "Memory reserved for the JVM" in size 2000MB. But actually, the process uses is much more than 2000MB. Sometimes almost twice.
Steps To Reproduce1. In the settings YaCy (admin console - basic configuration - performance - memory settings) i set limit the "Memory reserved for the JVM" in size 2000MB.
2. Restart Yacy
3. After some time, check status memory through htop or ubuntu system monitor and see that it is more increased.
Additional Informationthe below screenshot shows statistics Htop
TagsNo tags attached.
Attached Filesjpg file icon snapshot-2014-03-08-00-23-02.jpg [^] (20,253 bytes) 2014-03-07 21:50

jpg file icon snapshot-2014-03-08-00-24-54.jpg [^] (10,479 bytes) 2014-03-07 21:50

jpg file icon snapshot-2014-03-08-00-23-51.jpg [^] (9,472 bytes) 2014-03-07 21:51

jpg file icon memory.JPG [^] (54,374 bytes) 2016-06-08 14:50

- Relationships

-  Notes
sixcooler (developer)
2014-03-08 00:28

Hello Icewind1983

the behavior you described looks ok to me.
You have a java process for YaCy that holds 6854M of virtual RAM, which doesn't need to be physical avalable. It is just a address-space to reach the index.
The Process holds 2261M reserved RAM, which is the real physical allocated RAM.

The Label 'Memory reserved for JVM' is not 100% correct. It means Heap-Memory for the JVM - because this is the parameter to configure on a JVM.
There are some other, smaler Memory-Types used by the JVM, that make the difference to your configured 2000M.

Cu, sixcooler
Icewind1983 (reporter)
2014-03-08 00:42

Thank you for the clarification of the situation. No questions )
Icewind1983 (reporter)
2014-03-08 01:00

Hello, Sixcooler.

however, there is the question: is it possible the release of the heap memory?
sixcooler (developer)
2014-03-08 01:32

Hello Icewind1983,

releasing Heap is not realypossible.
But You can try the following:
Shut down YaCy.
Open DATA/SETTINGS/yacy.conf in a text-editor.
Search for an entry of 'Xms' an change it to a lower value - maybe 1000m
Start YaCy again.

The Heap of a JVM has 2 parameters - Xmx (maximum Heap) and Xms (minimum Heap)
The Heap will start at a value of Xms an grow as needed up to Xms.
Usally it should also shrink if less Heap-Memory is needed, but shrinking does not work as fast as growing :-)

Using different values for Xms and Xmx has some cost in resources for this management - thats why it is not anabled by default.

Changing the 'Memory reserved for JVM' in the gui will overwrite Xms and Xmx to the new value.

Cu, sixcooler.
Icewind1983 (reporter)
2014-03-08 01:48

Thank you very much. Changed it to 1000. Look what will be the result. )
CGretski (reporter)
2016-06-08 14:50

Same discrepancy on Windows; however memory is reported differently:

Over 2GB physical RAM in use; JvmMx is configured at 800 in the service manager ( though that doesn't match "Memory reserved for JVM" which is set at 1024 - so I'm not sure which takes effect)

The missing 1GB seems is in "Working-set Shareable" which I believe is the executable and any libraries it uses in memory (eg. java)

- Issue History
Date Modified Username Field Change
2014-03-07 21:50 Icewind1983 New Issue
2014-03-07 21:50 Icewind1983 File Added: snapshot-2014-03-08-00-23-02.jpg
2014-03-07 21:50 Icewind1983 File Added: snapshot-2014-03-08-00-24-54.jpg
2014-03-07 21:51 Icewind1983 File Added: snapshot-2014-03-08-00-23-51.jpg
2014-03-08 00:28 sixcooler Note Added: 0000751
2014-03-08 00:42 Icewind1983 Note Added: 0000752
2014-03-08 01:00 Icewind1983 Note Added: 0000753
2014-03-08 01:32 sixcooler Note Added: 0000754
2014-03-08 01:48 Icewind1983 Note Added: 0000755
2016-06-08 14:50 CGretski Note Added: 0001246
2016-06-08 14:50 CGretski File Added: memory.JPG

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker