Configuring ulimit

Discussion in 'Install/Configuration' started by MarkPW, Jul 4, 2010.

  1. MarkPW

    MarkPW New Member

    I'm trying to execute a wine command via a php script and it's failing due to their not being enough virtual memory. My server's virtual memory is set at unlimited, yet if I run "ulimit -a" via PHP it's showing at 256000.

    Assuming this is controlled by Litespeed, how do I change it?

    Thanks for any help.
  2. NiteWave

    NiteWave Administrator

  3. MarkPW

    MarkPW New Member

    Thanks for your reply NiteWave.

    I have tried increasing those values and ulimit -a does report the change, however it won't allow a higher setting than 2097151K which, surprisingly, isn't enough for my wine command to work.

    I'm getting "wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory".

    Is there any way to set this to "unlimited" or to exceed the limitation?
  4. NiteWave

    NiteWave Administrator

    looks this hit the 2G memory limit for 32-bit program.

    how about set to 0: "Operating system's default will be used if the value is set to 0"
    Last edited: Jul 5, 2010
  5. MarkPW

    MarkPW New Member

    I tried that previously, but the default seems to be 256000 (250M), although I can't seem to find where this value is set on the server. /etc/profile only refers to root (unlimited) and normal users (200000). Is there no way to set this soft/hard limit as "unlimited" rather than having to enter a number?

    Thanks
  6. mistwang

    mistwang LiteSpeed Staff

    there is a memory limit being set in php.ini as well.
  7. MarkPW

    MarkPW New Member

    Thanks for your assistance mistwang - increasing the php memory limit does not make a difference.

    Again, Is there no way to set this soft/hard limit as "unlimited" rather than having to enter a number?
  8. mistwang

    mistwang LiteSpeed Staff

    per user limit can be set in /etc/security/limits.conf,
    LiteSpeed cannot set unlimited, it has to be a number, or system default.

Share This Page