Recommended memory for infinispan/keycloak deployments?

Hi there!

Just to know, how much memory i should dedicate to the infinispan and keycloak deployments if i have a website that reach at least 3000 users online at the same time?

This is because my infinispan deployment is crashing once a while due to Java OOM exception. At this moment i have the default settings

-Xmx384m, -XX:+ExitOnOutOfMemoryError, -XX:MetaspaceSize=32m, -XX:MaxMetaspaceSize=96m

But i think is too low… ISPN calculates it automatically, if anyone can suggest me how to calculate the recommended memory or just tell me how much ram you dedicate to your server i will appreciate that!