I'm getting below error while restarting the BigBlueButton server:
Starting BigBlueButton
Job for freeswitch.service failed because the control process exited with error code.
See "systemctl status freeswitch.service" and "journalctl -xe" for details.
# Potential problems described below
grep: /opt/freeswitch/var/log/freeswitch/freeswitch.log: No such file or directory
#
# Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021
#
First, I thought the DB files for freeswitch got corrupted so performed below setps to resolve it (As mentioned in BBB docs):
$ sudo systemctl stop freeswitch
$ rm -rf /opt/freeswitch/var/lib/freeswitch/db/*
$ sudo systemctl start freeswitch
But FreeSWITCH is not creating the new DB files on startup.
The output of **$/opt/freeswitch/bin# ./freeswitch** is as per below:
2022-11-16 09:57:10.825148 0.00% [INFO] switch_event.c:713 Activate Eventing Engine.
2022-11-16 09:57:10.835584 0.00% [WARNING] switch_event.c:683 Create additional event dispatch thread 0
2022-11-16 09:57:10.861618 0.00% [INFO] switch_nat.c:417 Scanning for NAT
2022-11-16 09:57:10.861776 0.00% [DEBUG] switch_nat.c:170 Checking for PMP 1/5
2022-11-16 09:57:11.861899 0.00% [DEBUG] switch_nat.c:170 Checking for PMP 2/5
2022-11-16 09:57:12.862066 0.00% [DEBUG] switch_nat.c:170 Checking for PMP 3/5
2022-11-16 09:57:13.862223 0.00% [DEBUG] switch_nat.c:170 Checking for PMP 4/5
2022-11-16 09:57:14.862506 0.00% [DEBUG] switch_nat.c:170 Checking for PMP 5/5
2022-11-16 09:57:15.862637 0.00% [ERR] switch_nat.c:199 Error checking for PMP [general error]
2022-11-16 09:57:15.862708 0.00% [DEBUG] switch_nat.c:422 Checking for UPnP
2022-11-16 09:57:27.863358 0.00% [INFO] switch_nat.c:438 No PMP or UPnP NAT devices detected!
2022-11-16 09:57:27.869274 0.00% [NOTICE] switch_scheduler.c:186 Starting task thread
2022-11-16 09:57:27.876233 0.00% [DEBUG] switch_rtp.c:1584 SRTP (srtp 2.4.0) initialized.
2022-11-16 09:57:27.876326 0.00% [DEBUG] switch_scheduler.c:263 Added task 1 heartbeat (core) to run at 1668572847
2022-11-16 09:57:27.876400 0.00% [DEBUG] switch_scheduler.c:263 Added task 2 check_ip (core) to run at 1668572847
2022-11-16 09:57:27.877037 0.00% [NOTICE] switch_core.c:1481 Created ip list rfc6598.auto default (deny)
2022-11-16 09:57:27.877093 0.00% [NOTICE] switch_utils.c:667 Adding 100.64.0.0/10 (allow) [] to list rfc6598.auto
2022-11-16 09:57:27.877121 0.00% [NOTICE] switch_core.c:1487 Created ip list rfc1918.auto default (deny)
2022-11-16 09:57:27.877145 0.00% [NOTICE] switch_utils.c:667 Adding 10.0.0.0/8 (allow) [] to list rfc1918.auto
2022-11-16 09:57:27.877169 0.00% [NOTICE] switch_utils.c:667 Adding 172.16.0.0/12 (allow) [] to list rfc1918.auto
2022-11-16 09:57:27.877200 0.00% [NOTICE] switch_utils.c:667 Adding 192.168.0.0/16 (allow) [] to list rfc1918.auto
2022-11-16 09:57:27.877225 0.00% [NOTICE] switch_utils.c:667 Adding fe80::/10 (allow) [] to list rfc1918.auto
2022-11-16 09:57:27.877248 0.00% [NOTICE] switch_core.c:1496 Created ip list wan.auto default (allow)
2022-11-16 09:57:27.877272 0.00% [NOTICE] switch_utils.c:667 Adding 0.0.0.0/8 (deny) [] to list wan.auto
2022-11-16 09:57:27.877295 0.00% [NOTICE] switch_utils.c:667 Adding 10.0.0.0/8 (deny) [] to list wan.auto
2022-11-16 09:57:27.877318 0.00% [NOTICE] switch_utils.c:667 Adding 172.16.0.0/12 (deny) [] to list wan.auto
2022-11-16 09:57:27.877341 0.00% [NOTICE] switch_utils.c:667 Adding 192.168.0.0/16 (deny) [] to list wan.auto
2022-11-16 09:57:27.877364 0.00% [NOTICE] switch_utils.c:667 Adding 169.254.0.0/16 (deny) [] to list wan.auto
2022-11-16 09:57:27.877387 0.00% [NOTICE] switch_utils.c:667 Adding 100.64.0.0/10 (deny) [] to list wan.auto
2022-11-16 09:57:27.877409 0.00% [NOTICE] switch_utils.c:667 Adding fe80::/10 (deny) [] to list wan.auto
2022-11-16 09:57:27.877432 0.00% [NOTICE] switch_core.c:1508 Created ip list wan_v6.auto default (allow)
2022-11-16 09:57:27.877455 0.00% [NOTICE] switch_utils.c:667 Adding 0.0.0.0/0 (deny) [] to list wan_v6.auto
2022-11-16 09:57:27.877478 0.00% [NOTICE] switch_utils.c:667 Adding fe80::/10 (deny) [] to list wan_v6.auto
2022-11-16 09:57:27.877502 0.00% [NOTICE] switch_core.c:1516 Created ip list wan_v4.auto default (allow)
2022-11-16 09:57:27.877527 0.00% [NOTICE] switch_utils.c:667 Adding 0.0.0.0/8 (deny) [] to list wan_v4.auto
2022-11-16 09:57:27.877550 0.00% [NOTICE] switch_utils.c:667 Adding 10.0.0.0/8 (deny) [] to list wan_v4.auto
2022-11-16 09:57:27.877573 0.00% [NOTICE] switch_utils.c:667 Adding 172.16.0.0/12 (deny) [] to list wan_v4.auto
2022-11-16 09:57:27.877592 0.00% [NOTICE] switch_utils.c:667 Adding 192.168.0.0/16 (deny) [] to list wan_v4.auto
2022-11-16 09:57:27.877615 0.00% [NOTICE] switch_utils.c:667 Adding 169.254.0.0/16 (deny) [] to list wan_v4.auto
2022-11-16 09:57:27.877640 0.00% [NOTICE] switch_utils.c:667 Adding 100.64.0.0/10 (deny) [] to list wan_v4.auto
2022-11-16 09:57:27.877665 0.00% [NOTICE] switch_utils.c:667 Adding ::/0 (deny) [] to list wan_v4.auto
2022-11-16 09:57:27.877688 0.00% [NOTICE] switch_core.c:1529 Created ip list any_v6.auto default (allow)
2022-11-16 09:57:27.877708 0.00% [NOTICE] switch_utils.c:667 Adding 0.0.0.0/0 (deny) [] to list any_v6.auto
2022-11-16 09:57:27.877731 0.00% [NOTICE] switch_core.c:1536 Created ip list any_v4.auto default (allow)
2022-11-16 09:57:27.877767 0.00% [NOTICE] switch_utils.c:667 Adding ::/0 (deny) [] to list any_v4.auto
2022-11-16 09:57:27.877781 0.00% [NOTICE] switch_core.c:1543 Created ip list nat.auto default (deny)
2022-11-16 09:57:27.877803 0.00% [NOTICE] switch_core.c:1545 Adding 10.0.0.199/255.255.252.0 (deny) to list nat.auto
2022-11-16 09:57:27.877826 0.00% [NOTICE] switch_utils.c:667 Adding 10.0.0.0/8 (allow) [] to list nat.auto
2022-11-16 09:57:27.877843 0.00% [NOTICE] switch_utils.c:667 Adding 172.16.0.0/12 (allow) [] to list nat.auto
2022-11-16 09:57:27.877866 0.00% [NOTICE] switch_utils.c:667 Adding 192.168.0.0/16 (allow) [] to list nat.auto
2022-11-16 09:57:27.877893 0.00% [NOTICE] switch_utils.c:667 Adding 100.64.0.0/10 (allow) [] to list nat.auto
2022-11-16 09:57:27.877916 0.00% [NOTICE] switch_core.c:1555 Created ip list loopback.auto default (deny)
2022-11-16 09:57:27.877939 0.00% [NOTICE] switch_utils.c:667 Adding 127.0.0.0/8 (allow) [] to list loopback.auto
2022-11-16 09:57:27.877970 0.00% [NOTICE] switch_utils.c:667 Adding ::1/128 (allow) [] to list loopback.auto
2022-11-16 09:57:27.877994 0.00% [NOTICE] switch_core.c:1562 Created ip list localnet.auto default (deny)
2022-11-16 09:57:27.878015 0.00% [NOTICE] switch_core.c:1565 Adding 10.0.0.199/255.255.252.0 (allow) to list localnet.auto
2022-11-16 09:57:27.878046 0.00% [CONSOLE] switch_core.c:1592 Created ip list lan default (allow)
2022-11-16 09:57:27.878093 0.00% [NOTICE] switch_utils.c:667 Adding 127.0.0.1/32 (allow) [] to list lan
2022-11-16 09:57:27.878117 0.00% [NOTICE] switch_utils.c:667 Adding 10.130.218.147/32 (allow) [] to list lan
2022-11-16 09:57:27.878142 0.00% [CONSOLE] switch_core.c:1592 Created ip list deny_private_v6 default (allow)
2022-11-16 09:57:27.878175 0.00% [NOTICE] switch_utils.c:667 Adding 0.0.0.0/0 (deny) [] to list deny_private_v6
2022-11-16 09:57:27.878201 0.00% [NOTICE] switch_utils.c:667 Adding fe80::/10 (deny) [] to list deny_private_v6
2022-11-16 09:57:27.878226 0.00% [NOTICE] switch_utils.c:667 Adding fc00::/7 (deny) [] to list deny_private_v6
2022-11-16 09:57:27.878251 0.00% [CONSOLE] switch_core.c:1592 Created ip list domains default (allow)
2022-11-16 09:57:27.878367 0.00% [WARNING] switch_msrp.c:204 Open of msrp.conf failed
2022-11-16 09:57:27.878394 0.00% [CONSOLE] switch_core.c:2518 Bringing up environment.
2022-11-16 09:57:27.878427 0.00% [CONSOLE] switch_core.c:2519 Loading Modules.
2022-11-16 09:57:27.879282 0.00% [INFO] switch_time.c:1430 Timezone loaded 1750 definitions
2022-11-16 09:57:27.879305 0.00% [CONSOLE] switch_time.c:1573 Clock calibration disabled.
2022-11-16 09:57:27.879320 0.00% [CONSOLE] switch_loadable_module.c:1768 Successfully Loaded [CORE_SOFTTIMER_MODULE]
2022-11-16 09:57:27.879341 0.00% [NOTICE] switch_loadable_module.c:301 Adding Timer 'soft'
2022-11-16 09:57:27.879429 0.00% [CONSOLE] switch_loadable_module.c:1768 Successfully Loaded [CORE_PCM_MODULE]
2022-11-16 09:57:27.879456 0.00% [NOTICE] switch_loadable_module.c:229 Adding Codec PROXY-VID 31 PROXY VIDEO PASS-THROUGH 90000hz 0ms 1ch (VBR)
2022-11-16 09:57:27.879478 0.00% [NOTICE] switch_loadable_module.c:229 Adding Codec PROXY 0 PROXY PASS-THROUGH 8000hz 20ms 2ch (VBR)
2022-11-16 09:57:27.879491 0.00% [NOTICE] switch_loadable_module.c:229 Adding Codec PROXY 0 PROXY PASS-THROUGH 8000hz 20ms 1ch (VBR)
2022-11-16 09:57:27.879507 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 11025hz 32ms 2ch 352800bps
2022-11-16 09:57:27.879517 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 11025hz 32ms 1ch 176400bps
2022-11-16 09:57:27.879523 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 11025hz 40ms 2ch 352800bps
2022-11-16 09:57:27.879535 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 11025hz 40ms 1ch 176400bps
2022-11-16 09:57:27.879541 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 22050hz 20ms 2ch 705600bps
2022-11-16 09:57:27.879552 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 22050hz 20ms 1ch 352800bps
2022-11-16 09:57:27.879563 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 44100hz 30ms 2ch 705600bps
2022-11-16 09:57:27.879574 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 44100hz 30ms 1ch 705600bps
2022-11-16 09:57:27.879585 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 44100hz 20ms 2ch 705600bps
2022-11-16 09:57:27.879592 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 44100hz 20ms 1ch 705600bps
2022-11-16 09:57:27.879600 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 44100hz 10ms 2ch 705600bps
2022-11-16 09:57:27.879606 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 44100hz 10ms 1ch 705600bps
2022-11-16 09:57:27.879614 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 40ms 2ch 1536000bps
2022-11-16 09:57:27.879620 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 40ms 1ch 768000bps
2022-11-16 09:57:27.879632 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 30ms 2ch 1536000bps
2022-11-16 09:57:27.879641 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 30ms 1ch 768000bps
2022-11-16 09:57:27.879650 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 20ms 2ch 1536000bps
2022-11-16 09:57:27.879660 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 20ms 1ch 768000bps
2022-11-16 09:57:27.879667 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 8ms 2ch 1024000bps
2022-11-16 09:57:27.879675 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 8ms 1ch 512000bps
2022-11-16 09:57:27.879687 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 6ms 2ch 1024000bps
2022-11-16 09:57:27.879694 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 6ms 1ch 512000bps
2022-11-16 09:57:27.879703 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 4ms 2ch 1024000bps
2022-11-16 09:57:27.879709 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 4ms 1ch 512000bps
2022-11-16 09:57:27.879721 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 2ms 2ch 1024000bps
2022-11-16 09:57:27.879733 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 2ms 1ch 512000bps
2022-11-16 09:57:27.879741 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 8ms 2ch 512000bps
2022-11-16 09:57:27.879749 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 8ms 1ch 256000bps
2022-11-16 09:57:27.879761 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 6ms 2ch 512000bps
2022-11-16 09:57:27.879771 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 6ms 1ch 256000bps
2022-11-16 09:57:27.879780 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 4ms 2ch 512000bps
2022-11-16 09:57:27.879790 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 4ms 1ch 256000bps
2022-11-16 09:57:27.879802 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 2ms 2ch 512000bps
2022-11-16 09:57:27.879813 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 2ms 1ch 256000bps
2022-11-16 09:57:27.879822 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 8ms 2ch 256000bps
2022-11-16 09:57:27.879832 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 8ms 1ch 128000bps
2022-11-16 09:57:27.879845 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 6ms 2ch 256000bps
2022-11-16 09:57:27.879855 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 6ms 1ch 128000bps
2022-11-16 09:57:27.879865 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 4ms 2ch 256000bps
2022-11-16 09:57:27.879876 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 4ms 1ch 128000bps
2022-11-16 09:57:27.879889 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 2ms 2ch 256000bps
2022-11-16 09:57:27.879899 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 2ms 1ch 128000bps
2022-11-16 09:57:27.879907 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 10ms 2ch 1536000bps
2022-11-16 09:57:27.879915 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 10ms 1ch 768000bps
2022-11-16 09:57:27.879921 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 8ms 2ch 1536000bps
2022-11-16 09:57:27.879929 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 8ms 1ch 768000bps
2022-11-16 09:57:27.879941 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 6ms 2ch 1536000bps
2022-11-16 09:57:27.879947 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 6ms 1ch 768000bps
2022-11-16 09:57:27.879957 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 4ms 2ch 1536000bps
2022-11-16 09:57:27.879963 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 4ms 1ch 768000bps
2022-11-16 09:57:27.879979 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 2ms 2ch 1536000bps
2022-11-16 09:57:27.879986 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 48000hz 2ms 1ch 768000bps
2022-11-16 09:57:27.879992 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 24000hz 60ms 2ch 768000bps
2022-11-16 09:57:27.880002 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 24000hz 60ms 1ch 384000bps
2022-11-16 09:57:27.880008 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 24000hz 40ms 2ch 768000bps
2022-11-16 09:57:27.880020 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 24000hz 40ms 1ch 384000bps
2022-11-16 09:57:27.880026 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 24000hz 20ms 2ch 768000bps
2022-11-16 09:57:27.880037 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 24000hz 20ms 1ch 384000bps
2022-11-16 09:57:27.880043 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 100ms 2ch 384000bps
2022-11-16 09:57:27.880054 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 100ms 1ch 192000bps
2022-11-16 09:57:27.880066 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 80ms 2ch 384000bps
2022-11-16 09:57:27.880074 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 80ms 1ch 192000bps
2022-11-16 09:57:27.880081 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 60ms 2ch 384000bps
2022-11-16 09:57:27.880087 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 60ms 1ch 192000bps
2022-11-16 09:57:27.880101 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 40ms 2ch 384000bps
2022-11-16 09:57:27.880111 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 40ms 1ch 192000bps
2022-11-16 09:57:27.880122 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 20ms 2ch 384000bps
2022-11-16 09:57:27.880135 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 12000hz 20ms 1ch 192000bps
2022-11-16 09:57:27.880140 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 10ms 2ch 512000bps
2022-11-16 09:57:27.880155 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 10ms 1ch 512000bps
2022-11-16 09:57:27.880164 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 20ms 2ch 512000bps
2022-11-16 09:57:27.880176 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 20ms 1ch 512000bps
2022-11-16 09:57:27.880182 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 30ms 2ch 512000bps
2022-11-16 09:57:27.880192 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 30ms 1ch 512000bps
2022-11-16 09:57:27.880197 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 40ms 2ch 512000bps
2022-11-16 09:57:27.880207 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 40ms 1ch 512000bps
2022-11-16 09:57:27.880213 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 50ms 2ch 512000bps
2022-11-16 09:57:27.880225 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 50ms 1ch 512000bps
2022-11-16 09:57:27.880234 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 60ms 2ch 512000bps
2022-11-16 09:57:27.880242 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 32000hz 60ms 1ch 512000bps
2022-11-16 09:57:27.880253 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 10ms 2ch 256000bps
2022-11-16 09:57:27.880260 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 10ms 1ch 256000bps
2022-11-16 09:57:27.880268 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 20ms 2ch 256000bps
2022-11-16 09:57:27.880280 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 20ms 1ch 256000bps
2022-11-16 09:57:27.880287 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 30ms 2ch 256000bps
2022-11-16 09:57:27.880298 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 30ms 1ch 256000bps
2022-11-16 09:57:27.880304 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 40ms 2ch 256000bps
2022-11-16 09:57:27.880316 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 40ms 1ch 256000bps
2022-11-16 09:57:27.880328 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 50ms 2ch 256000bps
2022-11-16 09:57:27.880337 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 50ms 1ch 256000bps
2022-11-16 09:57:27.880346 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 60ms 2ch 256000bps
2022-11-16 09:57:27.880356 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 16000hz 60ms 1ch 256000bps
2022-11-16 09:57:27.880362 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 10ms 2ch 128000bps
2022-11-16 09:57:27.880566 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 110ms 1ch 128000bps
2022-11-16 09:57:27.880578 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 120ms 2ch 128000bps
2022-11-16 09:57:27.880587 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec L16 100 RAW Signed Linear (16 bit) 8000hz 120ms 1ch 128000bps
2022-11-16 09:57:27.880605 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 48000hz 10ms 2ch 768000bps
2022-11-16 09:57:27.880617 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 48000hz 10ms 1ch 384000bps
2022-11-16 09:57:27.880623 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 48000hz 40ms 1ch 384000bps
2022-11-16 09:57:27.880711 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 8000hz 40ms 1ch 64000bps
2022-11-16 09:57:27.880722 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 8000hz 50ms 1ch 64000bps
2022-11-16 09:57:27.880732 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 8000hz 60ms 1ch 64000bps
2022-11-16 09:57:27.880743 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 8000hz 70ms 1ch 64000bps
2022-11-16 09:57:27.880753 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 8000hz 80ms 1ch 64000bps
2022-11-16 09:57:27.880764 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 8000hz 90ms 1ch 64000bps
2022-11-16 09:57:27.880773 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 8000hz 100ms 1ch 64000bps
2022-11-16 09:57:27.880784 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 8000hz 110ms 1ch 64000bps
2022-11-16 09:57:27.880794 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMU 0 G.711 ulaw 8000hz 120ms 1ch 64000bps
2022-11-16 09:57:27.880813 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 10ms 1ch 64000bps
2022-11-16 09:57:27.880826 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 20ms 1ch 64000bps
2022-11-16 09:57:27.880832 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 30ms 1ch 64000bps
2022-11-16 09:57:27.880844 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 40ms 1ch 64000bps
2022-11-16 09:57:27.880850 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 50ms 1ch 64000bps
2022-11-16 09:57:27.880861 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 60ms 1ch 64000bps
2022-11-16 09:57:27.880867 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 70ms 1ch 64000bps
2022-11-16 09:57:27.880876 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 80ms 1ch 64000bps
2022-11-16 09:57:27.880882 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 90ms 1ch 64000bps
2022-11-16 09:57:27.880893 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 100ms 1ch 64000bps
2022-11-16 09:57:27.880899 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 110ms 1ch 64000bps
2022-11-16 09:57:27.880912 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec PCMA 8 G.711 alaw 8000hz 120ms 1ch 64000bps
2022-11-16 09:57:27.880943 0.00% [CONSOLE] switch_loadable_module.c:1768 Successfully Loaded [CORE_SPEEX_MODULE]
2022-11-16 09:57:27.880967 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec SPEEX 99 Speex 32000hz 20ms 1ch 44000bps
2022-11-16 09:57:27.880979 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec SPEEX 99 Speex 16000hz 20ms 1ch 42200bps
2022-11-16 09:57:27.880985 0.00% [NOTICE] switch_loadable_module.c:223 Adding Codec SPEEX 99 Speex 8000hz 20ms 1ch 24600bps
2022-11-16 09:57:27.881005 0.00% [CONSOLE] switch_loadable_module.c:2191 open of pre_load_modules.conf failed
2022-11-16 09:57:27.881292 0.00% [ERR] switch_core_db.c:106 SQL ERR [file is not a database]
2022-11-16 09:57:27.881313 0.00% [ERR] switch_core_db.c:241 SQL ERR [file is not a database]
2022-11-16 09:57:27.881341 0.00% [CRIT] switch_core_sqldb.c:645 Failure to connect to CORE_DB /dev/shm/core.db!
2022-11-16 09:57:27.881354 0.00% [ERR] switch_core_sqldb.c:3579 Error Opening DB!
2022-11-16 09:57:27.881359 0.00% [CRIT] switch_core_sqldb.c:3586 CORE DATABASE INITIALIZATION FAILURE! CHECK `core-db-dsn`!
2022-11-16 09:57:27.881371 0.00% [CRIT] switch_loadable_module.c:2196 Loading modules interrupted. [Error: Error activating database]
2022-11-16 09:57:27.881380 0.00% [CONSOLE] switch_core.c:2522 Error: Cannot load modules
The output of **$systemctl status freeswitch.service** is as per below:
Job for freeswitch.service failed because the control process exited with error code.
See "systemctl status freeswitch.service" and "journalctl -xe" for details.
root#Resumex:/opt/freeswitch/bin# systemctl status freeswitch.service
● freeswitch.service - freeswitch
Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-11-16 11:02:31 IST; 11s ago
Process: 7949 ExecStart=/opt/freeswitch/bin/freeswitch -u freeswitch -g daemon -ncwait $DAEMON_OPTS (code=exited, status=1/FAILURE)
Main PID: 20724 (code=exited, status=0/SUCCESS)
Nov 16 11:02:31 Resumex systemd[1]: freeswitch.service: Service hold-off time over, scheduling restart.
Nov 16 11:02:31 Resumex systemd[1]: freeswitch.service: Scheduled restart job, restart counter is at 5.
Nov 16 11:02:31 Resumex systemd[1]: Stopped freeswitch.
Nov 16 11:02:31 Resumex systemd[1]: freeswitch.service: Start request repeated too quickly.
Nov 16 11:02:31 Resumex systemd[1]: freeswitch.service: Failed with result 'exit-code'.
Nov 16 11:02:31 Resumex systemd[1]: Failed to start freeswitch.
Can anyone tell me how to fix this?
Thanks in advance!
you can see what the error is just from the log you posted here, the cause is that something wrong with your db file.
Please check
if the file exists
if the file is corrupted
if the file owns the proper permissions.
2022-11-16 09:57:27.881292 0.00% [ERR] switch_core_db.c:106 SQL ERR [file is not a database]
2022-11-16 09:57:27.881313 0.00% [ERR] switch_core_db.c:241 SQL ERR [file is not a database]
2022-11-16 09:57:27.881341 0.00% [CRIT] switch_core_sqldb.c:645 Failure to connect to CORE_DB /dev/shm/core.db!
2022-11-16 09:57:27.881354 0.00% [ERR] switch_core_sqldb.c:3579 Error Opening DB!
2022-11-16 09:57:27.881359 0.00% [CRIT] switch_core_sqldb.c:3586 CORE DATABASE INITIALIZATION FAILURE! CHECK core-db-dsn!
2022-11-16 09:57:27.881371 0.00% [CRIT] switch_loadable_module.c:2196 Loading modules interrupted. [Error: Error activating database]
Related
I'm working in e-commerce application back end with spring, front end with angular. When I run the app with ng serve command the following error appears :
C:\Users\hp\Desktop\ecommerce-project\03-frontend\angular-ecommerc>ng serve
chunk {main} main.js, main.js.map (main) 20.3 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 268 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.69 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 4.33 MB [initial] [rendered]
Date: 2020-06-16T13:43:02.010Z - Hash: c4671c1e2b0f67c7381a - Time: 16027ms
ERROR in multi ./src/styles.css ./node_modules/bootstrap/dist/css/bootstrap.min.css ./node_modules/#fortawesome/fontawesome-free/css/all.min.css
Module not found: Error: Can't resolve 'C:\Users\hp\Desktop\ecommerce-project\03-frontend\angular-ecommerc\node_modules\#fortawesome\fontawesome-free\css\all.min.css' in 'C:\Users\hp\Desktop\ecommerce-project\03-frontend\angular-ecommerc'
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
My code crashes with this error message
Executing "/usr/bin/java com.utils.BotFilter"
OpenJDK 64-Bit Server VM warning: INFO:
os::commit_memory(0x0000000357c80000, 2712666112, 0) failed;
error='Cannot allocate memory' (errno=12)
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 2712666112 bytes for committing reserved memory.
An error report file with more information is saved as:
/tmp/jvm-29955/hs_error.log`
Here is the content of the generated hs_error.log file:
https://pastebin.com/yqF2Yy4P
This line from crash log seems interesting to me:
Memory: 4k page, physical 98823196k(691424k free), swap 1048572k(0k free)
Does it mean that the machine has memory but is running out of swap space?
Here is meminfo from the crash log but I don't really know how to interpret it, like what is the difference between MemFree and MemAvailable? How much memory is this process taking?
/proc/meminfo:
MemTotal: 98823196 kB
MemFree: 691424 kB
MemAvailable: 2204348 kB
Buffers: 145568 kB
Cached: 2799624 kB
SwapCached: 304368 kB
Active: 81524540 kB
Inactive: 14120408 kB
Active(anon): 80936988 kB
Inactive(anon): 13139448 kB
Active(file): 587552 kB
Inactive(file): 980960 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 1048572 kB
SwapFree: 0 kB
Dirty: 1332 kB
Writeback: 0 kB
AnonPages: 92395828 kB
Mapped: 120980 kB
Shmem: 1376052 kB
Slab: 594476 kB
SReclaimable: 282296 kB
SUnreclaim: 312180 kB
KernelStack: 317648 kB
PageTables: 238412 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 50460168 kB
Committed_AS: 114163748 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 314408 kB
VmallocChunk: 34308158464 kB
HardwareCorrupted: 0 kB
AnonHugePages: 50071552 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 116924 kB
DirectMap2M: 5115904 kB
DirectMap1G: 95420416 kB
Possible solutions:
Reduce memory load on the system
Increase physical memory or swap space
Check if swap backing store is full
Use 64 bit Java on a 64 bit OS
Decrease Java heap size (-Xmx/-Xms)
Decrease number of Java threads
Decrease Java thread stack sizes (-Xss)
Set larger code cache with -XX:ReservedCodeCacheSize=
In case you have many contexts wars deployed on your tomcat try reduce them
As Scary Wombat mentions, the JVM is trying to allocate 2712666112 bytes (2.7 Gb) of memory, and you only have 691424000 bytes (0.69 Gb) of free physical memory and nothing available on the swap.
Another possibility (which I encountered just now) would be bad settings for "overcommit memory" on linux.
In my situation, /proc/sys/vm/overcommit_memory was set to "2" and /proc/sys/vm/overcommit_ratio to "50" , meaning "don't ever overcommit and only allow allocation of 50% of the available RAM+Swap".
That's a pretty deceptive problem, since there can be a lot of memory available, but allocations still fail for apparently no reason.
The settings can be changed to the default (overcommit in a sensible way) for now (until a restart):
echo 0 >/proc/sys/vm/overcommit_memory
... or permanently:
echo "vm.overcommit_memory=0 >> /etc/sysctl.conf
sysctl -p /etc/sysctl.conf # apply it immediately
Note: this can also partly be diagnosed by looking at the output of /proc/meminfo:
...
CommitLimit: 45329388 kB
Committed_AS: 44818080 kB
...
In the example in the question, Committed_AS is much higher than CommitLimit, indicating (together with the fact that allocations fail) that overcommit is enabled, while here both values are close together, meaning that the limit is strictly enforced.
An excellent detailed explanation of these settings and their effect (as well as when it makes sense to modify them) can be found in this pivotal blog entry. (Tl;dr: messing with overcommit is useful if you don't want critical processes to use swap)
I am trying to setup sonarqube on ec2 instance Amazon Linux AMI. on t2 micro instance. using the below sonarqube version:6.0, java:java-1.8.0-openjdk, mysql:mysql Ver 14.14 Distrib 5.6.39, for Linux (x86_64) using EditLine wrapper
after sonar start command:
sudo ./sonar.sh start
sonar is not starting. after checking in logs gives out below message.
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2018.05.16 19:30:50 INFO app[o.s.a.AppFileSystem] Cleaning or
creating temp directory /opt/sonarqube/temp
2018.05.16 19:30:50 INFO app[o.s.p.m.JavaProcessLauncher] Launch
process[es]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-
7.b10.37.amzn1.x86_64/jre/bin/java -Djava.awt.headless=true -Xmx1G -
Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -
XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -
XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -
Djava.io.tmpdir=/opt/sonarqube/temp -javaagent:/usr/lib/jvm/java-1.8.0-
openjdk-1.8.0.171-7.b10.37.amzn1.x86_64/jre/lib/management-agent.jar -
cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer
/opt/sonarqube/temp/sq-process620905092992598791properties
OpenJDK 64-Bit Server VM warning: INFO:
os::commit_memory(0x00000000c5330000, 181207040, 0) failed;
error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 181207040 bytes for
committing reserved memory.
# An error report file with more information is saved as:
# /opt/sonarqube/hs_err_pid30955.log
<-- Wrapper Stopped
Below Memory info:
/proc/meminfo:
MemTotal: 1011176 kB
MemFree: 78024 kB
MemAvailable: 55140 kB
Buffers: 8064 kB
Cached: 72360 kB
SwapCached: 0 kB
Active: 860160 kB
Inactive: 25868 kB
Active(anon): 805628 kB
Inactive(anon): 48 kB
Active(file): 54532 kB
Inactive(file): 25820 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 108 kB
Writeback: 0 kB
AnonPages: 805628 kB
Mapped: 30700 kB
Shmem: 56 kB
Slab: 28412 kB
SReclaimable: 16632 kB
SUnreclaim: 11780 kB
KernelStack: 3328 kB
PageTables: 6108 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 505588 kB
Committed_AS: 1348288 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 47104 kB
DirectMap2M: 1001472 kB
CPU:total 1 (initial active 1) (1 cores per cpu, 1 threads per core)
family 6 model 63 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3,
ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, tsc,
bmi1, bmi2
Have you tried to increase the maximum allowed heap size memory for your SonarQube application ?
You can do so by editing the sonar.properties file, found in your SQ installation folder.
You can follow this guide in order to configure your SQ max heap size.
I am new to spark and am trying to run spark on my hadoop node CentOS7, which is on a vmware: 2GB RAM, 20GB disk, 1CPU
I am receiving this error message:
[root#xie1 spark]# bin/spark-shell
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 716177408, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 716177408 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /opt/spark/hs_err_pid79417.log
After some googling I checked the mem below:
[root#xie1 spark]# cat /proc/meminfo
MemTotal: 1868688 kB
MemFree: 76428 kB
MemAvailable: 80840 kB
Buffers: 68 kB
Cached: 92172 kB
SwapCached: 189260 kB
Active: 1158888 kB
Inactive: 426036 kB
Active(anon): 1108308 kB
Inactive(anon): 389960 kB
Active(file): 50580 kB
Inactive(file): 36076 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2097148 kB
SwapFree: 282684 kB
Dirty: 76 kB
Writeback: 0 kB
AnonPages: 1303360 kB
Mapped: 42176 kB
Shmem: 5596 kB
Slab: 95580 kB
SReclaimable: 34792 kB
SUnreclaim: 60788 kB
KernelStack: 19616 kB
PageTables: 32960 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 3031492 kB
Committed_AS: 6290644 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 173440 kB
VmallocChunk: 34359561216 kB
HardwareCorrupted: 0 kB
AnonHugePages: 319488 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 102272 kB
DirectMap2M: 1994752 kB
DirectMap1G: 0 kB
what's the meaning of "VmallocTotal: 34359738367 kB", it exceeds the disk size I allocate to the VM which is 20G. Is VmallocTotal some where that can be adjusted? I am guessing the spark is asking for more resource, based on my current allocation of VM, what can I do? and how to do it?
Thank you very much.
I have an interesting scenario.
The application has higher value of Virtual Bytes than I would expect. On the other hand, the Private Bytes is at a reasonable value.
This a Java based application which also loads via JNI a .Net component to the same process. This is not the Java heap that takes the Virtual Bytes as I limit it via xmx parameter.
Is there a way I could analyze using Windbg the consumption of the Virutal Bytes?
For instance, if the code opens a shared memory with another process - can I see it? Can I sum all those shared memory segments?
This is a production environment so I am somewhat limited
Thanks
Saar
In user-mode debugging session you can use !address command !address -f:FileMap or !address -summary
0:018> !address -summary
Failed to map Heaps (error 80004005)
--- Usage Summary ---------------- RgnCount ----------- Total Size -------- %ofBusy %ofTotal
Free 211 7ff`f38e3000 ( 8.000 Tb) 100.00%
Image 577 0`05cec000 ( 92.922 Mb) 46.68% 0.00%
MemoryMappedFile 60 0`0375a000 ( 55.352 Mb) 27.81% 0.00%
<unclassified> 115 0`0289e000 ( 40.617 Mb) 20.41% 0.00%
Stack 60 0`00a00000 ( 10.000 Mb) 5.02% 0.00%
TEB 20 0`00028000 ( 160.000 kb) 0.08% 0.00%
PEB 1 0`00001000 ( 4.000 kb) 0.00% 0.00%
--- Type Summary (for busy) ------ RgnCount ----------- Total Size -------- %ofBusy %ofTotal
MEM_IMAGE 578 0`05ced000 ( 92.926 Mb) 46.68% 0.00%
MEM_MAPPED 60 0`0375a000 ( 55.352 Mb) 27.81% 0.00%
MEM_PRIVATE 195 0`032c6000 ( 50.773 Mb) 25.51% 0.00%
--- State Summary ---------------- RgnCount ----------- Total Size -------- %ofBusy %ofTotal
MEM_FREE 211 7ff`f38e3000 ( 8.000 Tb) 100.00%
MEM_COMMIT 782 0`08ae4000 ( 138.891 Mb) 69.78% 0.00%
MEM_RESERVE 51 0`03c29000 ( 60.160 Mb) 30.22% 0.00%
--- Protect Summary (for commit) - RgnCount ----------- Total Size -------- %ofBusy %ofTotal
PAGE_READONLY 336 0`050ca000 ( 80.789 Mb) 40.59% 0.00%
PAGE_EXECUTE_READ 104 0`02785000 ( 39.520 Mb) 19.85% 0.00%
PAGE_READWRITE 262 0`010db000 ( 16.855 Mb) 8.47% 0.00%
PAGE_WRITECOPY 59 0`0017d000 ( 1.488 Mb) 0.75% 0.00%
PAGE_READWRITE|PAGE_GUARD 20 0`0003c000 ( 240.000 kb) 0.12% 0.00%
PAGE_EXECUTE_READWRITE 1 0`00001000 ( 4.000 kb) 0.00% 0.00%
--- Largest Region by Usage ----------- Base Address -------- Region Size ----------
Free 0`ff8b5000 7fd`ed39b000 ( 7.992 Tb)
Image 7fe`fe39a000 0`0089e000 ( 8.617 Mb)
MemoryMappedFile 0`007b1000 0`012df000 ( 18.871 Mb)
<unclassified> 0`7f0e0000 0`00f00000 ( 15.000 Mb)
Stack 0`06740000 0`00079000 ( 484.000 kb)
TEB 7ff`fff94000 0`00002000 ( 8.000 kb)
PEB 7ff`fffd9000 0`00001000 ( 4.000 kb)
Virtual bytes represent the processes use of the virtual address space, and don't necessarily represent memory usage, not even virtual memory usage. If the process is 32-bit, don't worry about this statistic unless it is the best part of a gigabyte or more, and if the process is 64-bit don't worry about it full stop.
Mark Russinovich’s blog entry Pushing the Limits of Windows: Virtual Memory provides more detail on this.
The statistic you probably want to look at instead is Page File Bytes. Private Bytes and Working Set may also be of interest. These are described under Process Object in the Technet documentation on the Windows Server 2003 Performance Counters Reference.