yacy / yacy_search_server

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
http://yacy.net
Other
3.43k stars 429 forks source link

Yacy Crashed 3 times for no real reason. found 3 hs_err_pid log files #646

Open smokingwheels opened 6 months ago

smokingwheels commented 6 months ago

Yacy Crashed 3 times for no real reason a few weeks ago now. There is 3 hs_err_pid log files in the yacy folder. No it is not running out of memory. 3 log files http://cloudparty.evils.in/index.php/s/yDw49ajTPnzzgJp

See issue for my flavor of java. https://github.com/corretto/corretto-21/issues/63

Is this setting too big in the java args? -XX:ReservedCodeCacheSize=32m

Testing the setting. Before: the JAVA load was going up to 2000 %. The system load was 54 in 24 core system when searching a 5 Hz. Power consumption = 317 watts. With 2 yacys running from memory the CPU load was always 7-8 on the status pages.

After: the code cache size with 2 yacys running the load 4.57, 4.58, 4.38 power consumption 180.00 Watts System load 6.45, 5.74, 5.12 when load testing at ~5 Hz

okybaca commented 5 months ago

It's a little unclear for me. Did YaCy crash with the setting, you described later, or without that?

smokingwheels commented 2 months ago

I've added this setting to /etc/sysctl.conf vm.max_map_count = 262144 See how it goes.