This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13654|Reply: 2

Azure DevOps 2020 (III) limits search (ES) memory footprint

[Copy link]
Posted on 9/1/2020 10:36:15 PM | | | |
Azure DevOps 2020 (1) First Introduction to Microsoft Azure DevOps (TFS)
https://www.itsvse.com/thread-9239-1-1.html

After installing Azure DevOps 2020, after startup, you find that the search service has a particularly high memory and CPU usage, as shown in the following figure:



Review the article on ES:

Centos 7 installation and deployment elasticsearch-6.5.2 tutorial
https://www.itsvse.com/thread-6173-1-1.html

Install the elasticsearch-6.5.2 elasticsearch-head plugin
https://www.itsvse.com/thread-6190-1-1.html

Tutorial on installing elasticsearch-analysis-ik in elasticsearch-6.5.2
https://www.itsvse.com/thread-6191-1-1.html

[Actual combat]. net/c# Call elasticsearch search via NEST [with source code]
https://www.itsvse.com/thread-6294-1-1.html

Azure DevOps 2020 is using elasticsearch v6.2 version, try to find the ES service, the service command is as follows:

"D:\Program Files\Azure DevOps Server 2020\Search\ES\elasticsearchv6.2\bin\elasticsearch-service-x64.exe" //RS//elasticsearch-service-x64

Try to modify the jvm.options configuration with the path to: D:\Program Files\Azure DevOps Server 2020\Search\ES\elasticsearchv6.2\config, the default is 2400M as shown in the figure below:






The size of the minimum heap and the size of the largest heap should beEqual

The more heap Elasticsearch gets, and the more cache the memory can use. However, it is important to note that too many items are allocated to you, which will lead to long garbage collection stops.

Set the maximum heap value to no more than 50% of your physical memory, make sure you have enough physical memory to ensure the kernel file cache.


Resources:The hyperlink login is visible.

Set the initial and maximum memory to 1200M as follows:

After saving the modifications, we restarted the Elasticsearch service and found that the memory still occupied more than 2G, which could not solve our problem.

By setting the _JAVA_OPTIONS environment variable to limit the memory size, the ES service is found to be unable to start.
---------------------------
service
---------------------------
The Elasticsearch 6.2.4 (elasticsearch-service-x64) service on your local machine stops after starting. Some services will automatically stop when not used by other services or programs.
---------------------------
Are you sure   
---------------------------
JAVA Error occurred during initialization of VM error
https://www.itsvse.com/thread-3972-1-1.html

Looking at the startup log, the error is as follows:

2020-09-01 21:23:50 Commons Daemon procrun stdout initialized
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size

The final solution is as follows
Go to the bin directory of the program and run the following command:

Pop up the configuration, switch to the Java tab, modify the configuration items as shown below, and click the application to confirm.



I found that the memory has been lowered, as shown in the figure below:



(End)





Previous:Mysql CURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP differentiated
Next:Windows NTLM Certification Protocol Process
Posted on 3/9/2022 4:33:29 PM |
Ranch into this issue, now tfs is stuck, see if this setup works
Posted on 4/29/2022 8:59:30 AM |
Same issue!
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com