Memory recommendations

Hello,
we are working on setting up an offline DHIS server for training purposes. However, we are a bit uncertain about memory configuration (and ended up with some perm gen out of memory exceptions today). Does anyone have any suggestions for initial, max and max perm gen space on a 32-bit windows server with 4 gb RAM?

Thanks,
Olav