Puppet Server Java Memory

Hi,
i have a problem with puppet server: the java memory seems to be too little related to needs.

Jan 30 11:58:21 srvlzkatello.conte.it systemd[1]: Starting puppetserver Service...
Jan 30 11:58:21 srvlzkatello.conte.it puppetserver[6211]: OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Jan 30 11:58:21 srvlzkatello.conte.it puppetserver[6211]: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080000000, 1431830528, 0) failed; error='Cannot allocate memory' (errno=12)
Jan 30 11:58:21 srvlzkatello.conte.it puppetserver[6211]: #
Jan 30 11:58:21 srvlzkatello.conte.it puppetserver[6211]: # There is insufficient memory for the Java Runtime Environment to continue.
Jan 30 11:58:21 srvlzkatello.conte.it puppetserver[6211]: # Native memory allocation (mmap) failed to map 1431830528 bytes for committing reserved memory.
Jan 30 11:58:21 srvlzkatello.conte.it puppetserver[6211]: # An error report file with more information is saved as:
Jan 30 11:58:21 srvlzkatello.conte.it puppetserver[6211]: # /tmp/hs_err_pid6218.log
Jan 30 11:58:22 srvlzkatello.conte.it systemd[1]: puppetserver.service: control process exited, code=exited status=1
Jan 30 11:58:22 srvlzkatello.conte.it systemd[1]: Failed to start puppetserver Service.
Jan 30 11:58:22 srvlzkatello.conte.it systemd[1]: Unit puppetserver.service entered failed state.
Jan 30 11:58:22 srvlzkatello.conte.it systemd[1]: puppetserver.service failed.

Looking at java -XshowSettings:all

VM settings:
    Max. Heap Size (Estimated): 2.57G
    Ergonomics Machine Class: server
    Using VM: OpenJDK 64-Bit Server VM

Physical machine is 4 core and 16GB Ram.

Increasing memory, can I solve issue? And, How can i increase java memory?

Thanks
Stefano

This is a question for Puppet community, not Foreman one. Just one observation - heap size and mmap (direct virtual memory) are two different things, you perhaps want to increase MaxDirectMemorySize somehow. But I am no Puppet expert, ask them.

In our installer we have options (--puppet-server-min-heap-size --puppet-server-max-heap-size and --puppet-server-max-active-instances for example) you can tune. I’d also read https://docs.puppet.com/puppetserver/latest/tuning_guide.html