DHIS2- TompCat Issue(Java heap space) caused by out of memeory error

I have a java heap space error (http status 500) as well and I’m trying to figure out how high I can go on my JAVA_OPTS? I’m on 16GB ram.