Your shell's resource limits might be below what ghostscript requires. The
default class limits are set very conservatively. The
staff class limits are higher, and both the
default and
staff class limits vary by architecture. The
daemon class removes datasize and maxproc limitations:
Code:
daemon:\
:ignorenologin:\
:datasize=infinity:\
:maxproc=infinity:\
:openfiles-cur=128:\
:stacksize-cur=8M:\ ...
See your /etc/login.conf and the login.conf(5) man page