My guess is that one is the launcher and the other one is “the game window” - the launcher should not use that much ram - so I’m wondering if you changed anything.
If you want, you can check with PowerShell - open a PowerShell window and paste this in:
Get-Process *java* | Select Mainwindowtitle, Id
Outcome would looks something like this (if you launch using Twitch):
If unsure, post a screen of that window with your result.
Where did you allocate ram (explain how you did it)
Also - running BlackDesert64.exe (Black desert online?), at the same time - is not something to recommend if you want a lag free experience. As that is most likely using all resources it can (cpu, disk, ram, gpu).
Post a log as well if you need further help, instructions for that can be found here: