title: wildfly as systemd service
body: <p>I wanna make wildfly-domain as a systemd service in centos7
  in works by root user but when i start it as <code>wilfly</code> user after a while it shows error:</p>
  <blockquote>
  <p>java.lang.OutOfMemoryError: unable to create new native threadESC</p>
  <p>and stop . even stop service doesn't work .</p>
  </blockquote>
  <p>I tried to change heap-memo and ... but the user is a problem!
  How can I solve this?</p>
  <p>service file is ib wildfly8/bin/init.d/wildfly-init-redhat.sh
  I tried &quot;ulimit -n &quot; at the top of service script but nothing changed!
  I have 256Gb Ram and 64core CPU but ....</p>