How do you get past 2gb Memory Cap when i give it 8gb in a Vm

so i been experiencing issues with HA like mqtt server crashing and not processing stuff… and i have given HA 8gb or ram but when i have entity cards system monitor ram used and free… it only gets 2 gig and it basiclly used it all at times… why is it capping it at 2gb when its got 8gb… i using Unraid VM and passing 8gbs
i uppped it to 4gb when i started to try to use voice assistant but found it wasnt working very good… voice assistant… but i see there isnt much ram… and i think its crashing mqtt cuz its not getting enough ram… is there a way to force it to take the other 6 gb ram its missing… why its it capping at 2gb?

i had rebooted HA so i dont have some of the mqtt errors but here are a few. as mqtt isnt receivng and i figured its the memory… but i dunno

2024-07-12 15:46:08: New connection from 172.30.32.2:59654 on port 1883.
2024-07-12 15:46:08: Client <unknown> closed its connection.
2024-07-12 15:48:08: New connection from 172.30.32.2:42278 on port 1883.
2024-07-12 15:48:08: Client <unknown> closed its connection.
2024-07-12 15:50:08: New connection from 172.30.32.2:36718 on port 1883.
2024-07-12 15:50:08: Client <unknown> closed its connection.
2024-07-12 15:52:08: New connection from 172.30.32.2:51044 on port 1883.
2024-07-12 15:52:08: Client <unknown> closed its connection.
2024-07-12 15:54:08: New connection from 172.30.32.2:38040 on port 1883.
2024-07-12 15:54:08: Client <unknown> closed its connection.
time="2024-07-12T15:56:05-04:00" level=error msg="POST error: Post \"http://127.0.0.1:80/superuser\": EOF"
2024-07-12 15:56:08: New connection from 172.30.32.2:49072 on port 1883.
2024-07-12 15:56:08: Client <unknown> closed its connection.
2024-07-12 15:58:08: New connection from 172.30.32.2:51220 on port 1883.
2024-07-12 15:58:08: Client <unknown> closed its connection.
2024-07-12 15:58:15: Saving in-memory database to /data//mosquitto.db.
2024-07-12 16:00:08: New connection from 172.30.32.2:36234 on port 1883.
2024-07-12 16:00:08: Client <unknown> closed its connection.
2024-07-12 16:00:35: New connection from 192.168.0.165:62861 on port 1883.
2024-07-12 16:00:35: New client connected from 192.168.0.165:62861 as auto-873A2D9E-C01F-26E2-606D-39687753D948 (p2, c1, k60, u'mqtt-user').
2024-07-12 16:00:35: Client auto-873A2D9E-C01F-26E2-606D-39687753D948 disconnected.
2024-07-12 16:02:08: New connection from 172.30.32.2:44966 on port 1883.
2024-07-12 16:02:08: Client <unknown> closed its connection.
2024-07-12 16:04:08: New connection from 172.30.32.2:42106 on port 1883.
2024-07-12 16:04:08: Client <unknown> closed its connection.
2024-07-12 16:06:08: New connection from 172.30.32.2:41296 on port 1883.
2024-07-12 16:06:08: Client <unknown> closed its connection.
2024-07-12 16:08:08: New connection from 172.30.32.2:42766 on port 1883.
2024-07-12 16:08:08: Client <unknown> closed its connection.
2024-07-12 16:09:06: New connection from 192.168.0.165:63462 on port 1883.
2024-07-12 16:09:06: New client connected from 192.168.0.165:63462 as auto-80D428EB-B83F-8142-D566-5616C23D65A3 (p2, c1, k60, u'mqtt-user').
2024-07-12 16:09:06: Client auto-80D428EB-B83F-8142-D566-5616C23D65A3 disconnected.
2024-07-12 16:10:08: New connection from 172.30.32.2:54554 on port 1883.
2024-07-12 16:10:08: Client <unknown> closed its connection.
2024-07-12 16:12:08: New connection from 172.30.32.2:33648 on port 1883.
2024-07-12 16:12:08: Client <unknown> closed its connection.
2024-07-12 16:14:08: New connection from 172.30.32.2:45926 on port 1883.
2024-07-12 16:14:08: Client <unknown> closed its connection.
2024-07-12 16:16:08: New connection from 172.30.32.2:48866 on port 1883.
2024-07-12 16:16:08: Client <unknown> closed its connection.
2024-07-12 16:18:08: New connection from 172.30.32.2:51760 on port 1883.
2024-07-12 16:18:08: Client <unknown> closed its connection.
2024-07-12 16:20:08: New connection from 172.30.32.2:56358 on port 1883.
2024-07-12 16:20:08: Client <unknown> closed its connection.
2024-07-12 16:22:08: New connection from 172.30.32.2:44452 on port 1883.
2024-07-12 16:22:08: Client <unknown> closed its connection.
2024-07-12 16:24:08: New connection from 172.30.32.2:44868 on port 1883.
2024-07-12 16:24:08: Client <unknown> closed its connection.
2024-07-12 16:26:08: New connection from 172.30.32.2:38852 on port 1883.
2024-07-12 16:26:08: Client <unknown> closed its connection.
2024-07-12 16:28:08: New connection from 172.30.32.2:49880 on port 1883.
2024-07-12 16:28:08: Client <unknown> closed its connection.
2024-07-12 16:28:16: Saving in-memory database to /data//mosquitto.db.
2024-07-12 16:30:08: New connection from 172.30.32.2:55848 on port 1883.
2024-07-12 16:30:08: Client <unknown> closed its connection.
2024-07-12 16:32:08: New connection from 172.30.32.2:59162 on port 1883.
2024-07-12 16:32:08: Client <unknown> closed its connection.
2024-07-12 16:34:08: New connection from 172.30.32.2:50104 on port 1883.
2024-07-12 16:34:08: Client <unknown> closed its connection.
2024-07-12 16:36:08: New connection from 172.30.32.2:38542 on port 1883.
2024-07-12 16:36:08: Client <unknown> closed its connection.
2024-07-12 16:38:08: New connection from 172.30.32.2:54702 on port 1883.
2024-07-12 16:38:08: Client <unknown> closed its connection.
2024-07-12 16:38:36: New connection from 192.168.0.20:43412 on port 1883.
2024-07-12 16:38:36: New client connected from 192.168.0.20:43412 as auto-18EAC3E0-E02E-75D2-36CA-28FB62C873DC (p2, c1, k60, u'mqtt-user').
2024-07-12 16:38:36: Client auto-18EAC3E0-E02E-75D2-36CA-28FB62C873DC disconnected.
2024-07-12 16:38:36: New connection from 192.168.0.20:43428 on port 1883.
2024-07-12 16:38:36: New client connected from 192.168.0.20:43428 as auto-DFC06473-B3E9-A9EF-1F35-60C6FA4DD863 (p2, c1, k60, u'mqtt-user').
2024-07-12 16:38:36: Client auto-DFC06473-B3E9-A9EF-1F35-60C6FA4DD863 disconnected.
2024-07-12 16:38:36: New connection from 192.168.0.20:43434 on port 1883.
2024-07-12 16:38:36: New client connected from 192.168.0.20:43434 as auto-5C07AAD0-7ADF-4176-10DB-0DB60C8BCB02 (p2, c1, k60, u'mqtt-user').
2024-07-12 16:38:36: Client auto-5C07AAD0-7ADF-4176-10DB-0DB60C8BCB02 disconnected.

Sounds like a 32bit OS.