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

I don’t have much experience on windows and 32 bit java. Quick thoughts:

  1. you should use definitely use 64 bit
  2. Use java 11 rather than java 8 (or 13)
  3. The amount of heap space you can allocate for java is not really something you can get from the documentation. It depends a lot on what else is running on your machine and what load you expect on your DHIS2. But your initial settings are certainly too low. I would suggest trying:

-Xms4096m -Xmx4096m

(on a server we typically make the max and the min amounts the same)

Is this meant to be for a production setup on the web, or just something you are trying on your laptop? For production setup there are many other things to consider.

Regards
Bob

1 Like